简体   繁体   English

带犰狳的整数矩阵的行列式

[英]Determinant of integer matrix with armadillo

I have a function whose parameter is const arma::imat & A . 我有一个函数,其参数为const arma::imat & A And apart from other things I want to calculate determinant of input matrix A. Therefore I did 除了其他方面,我还想计算输入矩阵A的行列式。因此,我做了

int det = arma::det(A);

but during compilation I get following error: 但是在编译过程中出现以下错误:

error: no matching function for call to 'det'
int det = arma::det(A);

I tried google but found nothing that would address this problem. 我尝试了谷歌,但没有找到能解决这个问题的东西。 Any ideas please what might be the problem? 有什么想法请问可能是什么问题?

阅读文档,我认为您必须使用conv_to<type>::from才能调用为imat::mat定义的det

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM