/external/eigen/doc/snippets/ |
HessenbergDecomposition_matrixH.cpp | 2 cout << "Here is a random 4x4 matrix:" << endl << A << endl; variable 5 cout << "The Hessenberg matrix H is:" << endl << H << endl; variable 7 cout << "The orthogonal matrix Q is:" << endl << Q << endl; variable 8 cout << "Q H Q^T is:" << endl << Q * H * Q.transpose() << endl;
|
HessenbergDecomposition_packedMatrix.cpp | 2 cout << "Here is a random 4x4 matrix:" << endl << A << endl; variable 5 cout << "The packed matrix M is:" << endl << pm << endl; variable 7 << endl << hessOfA.matrixH() << endl; 9 cout << "The vector of Householder coefficients is:" << endl << hc << endl; variable
|
MatrixBase_asDiagonal.cpp | 1 cout << Matrix3i(Vector3i(2,5,6).asDiagonal()) << endl;
|
TopicStorageOrders_example.cpp | 5 cout << "The matrix A:" << endl; variable 6 cout << Acolmajor << endl << endl; variable 8 cout << "In memory (column-major):" << endl; variable 11 cout << endl << endl; variable 14 cout << "In memory (row-major):" << endl; variable 17 cout << endl; variable
|
ColPivHouseholderQR_solve.cpp | 3 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Here is the matrix y:" << endl << y << endl; variable 8 cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; variable
|
FullPivHouseholderQR_solve.cpp | 3 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Here is the matrix y:" << endl << y << endl; variable 8 cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; variable
|
FullPivLU_kernel.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 5 << endl << ker << endl; variable 7 << endl << m*ker << endl; variable
|
MatrixBase_applyOnTheRight.cpp | 5 cout << "At start, A = " << endl << A << endl; variable 7 cout << "After A *= B, A = " << endl << A << endl; variable 9 cout << "After applyOnTheRight, A = " << endl << A << 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_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_computeInverseAndDetWithCheck.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 7 cout << "Its determinant is " << determinant << endl; variable 9 cout << "It is invertible, and its inverse is:" << endl << inverse << endl; variable 12 cout << "It is not invertible." << 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_isOrthogonal.cpp | 3 cout << "Here's the vector v:" << endl << v << endl; variable 4 cout << "Here's the vector w:" << endl << w << endl; variable 5 cout << "v.isOrthogonal(w) returns: " << v.isOrthogonal(w) << endl; 6 cout << "v.isOrthogonal(w,1e-3) returns: " << v.isOrthogonal(w,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
|
MatrixBase_rightCols_int.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.rightCols(2):" << endl; variable 4 cout << a.rightCols(2) << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|
MatrixBase_rowwise.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the sum of each row:" << endl << m.rowwise().sum() << endl; 5 << endl << m.cwiseAbs().rowwise().maxCoeff() << endl;
|
MatrixBase_template_int_bottomRows.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_template_int_int_block_int_int_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the block:" << endl << m.block<2, Dynamic>(1, 1, 2, 3) << endl; 5 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_bottomLeftCorner.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_template_int_int_bottomLeftCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomLeftCorner<2,Dynamic>(2,2):" << endl; variable 4 cout << m.bottomLeftCorner<2,Dynamic>(2,2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_bottomRightCorner.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
|
/external/eigen/doc/examples/ |
Tutorial_BlockOperations_print_block.cpp | 13 cout << "Block in the middle" << endl; local 14 cout << m.block<2,2>(1,1) << endl << endl; local 17 cout << "Block of size " << i << "x" << i << endl; local 18 cout << m.block(0,0,i,i) << endl << endl; local
|
Tutorial_PartialLU_solve.cpp | 14 cout << "Here is the matrix A:" << endl << A << endl; local 15 cout << "Here is the vector b:" << endl << b << endl; local 17 cout << "The solution is:" << endl << x << endl; local
|