C++ 使用矩阵模板库的矩阵乘法(MTL 4)

C++ 使用矩阵模板库的矩阵乘法(MTL 4),c++,boost,vector,linear-algebra,C++,Boost,Vector,Linear Algebra,计划如下: #include <iostream> #include <boost/numeric/mtl/mtl.hpp> using namespace mtl; int main(int argc, char* argv[]) { dense_vector<double> a(5,1.0); dense_vector<double> b(5,2.0); a * trans(b); } #包括 #包括 使用名称空间mtl; int main(

计划如下:

#include <iostream>
#include <boost/numeric/mtl/mtl.hpp>
using namespace mtl;
int main(int argc, char* argv[])
{
dense_vector<double> a(5,1.0);
dense_vector<double> b(5,2.0);
a * trans(b);
}
#包括
#包括
使用名称空间mtl;
int main(int argc,char*argv[])
{
稠密_向量a(5,1.0);
稠密_向量b(5,2.0);
a*反式(b);
}
我想计算a*trans(b),但有一个compling错误:C2893。
有人帮我吗?非常感谢

上面程序中的向量是列向量。使用的构造函数有两个参数:大小和初始值

出现编译器错误的原因可能是:

向量的换位是 暂时还没有实施。信息技术 将在上创建行向量视图 列向量,反之亦然


如果您在输出窗口中提供完整的错误文本,这将有所帮助。C2893没有说太多。