Home
last modified time | relevance | path

Searched refs:complex_type (Results 1 – 6 of 6) sorted by relevance

/third_party/boost/libs/multiprecision/test/
Dtest_complex.cpp28 template <typename complex_type>
32 typedef typename complex_type::value_type float_type; in test()
40 const complex_type z1(float_type(12U) / 10U, float_type(34U) / 10U); in test()
41 const complex_type z2(float_type(56U) / 10U, float_type(78U) / 10U); in test()
42 const complex_type i(float_type(0U), float_type(1U)); in test()
46 …const complex_type result_01 = z1 / z2; // N[((12/10) + ((34 I)/10)) / ((56/1… in test()
47 const complex_type result_02 = complex_type(z1) /= z2; // Same as above. in test()
48 …const complex_type result_03 = z1 / (i * z2); // N[((12/10) + ((34 I)/10)) / ((-78/… in test()
49 const complex_type result_04 = complex_type(z1) /= (i * z2); // Same as above. in test()
50 …const complex_type result_05 = z1.real() / z2; // N[((12/10) / ((56/10) + ((78 I)/10… in test()
[all …]
/third_party/boost/libs/multiprecision/example/
Deigen_example.cpp15 typedef boost::multiprecision::cpp_complex_quad complex_type; in main() typedef
20 Matrix<complex_type, 2, 2> A, b; in main()
21 A << complex_type(2, 3), complex_type(-1, -2), complex_type(-1, -4), complex_type(3, 6); in main()
28 Matrix<complex_type, 2, 2> x = A.fullPivHouseholderQr().solve(b); in main()
33 complex_type::value_type relative_error = (A*x - b).norm() / b.norm(); in main()
/third_party/boost/libs/units/example/
Dtutorial.cpp78 typedef std::complex<double> complex_type; // double real and imaginary parts. in main() typedef
81 quantity<electric_potential, complex_type> v = complex_type(12.5, 0.0) * volts; in main()
82 quantity<current, complex_type> i = complex_type(3.0, 4.0) * amperes; in main()
83 quantity<resistance, complex_type> z = complex_type(1.5, -2.0) * ohms; in main()
Dkitchen_sink.cpp415 typedef std::complex<double> complex_type; in main() typedef
418 quantity<electric_potential,complex_type> v = complex_type(12.5,0.0)*volts; in main()
419 quantity<current,complex_type> i = complex_type(3.0,4.0)*amperes; in main()
420 quantity<resistance,complex_type> z = complex_type(1.5,-2.0)*ohms; in main()
/third_party/boost/libs/numeric/ublas/test/tensor/
Dtest_functions.cpp277 using complex_type = std::complex<value_type>; in BOOST_FIXTURE_TEST_CASE() typedef
280 using tensor_complex_type = ublas::tensor<complex_type,layout_type>; in BOOST_FIXTURE_TEST_CASE()
321 auto one = complex_type(1,1); in BOOST_FIXTURE_TEST_CASE()
326 tensor_complex_type b = (a+a) / complex_type( 2,2 ); in BOOST_FIXTURE_TEST_CASE()
329 tensor_type r1 = ublas::real( (a+a) / complex_type( 2,2 ) ); in BOOST_FIXTURE_TEST_CASE()
333 tensor_type r2 = ublas::imag( (a+a) / complex_type( 2,2 ) ); in BOOST_FIXTURE_TEST_CASE()
337 tensor_complex_type r3 = ublas::conj( (a+a) / complex_type( 2,2 ) ); in BOOST_FIXTURE_TEST_CASE()
/third_party/boost/libs/thread/doc/
Dfutures.qbk228 complex_type the_data;