Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

MatrixBase_isDiagonal.cpp

Matrix3d m = 10000 * Matrix3d::Identity();
m(0,2) = 1;
cout << "Here's the matrix m:" << endl << m << endl;
cout << "m.isDiagonal() returns: " << m.isDiagonal() << endl;
cout << "m.isDiagonal(1e-3) returns: " << m.isDiagonal(1e-3) << endl;


Generated by  Doxygen 1.6.0   Back to index