/external/eigen/doc/snippets/ |
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;
|
MatrixBase_extract.cpp | 6 cout << "Here is the matrix m:" << endl << m << endl; 7 cout << "Here is the upper-triangular matrix extracted from m:" << endl 8 << m.part<Eigen::UpperTriangular>() << endl; 9 cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl 10 << m.part<Eigen::StrictlyUpperTriangular>() << endl; 11 cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl 12 << m.part<Eigen::UnitLowerTriangular>() << endl;
|
TopicStorageOrders_example.cpp | 5 cout << "The matrix A:" << endl; variable 6 cout << Acolmajor << endl << endl; variable 8 cout << "In memory (column-major):" << endl; variable 11 cout << endl << endl; variable 14 cout << "In memory (row-major):" << endl; variable 17 cout << endl; variable
|
HouseholderSequence_HouseholderSequence.cpp | 2 cout << "The matrix v is:" << endl; variable 3 cout << v << endl; variable 6 cout << "The first Householder vector is: v_0 = " << v0.transpose() << endl; 8 cout << "The second Householder vector is: v_1 = " << v1.transpose() << endl; 10 cout << "The third Householder vector is: v_2 = " << v2.transpose() << endl; 13 cout << "The Householder coefficients are: h = " << h.transpose() << endl; 16 cout << "The first Householder reflection is represented by H_0 = " << endl; variable 17 cout << H0 << endl; variable 19 cout << "The second Householder reflection is represented by H_1 = " << endl; variable 20 cout << H1 << endl; variable 22 cout << "The third Householder reflection is represented by H_2 = " << endl; variable 23 cout << H2 << endl; variable 24 cout << "Their product is H_0 H_1 H_2 = " << endl; variable 25 cout << H0 * H1 * H2 << endl; variable 29 cout << "If we construct a HouseholderSequence from v and h" << endl; variable 30 cout << "and convert it to a matrix, we get:" << endl; variable 31 cout << hhSeqAsMatrix << endl; variable [all...] |
ComplexSchur_compute.cpp | 4 cout << "The matrix T in the decomposition of A is:" << endl << schur.matrixT() << endl; 6 cout << "The matrix T in the decomposition of A^(-1) is:" << endl << schur.matrixT() << endl;
|
Cwise_abs.cpp | 2 cout << v.abs() << endl;
|
/external/eigen/doc/examples/ |
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;
|
QuickStart_example2_dynamic.cpp | 11 cout << "m =" << endl << m << endl; local 14 cout << "m * v =" << endl << m * v << endl; local
|
QuickStart_example2_fixed.cpp | 11 cout << "m =" << endl << m << endl; local 14 cout << "m * v =" << endl << m * v << endl; local
|