/external/eigen/doc/snippets/ |
ComplexEigenSolver_compute.cpp | 2 cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl; variable 6 cout << "The eigenvalues of A are:" << endl << ces.eigenvalues() << endl; 7 cout << "The matrix of eigenvectors, V, is:" << endl << ces.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...] |
Cwise_plus.cpp | 2 cout << v+5 << endl; variable
|
DenseBase_LinSpaced.cpp | 1 cout << VectorXi::LinSpaced(4,7,10).transpose() << endl; 2 cout << VectorXd::LinSpaced(5,0.0,1.0).transpose() << endl;
|
DirectionWise_replicate.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "m.colwise().replicate<3>() = ..." << endl; variable 4 cout << m.colwise().replicate<3>() << endl;
|
DirectionWise_replicate_int.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "v.rowwise().replicate(5) = ..." << endl; variable 4 cout << v.rowwise().replicate(5) << endl;
|
EigenSolver_EigenSolver_MatrixType.cpp | 2 cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; variable 5 cout << "The eigenvalues of A are:" << endl << es.eigenvalues() << endl; 6 cout << "The matrix of eigenvectors, V, is:" << endl << es.eigenvectors() << endl << endl; variable 9 cout << "Consider the first eigenvalue, lambda = " << lambda << endl; variable 11 cout << "If v is the corresponding eigenvector, then lambda * v = " << endl << lambda * v << endl variable 12 cout << "... and A * v = " << endl << A.cast<complex<double> >() * v << endl << endl; variable [all...] |
MatrixBase_applyOnTheLeft.cpp | 5 cout << "At start, A = " << endl << A << endl; variable 7 cout << "After applyOnTheLeft, A = " << endl << A << endl; variable
|
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_ones.cpp | 1 cout << Matrix2d::Ones() << endl; 2 cout << 6 * RowVector4i::Ones() << endl;
|
MatrixBase_ones_int.cpp | 1 cout << 6 * RowVectorXi::Ones(4) << endl; 2 cout << VectorXf::Ones(2) << endl;
|
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 3 cout << "Here is the count of elements larger or equal than 0.5 of each row:" << endl << (m.array() >= 0.5).rowwise().count() << 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...] |
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;
|
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;
|
/external/eigen/doc/examples/ |
MatrixBase_cwise_const.cpp | 11 cout << "Here is the matrix m:" << endl << m << endl; local 13 cout << "And here is the matrix n:" << endl << n << endl; local 14 cout << "The coefficient-wise product of m and n is:" << endl; local 15 cout << m.cwise() * n << endl; local 16 cout << "Taking the cube of the coefficients of m yields:" << endl; local 17 cout << m.cwise().pow(3) << endl;
|
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;
|