/external/eigen/doc/snippets/ |
Cwise_arg.cpp | 2 cout << v << endl << endl; variable 3 cout << arg(v) << endl;
|
Cwise_ceil.cpp | 2 cout << v << endl << endl; variable 3 cout << ceil(v) << endl;
|
Cwise_floor.cpp | 2 cout << v << endl << endl; variable 3 cout << floor(v) << endl;
|
Cwise_round.cpp | 2 cout << v << endl << endl; variable 3 cout << round(v) << endl;
|
DirectionWise_hnormalized.cpp | 4 cout << "The matrix M is:" << endl << M << endl << endl; variable 5 cout << "M.colwise().hnormalized():" << endl << M.colwise().hnormalized() << endl << endl; variable 6 cout << "P*M:" << endl << P*M << endl << endl; variable 7 cout << "(P*M).colwise().hnormalized():" << endl << (P*M).colwise().hnormalized() << endl << endl variable [all...] |
MatrixBase_inverse.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Its inverse is:" << endl << m.inverse() << endl;
|
MatrixBase_random.cpp | 1 cout << 100 * Matrix2i::Random() << endl;
|
MatrixBase_random_int.cpp | 1 cout << VectorXi::Random(2) << 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;
|
ComplexSchur_matrixU.cpp | 2 cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl; variable 4 cout << "The unitary matrix U is:" << endl << schurOfA.matrixU() << 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...] |
Tridiagonalization_Tridiagonalization_MatrixType.cpp | 3 cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl; variable 6 cout << "The orthogonal matrix Q is:" << endl << Q << endl; variable 8 cout << "The tridiagonal matrix T is:" << endl << T << endl << endl; variable 9 cout << "Q * T * Q^T = " << endl << Q * T * Q.transpose() << endl; [all...] |
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
|
EigenSolver_pseudoEigenvectors.cpp | 2 cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; variable 7 cout << "The pseudo-eigenvalue matrix D is:" << endl << D << endl; variable 8 cout << "The pseudo-eigenvector matrix V is:" << endl << V << endl; variable 9 cout << "Finally, V * D * V^(-1) = " << endl << V * D * V.inverse() << endl;
|
MatrixBase_reverse.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the reverse of m:" << endl << m.reverse() << endl; 4 cout << "Here is the coefficient (1,0) in the reverse of m:" << endl 5 << m.reverse()(1,0) << endl; 6 cout << "Let us overwrite this coefficient with the value 4." << endl; variable 8 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_transpose.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the transpose of m:" << endl << m.transpose() << endl; 4 cout << "Here is the coefficient (1,0) in the transpose of m:" << endl 5 << m.transpose()(1,0) << endl; 6 cout << "Let us overwrite this coefficient with the value 0." << endl; variable 8 cout << "Now the matrix m is:" << endl << m << endl; variable
|
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
|
Cwise_boolean_not.cpp | 4 cout << v << endl << endl; variable 5 cout << !isfinite(v) << endl;
|
Cwise_isFinite.cpp | 4 cout << v << endl << endl; variable 5 cout << isfinite(v) << endl;
|
Cwise_isInf.cpp | 4 cout << v << endl << endl; variable 5 cout << isinf(v) << endl;
|
Cwise_isNaN.cpp | 4 cout << v << endl << endl; variable 5 cout << isnan(v) << endl;
|
/external/eigen/doc/examples/ |
Tutorial_ArrayClass_interop_matrix.cpp | 19 cout << "-- Matrix m*n: --" << endl << result << endl << endl; local 21 cout << "-- Array m*n: --" << endl << result << endl << endl; local 23 cout << "-- With cwiseProduct: --" << endl << result << endl << endl; local 25 cout << "-- Array m + 4: --" << endl << result << endl << endl local [all...] |