/external/eigen/doc/snippets/ |
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_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_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_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_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_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_leftCols.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_template_int_rightCols.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_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
|
MatrixBase_template_int_topRows.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.topRows<2>():" << endl; variable 4 cout << a.topRows<2>() << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|
MatrixBase_topLeftCorner_int_int.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_topRightCorner_int_int.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_topRows_int.cpp | 2 cout << "Here is the array a:" << endl << a << endl; variable 3 cout << "Here is a.topRows(2):" << endl; variable 4 cout << a.topRows(2) << endl; 6 cout << "Now the array a is:" << endl << a << endl; variable
|
Tutorial_solve_singular.cpp | 5 cout << "Here is the matrix A:" << endl << A << endl; variable 6 cout << "Here is the vector b:" << endl << b << endl; variable 9 cout << "The solution is:" << endl << x << endl; variable
|
Tutorial_solve_triangular.cpp | 5 cout << "Here is the matrix A:" << endl << A << endl; variable 6 cout << "Here is the vector b:" << endl << b << endl; variable 8 cout << "The solution is:" << endl << x << endl; variable
|
TopicAliasing_cwise.cpp | 3 cout << "Here is the matrix mat:\n" << mat << endl << endl; variable 6 cout << "After 'mat = 2 * mat', mat = \n" << mat << endl << endl; variable 10 cout << "After the subtraction, it becomes\n" << mat << endl << endl; variable 15 cout << "After squaring, it becomes\n" << arr << endl << endl; variable 20 cout << "Doing everything at once yields\n" << mat << endl << endl; variable [all...] |
PartialPivLU_solve.cpp | 3 cout << "Here is the invertible matrix A:" << endl << A << endl; variable 4 cout << "Here is the matrix B:" << endl << B << endl; variable 6 cout << "Here is the (unique) solution X to the equation AX=B:" << endl << X << endl; variable 7 cout << "Relative error: " << (A*X-B).norm() / B.norm() << endl;
|
SelfAdjointEigenSolver_operatorInverseSqrt.cpp | 3 cout << "Here is a random positive-definite matrix, A:" << endl << A << endl << endl; variable 6 cout << "The inverse square root of A is: " << endl; variable 7 cout << es.operatorInverseSqrt() << endl; 8 cout << "We can also compute it with operatorSqrt() and inverse(). That yields: " << endl; variable 9 cout << es.operatorSqrt().inverse() << endl;
|
MatrixBase_eval.cpp | 4 cout << "Here is the matrix m:" << endl << m << endl; variable 5 cout << "Now we want to copy a column into a row." << endl; variable 6 cout << "If we do m.col(1) = m.row(0), then m becomes:" << endl; variable 8 cout << m << endl << "which is wrong!" << endl; variable 9 cout << "Now let us instead do m.col(1) = m.row(0).eval(). Then m becomes" << endl; variable 12 cout << m << endl << "which is right." << endl; variable
|
ComplexSchur_matrixT.cpp | 2 cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl; variable 4 cout << "The triangular matrix T is:" << endl << schurOfA.matrixT() << endl;
|
/external/eigen/doc/examples/ |
Tutorial_BlockOperations_block_assignment.cpp | 13 cout << "Here is the array a:" << endl << a << endl << endl; local 15 cout << "Here is now a with m copied into its central 2x2 block:" << endl << a << endl << endl; local 17 cout << "Here is now a with bottom-right 2x3 block copied into top-left 2x2 block:" << endl << a << endl << endl; local
|