matrix multiplication c++ eigen
MatrixXcf a = MatrixXcf::Random(2,2);
cout << "Here is the matrix a\n" << a << endl;
cout << "Here is the matrix a^T\n" << a.transpose() << endl;
0
0
Matrix2d mat;
mat << 1, 2,
3, 4;
std::cout << "Here is mat*mat:\n" << mat*mat << std::endl;
Thank you!
0
0
Are there any code examples left?
New code examples in category C++