在ubuntu上警告rcppnumerical和rcppeigen 18.04
每次使用rcppeigen或rcppnumerical时,我都会在控制台中获得很长的警告消息。
/home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:170:83: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type {aka __vector(2) double}’ [-Wignored-attributes]
/home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:170:83: warning: ignoring attributes on template argument ‘Eigen::internal::unpacket_traits<__vector(2) double>::half {aka __vector(2) double}’ [-Wignored-attributes]
/home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:188:88: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type {aka __vector(2) double}’ [-Wignored-attributes]
typedef typename find_best_packet_helper<Size,typename packet_traits<T>::type>::type type;
^~~~
In file included from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Core:430:0,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppNumerical/include/RcppNumerical.h:10,
from PeerCount.cpp:3:
但是,代码效果很好。我获得了任何代码的代码。我加载后出现警告
#include <RcppEigen.h>
或
#include <RcppNumerical.h>
我所有的包裹都是最新的
Each time when I use RcppEigen or RcppNumerical I obtain a very long warning message in the console.
/home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:170:83: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type {aka __vector(2) double}’ [-Wignored-attributes]
/home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:170:83: warning: ignoring attributes on template argument ‘Eigen::internal::unpacket_traits<__vector(2) double>::half {aka __vector(2) double}’ [-Wignored-attributes]
/home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:188:88: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type {aka __vector(2) double}’ [-Wignored-attributes]
typedef typename find_best_packet_helper<Size,typename packet_traits<T>::type>::type type;
^~~~
In file included from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Core:430:0,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/Eigen/Dense:1,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigenForward.h:30,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include/RcppEigen.h:25,
from /home/Haache/R/x86_64-pc-linux-gnu-library/3.4/RcppNumerical/include/RcppNumerical.h:10,
from PeerCount.cpp:3:
However, the code works well. I obtain this code for any code. The warning appears once I load
#include <RcppEigen.h>
or
#include <RcppNumerical.h>
All my packages are up to date
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如Dirk在评论中所说的那样,您可以将
-wno-dignored-atributes
添加到编译器标志。您可以通过创建文件〜/.r/makevars
并添加来实现这一目标As Dirk said in the comments you could add
-Wno-ignored-attributes
to your compiler flags. You can achieve that by creating the file~/.R/Makevars
and adding