• Home
  • Raw
  • Download

Lines Matching refs:cout

33    std::cout << "a + b =\n"  in example1()
36 std::cout << "a - b =\n" in example1()
39 std::cout << "Doing a += b;" << std::endl; in example1()
41 std::cout << "Now a =\n" in example1()
45 std::cout << "-v + w - v =\n" in example1()
56 std::cout << "a * 2.5 =\n" in example2()
58 std::cout << "0.1 * v =\n" in example2()
60 std::cout << "Doing v *= 2;" << std::endl; in example2()
62 std::cout << "Now v =\n" in example2()
65 std::cout << "Doing v *= Num;" << std::endl; in example2()
67 std::cout << "Now v =\n" in example2()
71 std::cout << "Doing v *= RelatedType;" << std::endl; in example2()
73 std::cout << "Now v =\n" in example2()
75 std::cout << "RelatedType * v =\n" in example2()
77 std::cout << "Doing v *= RelatedType^2;" << std::endl; in example2()
79 std::cout << "Now v =\n" in example2()
81 std::cout << "RelatedType^2 * v =\n" in example2()
90 cout << "Here is the matrix a\n" in example3()
92 cout << "Here is the matrix a^T\n" in example3()
94 cout << "Here is the conjugate of a\n" in example3()
96 cout << "Here is the matrix a^*\n" in example3()
107 std::cout << "Here is mat*mat:\n" in example4()
109 std::cout << "Here is mat*u:\n" in example4()
111 std::cout << "Here is u^T*mat:\n" in example4()
113 std::cout << "Here is u^T*v:\n" in example4()
115 std::cout << "Here is u*v^T:\n" in example4()
117 std::cout << "Let's multiply mat by itself" << std::endl; in example4()
119 std::cout << "Now mat is mat:\n" in example4()
129 cout << "Dot product: " << v.dot(w) << endl; in example5()
131 cout << "Dot product via a matrix product: " << dp << endl; in example5()
132 cout << "Cross product:\n" in example5()
143 cout << "Here is mat.sum(): " << mat.sum() << endl; in example6()
144 cout << "Here is mat.prod(): " << mat.prod() << endl; in example6()
145 cout << "Here is mat.mean(): " << mat.mean() << endl; in example6()
146 cout << "Here is mat.minCoeff(): " << mat.minCoeff() << endl; in example6()
147 cout << "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl; in example6()
148 cout << "Here is mat.trace(): " << mat.trace() << endl; in example6()
165 cout << m << endl in example7()
173 cout << m << endl; in example7()
190 cout << "a + b = " << endl in example8()
194 cout << "a - 2 = " << endl in example8()
208 cout << "a * b = " << endl in example9()
218 cout << "a =" << endl in example10()
220 cout << "a.abs() =" << endl in example10()
222 cout << "a.abs().sqrt() =" << endl in example10()
224 cout << "a.min(a.abs().sqrt()) =" << endl in example10()
240 cout << "-- Matrix m*n: --" << endl in example11()
244 cout << "-- Array m*n: --" << endl in example11()
248 cout << "-- With cwiseProduct: --" << endl in example11()
252 cout << "-- Array m + 4: --" << endl in example11()
270 cout << "-- Combination 1: --" << endl in example12()
274 cout << "-- Combination 2: --" << endl in example12()
288 cout << "Block in the middle" << endl; in example13()
289 cout << m.template block<2, 2>(1, 1) << endl in example13()
293 cout << "Block of size " << i << "x" << i << endl; in example13()
294 cout << m.block(0, 0, i, i) << endl in example13()
307 cout << "Here is the array a:" << endl in example14()
311 cout << "Here is now a with m copied into its central 2x2 block:" << endl in example14()
315 cout << "Here is now a with bottom-right 2x3 block copied into top-left 2x2 block:" << endl in example14()
328 cout << "Here is the matrix m:" << endl in example15()
330 cout << "2nd Row: " << m.row(1) << endl; in example15()
332 cout << "After adding 3 times the first column into the third column, the matrix m is:\n"; in example15()
333 cout << m << endl; in example15()
345 cout << "m.leftCols(2) =" << endl in example16()
348 cout << "m.bottomRows<2>() =" << endl in example16()
352 cout << "After assignment, m = " << endl in example16()
362 cout << "v.head(3) =" << endl in example17()
365 cout << "v.tail<3>() = " << endl in example17()
369 cout << "after 'v.segment(1,4) *= 2', v =" << endl in example17()
380 cout << "Here is mat.sum(): " << mat.sum() << endl; in example18()
381 cout << "Here is mat.prod(): " << mat.prod() << endl; in example18()
382 cout << "Here is mat.mean(): " << mat.mean() << endl; in example18()
383 cout << "Here is mat.minCoeff(): " << mat.minCoeff() << endl; in example18()
384 cout << "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl; in example18()
385 cout << "Here is mat.trace(): " << mat.trace() << endl; in example18()
402 cout << "Here is mat.sum(): " << mat.sum() << endl; in example18a()
403 cout << "Here is mat.prod(): " << mat.prod() << endl; in example18a()
404 cout << "Here is mat.mean(): " << mat.mean() << endl; in example18a()
407 cout << "Here is mat.trace(): " << mat.trace() << endl; in example18a()
422 cout << "v.squaredNorm() = " << v.squaredNorm() << endl; in example19()
423 cout << "v.norm() = " << v.norm() << endl; in example19()
424 cout << "v.lpNorm<1>() = " << v.template lpNorm<1>() << endl; in example19()
425 cout << "v.lpNorm<Infinity>() = " << v.template lpNorm<Infinity>() << endl; in example19()
426 cout << endl; in example19()
427 cout << "m.squaredNorm() = " << m.squaredNorm() << endl; in example19()
428 cout << "m.norm() = " << m.norm() << endl; in example19()
429 cout << "m.lpNorm<1>() = " << m.template lpNorm<1>() << endl; in example19()
430 cout << "m.lpNorm<Infinity>() = " << m.template lpNorm<Infinity>() << endl; in example19()
441 cout << "Here is the matrix A:\n" in example20()
443 cout << "Here is the vector b:\n" in example20()
446 cout << "The solution is:\n" in example20()
457 cout << "Here is the matrix A:\n" in example21()
459 cout << "Here is the right hand side b:\n" in example21()
462 cout << "The solution is:\n" in example21()
475 cout << "norm1 = " << axmb.norm() << endl; in example22()
476 cout << "norm2 = " << b.norm() << endl; in example22()
477 cout << "The relative error is:\n" in example22()
487 cout << "Here is the matrix A:\n" in example23()
492 std::cout << "Eigenvalue solver failed!" << endl; in example23()
496 cout << "The eigenvalues of A are:\n" in example23()
498 cout << "Here's a matrix whose columns are eigenvectors of A \n" in example23()
512 cout << "Here is the matrix A:\n" in example24()
514 cout << "The determinant of A is " << A.determinant() << endl; in example24()
515 cout << "The inverse of A is:\n" in example24()
530 std::cout << "Epsilon = " << Eigen::NumTraits<Num>::epsilon() << std::endl; in test_float_type()
531 std::cout << "Dummy Prec = " << Eigen::NumTraits<Num>::dummy_precision() << std::endl; in test_float_type()
532 std::cout << "Highest = " << Eigen::NumTraits<Num>::highest() << std::endl; in test_float_type()
533 std::cout << "Lowest = " << Eigen::NumTraits<Num>::lowest() << std::endl; in test_float_type()
534 std::cout << "Digits10 = " << Eigen::NumTraits<Num>::digits10() << std::endl; in test_float_type()
566 std::cout << "Epsilon = " << Eigen::NumTraits<Num>::epsilon() << std::endl; in test_float_type_2()
567 std::cout << "Dummy Prec = " << Eigen::NumTraits<Num>::dummy_precision() << std::endl; in test_float_type_2()
568 std::cout << "Highest = " << Eigen::NumTraits<Num>::highest() << std::endl; in test_float_type_2()
569 std::cout << "Lowest = " << Eigen::NumTraits<Num>::lowest() << std::endl; in test_float_type_2()
570 std::cout << "Digits10 = " << Eigen::NumTraits<Num>::digits10() << std::endl; in test_float_type_2()
585 std::cout << "Epsilon = " << Eigen::NumTraits<Num>::epsilon() << std::endl; in test_float_type_3()
586 std::cout << "Dummy Prec = " << Eigen::NumTraits<Num>::dummy_precision() << std::endl; in test_float_type_3()
587 std::cout << "Highest = " << Eigen::NumTraits<Num>::highest() << std::endl; in test_float_type_3()
588 std::cout << "Lowest = " << Eigen::NumTraits<Num>::lowest() << std::endl; in test_float_type_3()
589 std::cout << "Digits10 = " << Eigen::NumTraits<Num>::digits10() << std::endl; in test_float_type_3()
599 std::cout << "Epsilon = " << Eigen::NumTraits<Num>::epsilon() << std::endl; in test_complex_type()
600 std::cout << "Dummy Prec = " << Eigen::NumTraits<Num>::dummy_precision() << std::endl; in test_complex_type()
601 std::cout << "Highest = " << Eigen::NumTraits<Num>::highest() << std::endl; in test_complex_type()
602 std::cout << "Lowest = " << Eigen::NumTraits<Num>::lowest() << std::endl; in test_complex_type()
603 std::cout << "Digits10 = " << Eigen::NumTraits<Num>::digits10() << std::endl; in test_complex_type()