转置矩阵
matrix.transpose()
共轭矩阵
matrix.conjugate()
伴随矩阵(共轭转置)
matrix.adjoint()
逆矩阵
matrix.inverse()
块操作
matrix.block(i,j,p,q)
行列式
matrix.determinant()
代码示例
#include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
using namespace std;
int main() {
MatrixXd p(3, 3);
p << 1, 2, 3,
4, 1, 6,
7, 8, 1;
cout << p.transpose() << endl;
cout << p.inverse() << endl;
cout << p.conjugate() << endl;
cout << p.adjoint() << endl;
cout << p.block(1,0,2,1) << endl;
cout << p.block<2,1>(1,0) << endl;
cout << p.determinant() << endl;
return 0;
}