/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
|
Jacobi_makeGivens.cpp | 4 cout << "Here is the vector v:" << endl << v << endl; variable 6 cout << "Here is the vector J' * v:" << endl << v << endl variable
|
Jacobi_makeJacobi.cpp | 5 cout << "Here is the matrix m:" << endl << m << endl; variable 8 cout << "Here is the matrix J' * m * J:" << endl << m << endl variable
|
MatrixBase_applyOnTheLeft.cpp | 5 cout << "At start, A = " << endl << A << endl; variable 7 cout << "After applyOnTheLeft, A = " << endl << A << 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_computeInverseWithCheck.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 7 cout << "It is invertible, and its inverse is:" << endl << inverse << endl; variable 10 cout << "It is not invertible." << endl; variable
|
MatrixBase_cwiseProduct.cpp | 3 cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl; variable
|
MatrixBase_eigenvalues.cpp | 3 cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << eivals << endl; variable
|
MatrixBase_eval.cpp | 4 cout << "Here is the matrix m:" << endl << m << endl; variable 5 cout << "Now we want to copy a column into a row." << endl; variable 6 cout << "If we do m.col(1) = m.row(0), then m becomes:" << endl; variable 8 cout << m << endl << "which is wrong!" << endl; variable 9 cout << "Now let us instead do m.col(1) = m.row(0).eval(). Then m becomes" << endl; variable 12 cout << m << endl << "which is right." << endl; variable
|
MatrixBase_noalias.cpp | 3 cout << c << endl; variable
|
MatrixBase_set.cpp | 5 cout << m1 << endl << endl; variable 8 cout << m2 << endl << endl; variable 13 cout << m2 << endl; variable
|
PartialPivLU_solve.cpp | 3 cout << "Here is the invertible matrix A:" << endl << A << endl; variable 4 cout << "Here is the matrix B:" << endl << B << endl; variable 6 cout << "Here is the (unique) solution X to the equation AX=B:" << endl << X << endl; variable 7 cout << "Relative error: " << (A*X-B).norm() / B.norm() << endl;
|
RealSchur_RealSchur_MatrixType.cpp | 2 cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; variable 5 cout << "The orthogonal matrix U is:" << endl << schur.matrixU() << endl; 6 cout << "The quasi-triangular matrix T is:" << endl << schur.matrixT() << endl << endl; variable 10 cout << "U * T * U^T = " << endl << U * T * U.transpose() << endl; [all...] |
SelfAdjointEigenSolver_operatorInverseSqrt.cpp | 3 cout << "Here is a random positive-definite matrix, A:" << endl << A << endl << endl; variable 6 cout << "The inverse square root of A is: " << endl; variable 7 cout << es.operatorInverseSqrt() << endl; 8 cout << "We can also compute it with operatorSqrt() and inverse(). That yields: " << endl; variable 9 cout << es.operatorSqrt().inverse() << endl;
|
SelfAdjointEigenSolver_operatorSqrt.cpp | 3 cout << "Here is a random positive-definite matrix, A:" << endl << A << endl << endl; variable 7 cout << "The square root of A is: " << endl << sqrtA << endl; variable 8 cout << "If we square this, we get: " << endl << sqrtA*sqrtA << endl; variable
|
SelfAdjointView_eigenvalues.cpp | 3 cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << eivals << endl; variable
|
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
|
Tridiagonalization_compute.cpp | 5 cout << "The matrix T in the tridiagonal decomposition of A is: " << endl; variable 6 cout << tri.matrixT() << endl; 8 cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl; variable 9 cout << tri.matrixT() << endl;
|
Tridiagonalization_decomposeInPlace.cpp | 3 cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl; variable 8 cout << "The orthogonal matrix Q is:" << endl << A << endl; variable 9 cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl; variable 10 cout << "The subdiagonal of the tridiagonal matrix T is:" << endl << subdiag << endl; variable
|
Tridiagonalization_householderCoefficients.cpp | 3 cout << "Here is a random symmetric 4x4 matrix:" << endl << A << endl; variable 6 cout << "The vector of Householder coefficients is:" << endl << hc << endl; variable
|
Tridiagonalization_packedMatrix.cpp | 3 cout << "Here is a random symmetric 4x4 matrix:" << endl << A << endl; variable 6 cout << "The packed matrix M is:" << endl << pm << endl; variable 8 << endl << triOfA.matrixT() << endl;
|
Tutorial_AdvancedInitialization_Join.cpp | 3 std::cout << "vec1 = " << vec1 << std::endl; member in class:std 7 std::cout << "vec2 = " << vec2 << std::endl; member in class:std 11 std::cout << "joined = " << joined << std::endl; member in class:std
|
Tutorial_solve_matrix_inverse.cpp | 6 cout << "The solution is:" << endl << x << endl; variable
|
Tutorial_solve_multiple_rhs.cpp | 7 cout << "The solution with right-hand side (3,3,4) is:" << endl; variable 8 cout << X.col(0) << endl; 9 cout << "The solution with right-hand side (1,1,1) is:" << endl; variable 10 cout << X.col(1) << endl;
|