index_max 不是 RcppArmadillo 中的 arma 成员
index_max not a member of arma in RcppArmadillo
当我在 Rstudio
中编译以下代码时,这是犰狳文档中的一个示例,我收到一条错误消息:
代码:
arma::vec v = arma::randu<arma::vec>(10);
arma::uword i = arma::index_max(v);
错误信息是:
'index_max' is not a member of 'arma'
哪个版本?
0.7.200.2.0 中存在(上游)疏忽,因此可以尝试 RcppCore drat repo as discussed in this announcement on rcpp-devel.
中的 0.7.300.1.0
当我在 Rstudio
中编译以下代码时,这是犰狳文档中的一个示例,我收到一条错误消息:
代码:
arma::vec v = arma::randu<arma::vec>(10);
arma::uword i = arma::index_max(v);
错误信息是:
'index_max' is not a member of 'arma'
哪个版本?
0.7.200.2.0 中存在(上游)疏忽,因此可以尝试 RcppCore drat repo as discussed in this announcement on rcpp-devel.
中的 0.7.300.1.0