code <- '
arma::mat M=Rcpp::as<arma::mat>(m);
arma::umat a=trans(M)>M;
arma::mat N=a;
return Rcpp::wrap(N);
'
coxFunc <- cxxfunction(signature(m="matrix"),
code,
plugin="RcppArmadillo")
如何在犰狳上从 umat 转换为 mat?
file53a97e398eed.cpp:33: error: conversion from ‘arma::umat’ to non-scalar type ‘arma::mat’ requested
make: *** [file53a97e398eed.o] Error 1
谢谢,