• Home
  • Raw
  • Download

Lines Matching refs:Num

19 template <class Num>
23 Matrix<Num, 2, 2> r1, r2; in example1()
26 Matrix<Num, 3, 1> r3; in example1()
29 Matrix<Num, 2, 2> a; in example1()
31 Matrix<Num, Dynamic, Dynamic> b(2, 2); in example1()
43 Matrix<Num, 3, 1> v(1, 2, 3); in example1()
44 Matrix<Num, 3, 1> w(1, 0, 0); in example1()
50 template <class Num>
53 Matrix<Num, 2, 2> a; in example2()
55 Matrix<Num, 3, 1> v(1, 2, 3); in example2()
64 Num n(4); in example2()
69 typedef typename related_number<Num>::type related_type; in example2()
85 template <class Num>
89 Matrix<Num, Dynamic, Dynamic> a = Matrix<Num, Dynamic, Dynamic>::Random(2, 2); in example3()
100 template <class Num>
103 Matrix<Num, 2, 2> mat; in example4()
106 Matrix<Num, 2, 1> u(-1, 1), v(2, 0); in example4()
123 template <class Num>
127 Matrix<Num, 3, 1> v(1, 2, 3); in example5()
128 Matrix<Num, 3, 1> w(0, 1, 2); in example5()
130 Num dp = v.adjoint() * w; // automatic conversion of the inner product to a scalar in example5()
136 template <class Num>
140 Matrix<Num, 2, 2> mat; in example6()
151 template <class Num>
156 Array<Num, Dynamic, Dynamic> m(2, 2); in example7()
176 template <class Num>
180 Array<Num, Dynamic, Dynamic> a(3, 3); in example8()
181 Array<Num, Dynamic, Dynamic> b(3, 3); in example8()
198 template <class Num>
202 Array<Num, Dynamic, Dynamic> a(2, 2); in example9()
203 Array<Num, Dynamic, Dynamic> b(2, 2); in example9()
212 template <class Num>
216 Array<Num, Dynamic, 1> a = Array<Num, Dynamic, 1>::Random(5); in example10()
228 template <class Num>
232 Matrix<Num, Dynamic, Dynamic> m(2, 2); in example11()
233 Matrix<Num, Dynamic, Dynamic> n(2, 2); in example11()
234 Matrix<Num, Dynamic, Dynamic> result(2, 2); in example11()
257 template <class Num>
261 Matrix<Num, Dynamic, Dynamic> m(2, 2); in example12()
262 Matrix<Num, Dynamic, Dynamic> n(2, 2); in example12()
263 Matrix<Num, Dynamic, Dynamic> result(2, 2); in example12()
279 template <class Num>
283 Matrix<Num, Dynamic, Dynamic> m(4, 4); in example13()
299 template <class Num>
303 Array<Num, 2, 2> m; in example14()
306 Array<Num, 4, 4> a = Array<Num, 4, 4>::Constant(0.6); in example14()
320 template <class Num>
324 Eigen::Matrix<Num, Dynamic, Dynamic> m(3, 3); in example15()
336 template <class Num>
340 Matrix<Num, 4, 4> m; in example16()
356 template <class Num>
360 Array<Num, Dynamic, 1> v(6); in example17()
373 template <class Num>
377 Matrix<Num, 2, 2> mat; in example18()
389 BOOST_CHECK_EQUAL(mat.mean(), Num(5) / 2); in example18()
395 template <class Num>
399 Matrix<Num, 2, 2> mat; in example18a()
410 template <class Num>
414 Matrix<Num, Dynamic, 1> v(2); in example19()
415 Matrix<Num, Dynamic, Dynamic> m(2, 2), n(2, 2); in example19()
433 template <class Num>
437 Matrix<Num, 3, 3> A; in example20()
438 Matrix<Num, 3, 1> b; in example20()
445 Matrix<Num, 3, 1> x = A.colPivHouseholderQr().solve(b); in example20()
450 template <class Num>
454 Matrix<Num, 2, 2> A, b; in example21()
461 Matrix<Num, 2, 2> x = A.ldlt().solve(b); in example21()
466 template <class Num>
470 Matrix<Num, Dynamic, Dynamic> A = Matrix<Num, Dynamic, Dynamic>::Random(100, 100); in example22()
471 Matrix<Num, Dynamic, Dynamic> b = Matrix<Num, Dynamic, Dynamic>::Random(100, 50); in example22()
472 Matrix<Num, Dynamic, Dynamic> x = A.fullPivLu().solve(b); in example22()
473 Matrix<Num, Dynamic, Dynamic> axmb = A * x - b; in example22()
481 template <class Num>
485 Matrix<Num, 2, 2> A; in example23()
489 SelfAdjointEigenSolver<Matrix<Num, 2, 2> > eigensolver(A); in example23()
504 template <class Num>
508 Matrix<Num, 3, 3> A; in example24()
519 template <class Num>
522 example1<Num>(); in test_integer_type()
524 example18<Num>(); in test_integer_type()
527 template <class Num>
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()
536 example1<Num>(); in test_float_type()
537 example2<Num>(); in test_float_type()
538 example4<Num>(); in test_float_type()
539 example5<Num>(); in test_float_type()
540 example6<Num>(); in test_float_type()
541 example7<Num>(); in test_float_type()
542 example8<Num>(); in test_float_type()
543 example9<Num>(); in test_float_type()
544 example10<Num>(); in test_float_type()
545 example11<Num>(); in test_float_type()
546 example12<Num>(); in test_float_type()
547 example13<Num>(); in test_float_type()
548 example14<Num>(); in test_float_type()
549 example15<Num>(); in test_float_type()
550 example16<Num>(); in test_float_type()
551 example17<Num>(); in test_float_type()
563 template <class Num>
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()
572 example18<Num>(); in test_float_type_2()
573 example19<Num>(); in test_float_type_2()
574 example20<Num>(); in test_float_type_2()
575 example21<Num>(); in test_float_type_2()
582 template <class Num>
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()
591 example22<Num>(); in test_float_type_3()
592 example23<Num>(); in test_float_type_3()
593 example24<Num>(); in test_float_type_3()
596 template <class Num>
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()
605 example1<Num>(); in test_complex_type()
606 example2<Num>(); in test_complex_type()
607 example3<Num>(); in test_complex_type()
608 example4<Num>(); in test_complex_type()
609 example5<Num>(); in test_complex_type()
610 example7<Num>(); in test_complex_type()
611 example8<Num>(); in test_complex_type()
612 example9<Num>(); in test_complex_type()
613 example11<Num>(); in test_complex_type()
614 example12<Num>(); in test_complex_type()
615 example13<Num>(); in test_complex_type()
616 example14<Num>(); in test_complex_type()
617 example15<Num>(); in test_complex_type()
618 example16<Num>(); in test_complex_type()
619 example17<Num>(); in test_complex_type()
620 example18a<Num>(); in test_complex_type()
621 example19<Num>(); in test_complex_type()
622 example20<Num>(); in test_complex_type()
623 example21<Num>(); in test_complex_type()
624 example22<Num>(); in test_complex_type()
626 example24<Num>(); in test_complex_type()