我正在尝试使用 RcppEigen 创建一个调用(和输出)具有长双精度的特征矩阵的函数。
当我编译时:
// [[Rcpp::export]]
Eigen::Matrix<long double, 4, 4> A_matrix_LPPLS_RcppEigen(const Eigen::Map<Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>>& onesfgh_LPPLS) {
}
它可以工作(当然,有一个警告,该函数什么都不做)。但是当我做同样的事情时:
// [[Rcpp::export]]
Eigen::Matrix<long double, 4, 4> A_matrix_LPPLS_RcppEigen(const Eigen::Map<Eigen::Matrix<double, Eigen::Dynamic, 4>>& onesfgh_LPPLS) {
}
它失败。
如果我在参数中尝试使用 long double (在使用双精度时使用以前有效的组合),它也会失败:
// [[Rcpp::export]]
Eigen::Matrix<long double, 4, 4> A_matrix_LPPLS_RcppEigen(const Eigen::Map<Eigen::Matrix<long double, Eigen::Dynamic, Eigen::Dynamic>>& onesfgh_LPPLS) {
}
我能做些什么呢?