/external/eigen/doc/snippets/ |
FullPivLU_image.cpp | 5 cout << "Here is the matrix m:" << endl << m << endl; variable 7 << "columns are linearly dependent." << endl; variable 9 << endl << m.fullPivLu().image(m) << endl;
|
JacobiSVD_basic.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Its singular values are:" << endl << svd.singularValues() << endl; 5 cout << "Its left singular vectors are the columns of the thin U matrix:" << endl << svd.matrixU() << endl; 6 cout << "Its right singular vectors are the columns of the thin V matrix:" << endl << svd.matrixV() << endl; 8 cout << "Now consider this rhs vector:" << endl << rhs << endl; variable [all...] |
LLT_example.cpp | 3 cout << "The matrix A is" << endl << A << endl; variable 9 cout << "The Cholesky factor L is" << endl << L << endl; variable 10 cout << "To check this, let us compute L * L.transpose()" << endl; variable 11 cout << L * L.transpose() << endl; 12 cout << "This should equal the matrix A" << endl; variable
|
MatrixBase_adjoint.cpp | 2 cout << "Here is the 2x2 complex matrix m:" << endl << m << endl; variable 3 cout << "Here is the adjoint of m:" << endl << m.adjoint() << endl;
|
MatrixBase_block_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.block<2,2>(1,1):" << endl << m.block<2,2>(1,1) << endl; 5 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_block_int_int_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.block(1, 1, 2, 2):" << endl << m.block(1, 1, 2, 2) << endl; 5 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_bottomLeftCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomLeftCorner(2, 2):" << endl; variable 4 cout << m.bottomLeftCorner(2, 2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_bottomRightCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomRightCorner(2, 2):" << endl; variable 4 cout << m.bottomRightCorner(2, 2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_bottomRows_int.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.bottomRows(2):" << endl; variable 4 cout << a.bottomRows(2) << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|
MatrixBase_col.cpp | 3 cout << m << endl; variable
|
MatrixBase_colwise.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the sum of each column:" << endl << m.colwise().sum() << endl; 5 << endl << m.cwiseAbs().colwise().maxCoeff() << endl;
|
MatrixBase_cwiseEqual.cpp | 4 cout << "Comparing m with identity matrix:" << endl; variable 5 cout << m.cwiseEqual(MatrixXi::Identity(2,2)) << endl; 7 cout << "Number of coefficients that are equal: " << count << endl; variable
|
MatrixBase_cwiseNotEqual.cpp | 4 cout << "Comparing m with identity matrix:" << endl; variable 5 cout << m.cwiseNotEqual(MatrixXi::Identity(2,2)) << endl; 7 cout << "Number of coefficients that are not equal: " << count << endl; variable
|
MatrixBase_diagonal.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here are the coefficients on the main diagonal of m:" << endl 4 << m.diagonal() << endl;
|
MatrixBase_diagonal_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 << m.diagonal(1).transpose() << endl 5 << m.diagonal(-2).transpose() << endl;
|
MatrixBase_diagonal_template_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 << m.diagonal<1>().transpose() << endl 5 << m.diagonal<-2>().transpose() << endl;
|
MatrixBase_end_int.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "Here is v.tail(2):" << endl << v.tail(2) << endl; 5 cout << "Now the vector v is:" << endl << v << endl; variable
|
MatrixBase_fixedBlock_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.fixed<2, 2>(2, 2):" << endl << m.block<2, 2>(2, 2) << endl; 5 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_inverse.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Its inverse is:" << endl << m.inverse() << endl;
|
MatrixBase_isDiagonal.cpp | 3 cout << "Here's the matrix m:" << endl << m << endl; variable 4 cout << "m.isDiagonal() returns: " << m.isDiagonal() << endl; 5 cout << "m.isDiagonal(1e-3) returns: " << m.isDiagonal(1e-3) << endl;
|
MatrixBase_isIdentity.cpp | 3 cout << "Here's the matrix m:" << endl << m << endl; variable 4 cout << "m.isIdentity() returns: " << m.isIdentity() << endl; 5 cout << "m.isIdentity(1e-3) returns: " << m.isIdentity(1e-3) << endl;
|
MatrixBase_isOnes.cpp | 3 cout << "Here's the matrix m:" << endl << m << endl; variable 4 cout << "m.isOnes() returns: " << m.isOnes() << endl; 5 cout << "m.isOnes(1e-3) returns: " << m.isOnes(1e-3) << endl;
|
MatrixBase_isUnitary.cpp | 3 cout << "Here's the matrix m:" << endl << m << endl; variable 4 cout << "m.isUnitary() returns: " << m.isUnitary() << endl; 5 cout << "m.isUnitary(1e-3) returns: " << m.isUnitary(1e-3) << endl;
|
MatrixBase_isZero.cpp | 3 cout << "Here's the matrix m:" << endl << m << endl; variable 4 cout << "m.isZero() returns: " << m.isZero() << endl; 5 cout << "m.isZero(1e-3) returns: " << m.isZero(1e-3) << endl;
|
MatrixBase_leftCols_int.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.leftCols(2):" << endl; variable 4 cout << a.leftCols(2) << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|