/external/eigen/doc/snippets/ |
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...] |
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_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
|
MatrixBase_segment_int_int.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "Here is v.segment(1, 2):" << endl << v.segment(1, 2) << endl; 5 cout << "Now the vector v is:" << endl << v << endl; variable
|
MatrixBase_start_int.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "Here is v.head(2):" << endl << v.head(2) << endl; 5 cout << "Now the vector v is:" << endl << v << endl; variable
|
MatrixBase_template_int_end.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
|
MatrixBase_template_int_segment.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "Here is v.segment<2>(1):" << endl << v.segment<2>(1) << endl; 5 cout << "Now the vector v is:" << endl << v << endl; variable
|
MatrixBase_template_int_start.cpp | 2 cout << "Here is the vector v:" << endl << v << endl; variable 3 cout << "Here is v.head(2):" << endl << v.head<2>() << endl; 5 cout << "Now the vector v is:" << endl << v << endl; variable
|
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...] |
JacobiSVD_basic.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Its singular values are:" << endl << svd.singularValues() << endl; 5 cout << "Its left singular vectors are the columns of the thin U matrix:" << endl << svd.matrixU() << endl; 6 cout << "Its right singular vectors are the columns of the thin V matrix:" << endl << svd.matrixV() << endl; 8 cout << "Now consider this rhs vector:" << endl << rhs << endl; variable [all...] |
VectorwiseOp_homogeneous.cpp | 4 cout << "The matrix M is:" << endl << M << endl << endl; variable 5 cout << "M.colwise().homogeneous():" << endl << M.colwise().homogeneous() << endl << endl; variable 6 cout << "P * M.colwise().homogeneous():" << endl << P * M.colwise().homogeneous() << endl << endl; variable 7 cout << "P * M.colwise().homogeneous().hnormalized(): " << endl << (P * M.colwise().homogeneous()).colwise().hnormalized() << endl << endl variable [all...] |
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
|
MatrixBase_adjoint.cpp | 2 cout << "Here is the 2x2 complex matrix m:" << endl << m << endl; variable 3 cout << "Here is the adjoint of m:" << endl << m.adjoint() << endl;
|
MatrixBase_diagonal.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here are the coefficients on the main diagonal of m:" << endl 4 << m.diagonal() << endl;
|
MatrixBase_inverse.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Its inverse is:" << endl << m.inverse() << endl;
|
MatrixBase_prod.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the product of all the coefficients:" << endl << m.prod() << endl;
|
MatrixBase_replicate.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "m.replicate<3,2>() = ..." << endl; variable 4 cout << m.replicate<3,2>() << endl;
|
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;
|
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;
|