/external/eigen/doc/snippets/ |
PartialRedux_maxCoeff.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the maximum of each column:" << endl << m.colwise().maxCoeff() << endl;
|
PartialRedux_minCoeff.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the minimum of each column:" << endl << m.colwise().minCoeff() << endl;
|
PartialRedux_norm.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
|
PartialRedux_prod.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the product of each row:" << endl << m.rowwise().prod() << endl;
|
PartialRedux_squaredNorm.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the square norm of each row:" << endl << m.rowwise().squaredNorm() << endl;
|
PartialRedux_sum.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;
|
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...] |
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...] |
Vectorwise_reverse.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the rowwise reverse of m:" << endl << m.rowwise().reverse() << endl; 4 cout << "Here is the colwise reverse of m:" << endl << m.colwise().reverse() << endl; 6 cout << "Here is the coefficient (1,0) in the rowise reverse of m:" << endl 7 << m.rowwise().reverse()(1,0) << endl; 8 cout << "Let us overwrite this coefficient with the value 4." << endl; variable 10 cout << "Now the matrix m is:" << endl << m << endl variable [all...] |
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
|
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_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_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_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
|
/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;
|
Tutorial_BlockOperations_corner.cpp | 13 cout << "m.leftCols(2) =" << endl << m.leftCols(2) << endl << endl; local 14 cout << "m.bottomRows<2>() =" << endl << m.bottomRows<2>() << endl << endl; local 16 cout << "After assignment, m = " << endl << m << endl; local
|
Tutorial_BlockOperations_vector.cpp | 10 cout << "v.head(3) =" << endl << v.head(3) << endl << endl; local 11 cout << "v.tail<3>() = " << endl << v.tail<3>() << endl << endl; local 13 cout << "after 'v.segment(1,4) *= 2', v =" << endl << v << endl; local
|