/external/eigen/doc/snippets/ |
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;
|
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_rightCols_int.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.rightCols(2):" << endl; variable 4 cout << a.rightCols(2) << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|
MatrixBase_row.cpp | 3 cout << m << endl; variable
|
MatrixBase_rowwise.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; 5 << endl << m.cwiseAbs().rowwise().maxCoeff() << endl;
|
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_selfadjointView.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the symmetric matrix extracted from the upper part of m:" << endl 4 << Matrix3i(m.selfadjointView<Upper>()) << endl; 5 cout << "Here is the symmetric matrix extracted from the lower part of m:" << endl 6 << Matrix3i(m.selfadjointView<Lower>()) << endl;
|
MatrixBase_setIdentity.cpp | 3 cout << m << endl; variable
|
MatrixBase_setOnes.cpp | 3 cout << m << endl; variable
|
MatrixBase_setRandom.cpp | 3 cout << m << endl; variable
|
MatrixBase_setZero.cpp | 3 cout << m << 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_bottomRows.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.bottomRows<2>():" << endl; variable 4 cout << a.bottomRows<2>() << endl; 6 cout << "Now the array a is:" << endl << a << 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_int_block_int_int_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is the block:" << endl << m.block<2, Dynamic>(1, 1, 2, 3) << endl; 5 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_bottomLeftCorner.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomLeftCorner<2,2>():" << endl; variable 4 cout << m.bottomLeftCorner<2,2>() << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_bottomLeftCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomLeftCorner<2,Dynamic>(2,2):" << endl; variable 4 cout << m.bottomLeftCorner<2,Dynamic>(2,2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_bottomRightCorner.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomRightCorner<2,2>():" << endl; variable 4 cout << m.bottomRightCorner<2,2>() << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_bottomRightCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.bottomRightCorner<2,Dynamic>(2,2):" << endl; variable 4 cout << m.bottomRightCorner<2,Dynamic>(2,2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_topLeftCorner.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.topLeftCorner<2,2>():" << endl; variable 4 cout << m.topLeftCorner<2,2>() << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_topLeftCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.topLeftCorner<2,Dynamic>(2,2):" << endl; variable 4 cout << m.topLeftCorner<2,Dynamic>(2,2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_topRightCorner.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.topRightCorner<2,2>():" << endl; variable 4 cout << m.topRightCorner<2,2>() << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_template_int_int_topRightCorner_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.topRightCorner<2,Dynamic>(2,2):" << endl; variable 4 cout << m.topRightCorner<2,Dynamic>(2,2) << endl; 6 cout << "Now the matrix m is:" << endl << m << endl; variable
|