/external/eigen/doc/snippets/ |
MatrixBase_replicate_int_int.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "v.replicate(2,5) = ..." << endl; variable 4 cout << v.replicate(2,5) << endl;
|
MatrixBase_zero_int_int.cpp | 1 cout << MatrixXi::Zero(2,3) << endl;
|
Matrix_setConstant_int.cpp | 3 cout << v << endl; variable
|
Matrix_setIdentity_int_int.cpp | 3 cout << m << endl; variable
|
Matrix_setOnes_int.cpp | 3 cout << v << endl; variable
|
Matrix_setOnes_int_int.cpp | 3 cout << m << endl; variable
|
Matrix_setRandom_int.cpp | 3 cout << v << endl; variable
|
Matrix_setRandom_int_int.cpp | 3 cout << m << endl; variable
|
Matrix_setZero_int.cpp | 3 cout << v << endl; variable
|
Matrix_setZero_int_int.cpp | 3 cout << m << endl; variable
|
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...] |
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;
|
/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
|