/external/eigen/doc/snippets/ |
MatrixBase_zero.cpp | 1 cout << Matrix2d::Zero() << endl; 2 cout << RowVector4i::Zero() << endl;
|
MatrixBase_zero_int.cpp | 1 cout << RowVectorXi::Zero(4) << endl; 2 cout << VectorXf::Zero(2) << endl;
|
PartialRedux_count.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Here is the count of elements larger or equal than 0.5 of each row:" << endl; variable 5 cout << res << endl; variable
|
SelfAdjointEigenSolver_SelfAdjointEigenSolver_MatrixType.cpp | 3 cout << "Here is a random symmetric 5x5 matrix, A:" << endl << A << endl << endl; variable 6 cout << "The eigenvalues of A are:" << endl << es.eigenvalues() << endl; 7 cout << "The matrix of eigenvectors, V, is:" << endl << es.eigenvectors() << endl << endl; variable 10 cout << "Consider the first eigenvalue, lambda = " << lambda << endl; variable 12 cout << "If v is the corresponding eigenvector, then lambda * v = " << endl << lambda * v << endl variable 13 cout << "... and A * v = " << endl << A * v << endl << endl; variable [all...] |
SelfAdjointEigenSolver_SelfAdjointEigenSolver_MatrixType2.cpp | 3 cout << "Here is a random symmetric matrix, A:" << endl << A << endl; variable 6 cout << "and a random postive-definite matrix, B:" << endl << B << endl << endl; variable 9 cout << "The eigenvalues of the pencil (A,B) are:" << endl << es.eigenvalues() << endl; 10 cout << "The matrix of eigenvectors, V, is:" << endl << es.eigenvectors() << endl << endl; variable 13 cout << "Consider the first eigenvalue, lambda = " << lambda << endl; variable 15 cout << "If v is the corresponding eigenvector, then A * v = " << endl << A * v << endl; variable 16 cout << "... and lambda * B * v = " << endl << lambda * B * v << endl << endl; variable [all...] |
tut_arithmetic_transpose_conjugate.cpp | 2 cout << "Here is the matrix a\n" << a << endl; variable 4 cout << "Here is the matrix a^T\n" << a.transpose() << endl; 7 cout << "Here is the conjugate of a\n" << a.conjugate() << endl; 10 cout << "Here is the matrix a^*\n" << a.adjoint() << endl;
|
Tridiagonalization_diagonal.cpp | 3 cout << "Here is a random self-adjoint 4x4 matrix:" << endl << A << endl << endl; variable 7 cout << "The tridiagonal matrix T is:" << endl << T << endl << endl; variable 9 cout << "We can also extract the diagonals of T directly ..." << endl; variable 11 cout << "The diagonal is:" << endl << diag << endl; variable 13 cout << "The subdiagonal is:" << endl << subdiag << endl variable [all...] |
Cwise_minus.cpp | 2 cout << v-5 << endl;
|
DenseBase_LinSpacedInt.cpp | 1 cout << "Even spacing inputs:" << endl; variable 2 cout << VectorXi::LinSpaced(8,1,4).transpose() << endl; 3 cout << VectorXi::LinSpaced(8,1,8).transpose() << endl; 4 cout << VectorXi::LinSpaced(8,1,15).transpose() << endl; 5 cout << "Uneven spacing inputs:" << endl; variable 6 cout << VectorXi::LinSpaced(8,1,7).transpose() << endl; 7 cout << VectorXi::LinSpaced(8,1,9).transpose() << endl; 8 cout << VectorXi::LinSpaced(8,1,16).transpose() << endl;
|
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;
|
/external/eigen/doc/examples/ |
Tutorial_ArrayClass_cwise_other.cpp | 11 cout << "a =" << endl 12 << a << endl; local 13 cout << "a.abs() =" << endl 14 << a.abs() << endl; 15 cout << "a.abs().sqrt() =" << endl 16 << a.abs().sqrt() << endl; 17 cout << "a.min(a.abs().sqrt()) =" << endl 18 << a.min(a.abs().sqrt()) << endl;
|
TutorialInplaceLU.cpp | 3 init() { std::cout << "[" << "init" << "]" << std::endl; } member in class:init::std 17 cout << "Here is the input matrix A before decomposition:\n" << A << endl; local 18 cout << "[init]" << endl; local 20 cout << "[declaration]" << endl; local 22 cout << "Here is the input matrix A after decomposition:\n" << A << endl; local 23 cout << "[declaration]" << endl; local 25 cout << "[matrixLU]" << endl; local 26 cout << "Here is the matrix storing the L and U factors:\n" << lu.matrixLU() << endl; 27 cout << "[matrixLU]" << endl; local 29 cout << "[solve]" << endl; local 34 cout << "[solve]" << endl; local 36 cout << "[modifyA]" << endl; local 40 cout << "[modifyA]" << endl; local 42 cout << "[recompute]" << endl; local 47 cout << "[recompute]" << endl; local 49 cout << "[recompute_bis0]" << endl; local 53 cout << "Here is the input matrix A1 after decomposition:\\n" << A1 << endl; local 54 cout << "[recompute_bis0]" << endl; local 56 cout << "[recompute_bis1]" << endl; local 59 cout << "[recompute_bis1]" << endl; local [all...] |
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
|