OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:cout
(Results
51 - 75
of
777
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/eigen/doc/snippets/
MatrixBase_isZero.cpp
3
cout
<< "Here's the matrix m:" << endl << m << endl;
4
cout
<< "m.isZero() returns: " << m.isZero() << endl;
5
cout
<< "m.isZero(1e-3) returns: " << m.isZero(1e-3) << endl;
MatrixBase_segment_int_int.cpp
2
cout
<< "Here is the vector v:" << endl << v << endl;
3
cout
<< "Here is v.segment(1, 2):" << endl << v.segment(1, 2) << endl;
5
cout
<< "Now the vector v is:" << endl << v << endl;
MatrixBase_start_int.cpp
2
cout
<< "Here is the vector v:" << endl << v << endl;
3
cout
<< "Here is v.head(2):" << endl << v.head(2) << endl;
5
cout
<< "Now the vector v is:" << endl << v << endl;
MatrixBase_template_int_end.cpp
2
cout
<< "Here is the vector v:" << endl << v << endl;
3
cout
<< "Here is v.tail(2):" << endl << v.tail<2>() << endl;
5
cout
<< "Now the vector v is:" << endl << v << endl;
MatrixBase_template_int_segment.cpp
2
cout
<< "Here is the vector v:" << endl << v << endl;
3
cout
<< "Here is v.segment<2>(1):" << endl << v.segment<2>(1) << endl;
5
cout
<< "Now the vector v is:" << endl << v << endl;
MatrixBase_template_int_start.cpp
2
cout
<< "Here is the vector v:" << endl << v << endl;
3
cout
<< "Here is v.head(2):" << endl << v.head<2>() << endl;
5
cout
<< "Now the vector v is:" << endl << v << endl;
JacobiSVD_basic.cpp
2
cout
<< "Here is the matrix m:" << endl << m << endl;
4
cout
<< "Its singular values are:" << endl << svd.singularValues() << endl;
5
cout
<< "Its left singular vectors are the columns of the thin U matrix:" << endl << svd.matrixU() << endl;
6
cout
<< "Its right singular vectors are the columns of the thin V matrix:" << endl << svd.matrixV() << endl;
8
cout
<< "Now consider this rhs vector:" << endl << rhs << endl;
9
cout
<< "A least-squares solution of m*x = rhs is:" << endl << svd.solve(rhs) << 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_eval.cpp
4
cout
<< "Here is the matrix m:" << endl << m << endl;
5
cout
<< "Now we want to copy a column into a row." << endl;
6
cout
<< "If we do m.col(1) = m.row(0), then m becomes:" << endl;
8
cout
<< m << endl << "which is wrong!" << endl;
9
cout
<< "Now let us instead do m.col(1) = m.row(0).eval(). Then m becomes" << endl;
12
cout
<< m << endl << "which is right." << endl;
Cwise_abs.cpp
2
cout
<< v.abs() << endl;
Cwise_abs2.cpp
2
cout
<< v.abs2() << endl;
Cwise_acos.cpp
2
cout
<< v.acos() << endl;
Cwise_asin.cpp
2
cout
<< v.asin() << endl;
Cwise_cube.cpp
2
cout
<< v.cube() << endl;
Cwise_equal_equal.cpp
2
cout
<< (v==w) << endl;
Cwise_exp.cpp
2
cout
<< v.exp() << endl;
Cwise_greater.cpp
2
cout
<< (v>w) << endl;
Cwise_greater_equal.cpp
2
cout
<< (v>=w) << endl;
Cwise_inverse.cpp
2
cout
<< v.inverse() << endl;
Cwise_less.cpp
2
cout
<< (v<w) << endl;
Cwise_less_equal.cpp
2
cout
<< (v<=w) << endl;
Cwise_log.cpp
2
cout
<< v.log() << endl;
Cwise_not_equal.cpp
2
cout
<< (v!=w) << endl;
/external/eigen/doc/examples/
MatrixBase_cwise_const.cpp
11
cout
<< "Here is the matrix m:" << endl << m << endl;
13
cout
<< "And here is the matrix n:" << endl << n << endl;
14
cout
<< "The coefficient-wise product of m and n is:" << endl;
15
cout
<< m.cwise() * n << endl;
16
cout
<< "Taking the cube of the coefficients of m yields:" << endl;
17
cout
<< m.cwise().pow(3) << endl;
tut_arithmetic_redux_basic.cpp
10
cout
<< "Here is mat.sum(): " << mat.sum() << endl;
11
cout
<< "Here is mat.prod(): " << mat.prod() << endl;
12
cout
<< "Here is mat.mean(): " << mat.mean() << endl;
13
cout
<< "Here is mat.minCoeff(): " << mat.minCoeff() << endl;
14
cout
<< "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl;
15
cout
<< "Here is mat.trace(): " << mat.trace() << endl;
Completed in 102 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>