/external/eigen/doc/snippets/ |
MatrixBase_diagonal_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 << m.diagonal(1).transpose() << endl 5 << m.diagonal(-2).transpose() << endl;
|
MatrixBase_diagonal_template_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 << m.diagonal<1>().transpose() << endl 5 << m.diagonal<-2>().transpose() << endl;
|
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_fixedBlock_int_int.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Here is m.fixed<2, 2>(2, 2):" << endl << m.block<2, 2>(2, 2) << endl; 5 cout << "Now the matrix m is:" << endl << m << endl; variable
|
MatrixBase_inverse.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 3 cout << "Its inverse is:" << endl << m.inverse() << endl;
|
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_leftCols_int.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.leftCols(2):" << endl; variable 4 cout << a.leftCols(2) << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|
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_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
|