/external/eigen/doc/snippets/ |
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;
|
MatrixBase_array_const.cpp | 2 cout << "the absolute values:" << endl << v.array().abs() << endl; 3 cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl; 4 cout << "sum of the squares: " << v.array().square().sum() << endl;
|
MatrixBase_computeInverseWithCheck.cpp | 2 cout << "Here is the matrix m:" << endl << m << endl; variable 7 cout << "It is invertible, and its inverse is:" << endl << inverse << endl; variable 10 cout << "It is not invertible." << endl; variable
|
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_set.cpp | 5 cout << m1 << endl << endl; variable 8 cout << m2 << endl << endl; variable 13 cout << m2 << endl; variable
|
ColPivHouseholderQR_solve.cpp | 3 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Here is the matrix y:" << endl << y << endl; variable 8 cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; variable
|
FullPivHouseholderQR_solve.cpp | 3 cout << "Here is the matrix m:" << endl << m << endl; variable 4 cout << "Here is the matrix y:" << endl << y << endl; variable 8 cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; variable
|
HouseholderQR_solve.cpp | 4 cout << "Here is the matrix m:" << endl << m << endl; variable 5 cout << "Here is the matrix y:" << endl << y << endl; variable 9 cout << "Here is a solution x to the equation mx=y:" << endl << x << 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_isOrthogonal.cpp | 3 cout << "Here's the vector v:" << endl << v << endl; variable 4 cout << "Here's the vector w:" << endl << w << endl; variable 5 cout << "v.isOrthogonal(w) returns: " << v.isOrthogonal(w) << endl; 6 cout << "v.isOrthogonal(w,1e-3) returns: " << v.isOrthogonal(w,1e-3) << endl;
|
MatrixBase_part.cpp | 7 cout << "Here is the matrix m:" << endl << m << endl; 8 cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl 9 << "taking advantage of the symmetry." << endl; 12 cout << "The result is:" << endl << n << endl;
|
Tridiagonalization_packedMatrix.cpp | 3 cout << "Here is a random symmetric 4x4 matrix:" << endl << A << endl; variable 6 cout << "The packed matrix M is:" << endl << pm << endl; variable 8 << endl << triOfA.matrixT() << endl;
|
DenseBase_LinSpaced.cpp | 1 cout << VectorXi::LinSpaced(4,7,10).transpose() << endl; 2 cout << VectorXd::LinSpaced(5,0.0,1.0).transpose() << endl;
|
DenseBase_LinSpaced_seq.cpp | 1 cout << VectorXi::LinSpaced(Sequential,4,7,10).transpose() << endl; 2 cout << VectorXd::LinSpaced(Sequential,5,0.0,1.0).transpose() << 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
|
Tutorial_ArrayClass_interop.cpp | 19 cout << "-- Combination 1: --" << endl << result << endl << endl; local 21 cout << "-- Combination 2: --" << endl << result << endl << endl; local
|
Tutorial_BlockOperations_print_block.cpp | 13 cout << "Block in the middle" << endl; local 14 cout << m.block<2,2>(1,1) << endl << endl; local 17 cout << "Block of size " << i << "x" << i << endl; local 18 cout << m.block(0,0,i,i) << endl << endl; local
|
Tutorial_PartialLU_solve.cpp | 14 cout << "Here is the matrix A:" << endl << A << endl; local 15 cout << "Here is the vector b:" << endl << b << endl; local 17 cout << "The solution is:" << endl << x << endl; local
|
MatrixBase_cwise_const.cpp | 11 cout << "Here is the matrix m:" << endl << m << endl; local 13 cout << "And here is the matrix n:" << endl << n << endl; local 14 cout << "The coefficient-wise product of m and n is:" << endl; local 15 cout << m.cwise() * n << endl; local 16 cout << "Taking the cube of the coefficients of m yields:" << endl; local 17 cout << m.cwise().pow(3) << endl;
|