/third_party/boost/boost/math/ |
D | quaternion.hpp | 79 class quaternion class 89 BOOST_CONSTEXPR explicit quaternion( T const & requested_a = T(), in quaternion() function in boost::math::quaternion 104 BOOST_CONSTEXPR explicit quaternion( ::std::complex<T> const & z0, in quaternion() function in boost::math::quaternion 116 BOOST_CONSTEXPR quaternion(quaternion const & a_recopier) in quaternion() function in boost::math::quaternion 122 BOOST_CONSTEXPR quaternion(quaternion && a_recopier) in quaternion() function in boost::math::quaternion 132 BOOST_CONSTEXPR explicit quaternion(quaternion<X> const & a_recopier) in quaternion() function in boost::math::quaternion 160 BOOST_CONSTEXPR quaternion<T> unreal() const in unreal() 162 return(quaternion<T>(static_cast<T>(0), b, c, d)); in unreal() 195 BOOST_CXX14_CONSTEXPR void swap(quaternion& o) in swap() 211 … BOOST_CXX14_CONSTEXPR quaternion<T> & operator = (quaternion<X> const & a_affecter) in operator =() [all …]
|
/third_party/boost/libs/math/doc/quaternion/ |
D | math-quaternion.qbk | 33 In practical terms, a quaternion is simply a quadruple of real numbers __quadrulple, 44 other [@../quaternion/TQE.pdf document] 45 (with [@../quaternion/TQE_EA.pdf errata and addenda]). 56 [@../../../../boost/math/quaternion.hpp quaternion.hpp]. 64 template<typename T> class ``[link math_toolkit.quat quaternion]``; 65 template<> class ``[link math_toolkit.spec quaternion<float>]``; 66 template<> class ``[link math_quaternion_double quaternion<double>]``; 67 template<> class ``[link math_quaternion_long_double quaternion<long double>]``; 70 …mplate<typename T> quaternion<T> ``[link math_toolkit.quat_non_mem.binary_addition_operators opera… 71 …template<typename T> quaternion<T> ``[link math_toolkit.quat_non_mem.binary_addition_operators ope… [all …]
|
D | output_more.txt | 1 Results of quaternion test. 27 Please input a quaternion... 28 You have entered the quaternion (1,2,3,4) . 29 For this quaternion: 48 The value of the quaternion represented in spherical form by rho = 2.82843 , theta = 0.785398 , phi… 49 The value of the quaternion represented in semipolar form by rho = 2.82843 , alpha = 0.785398 , phi… 50 The value of the quaternion represented in multipolar form by rho1 = 1 , theta1 = 0 , rho2 = 2 , th… 51 The value of the quaternion represented in cylindrospherical form by t = 5 , radius = 1.41421 , lon… 52 The value of the quaternion represented in cylindrical form by r = 1.41421 , angle = 0.785398 , h1 …
|
/third_party/boost/libs/qvm/test/ |
D | slerp_test.cpp | 18 test_qvm::quaternion<Q1> a=rotx_quat(1.0f); in test() 19 test_qvm::quaternion<Q1> b=rotx_quat(.5f); in test() 20 test_qvm::quaternion<Q1> aa=slerp(a,b,0); in test() 21 test_qvm::quaternion<Q1> bb=slerp(a,b,1); in test() 27 test_qvm::quaternion<Q1> const qx1=rotx_quat(a1); in test() 28 test_qvm::quaternion<Q1> const qy1=roty_quat(a1); in test() 29 test_qvm::quaternion<Q1> const qz1=rotz_quat(a1); in test() 32 test_qvm::quaternion<Q1> const qx2=rotx_quat(a2); in test() 33 test_qvm::quaternion<Q1> const qy2=roty_quat(a2); in test() 34 test_qvm::quaternion<Q1> const qz2=rotz_quat(a2); in test() [all …]
|
D | test_qvm_quaternion.hpp | 19 quaternion struct 25 quaternion( T start=T(0), T step=T(0) ) in quaternion() function 34 dump_ab( quaternion<Tag1,T1> const & a, quaternion<Tag2,T2> const & b ) in dump_ab() 48 quat_traits< test_qvm::quaternion<Tag,T> >: argument 49 quat_traits_defaults<test_qvm::quaternion<Tag,T>,T> 51 typedef quat_traits_defaults<test_qvm::quaternion<Tag,T>,T> base; 66 deduce_quat2<test_qvm::quaternion<Tag,T>,test_qvm::quaternion<Tag,T> > 68 typedef test_qvm::quaternion<Tag,T> type;
|
D | rot_quat_test.cpp | 22 test_qvm::quaternion<Q1> q1=rot_quat(axis,r); in test_x() 26 test_qvm::quaternion<Q2> q2(42,1); in test_x() 31 test_qvm::quaternion<Q1> q3(42,1); in test_x() 32 test_qvm::quaternion<Q1> q4(42,1); in test_x() 46 test_qvm::quaternion<Q1> q1=rot_quat(axis,r); in test_y() 50 test_qvm::quaternion<Q2> q2(42,1); in test_y() 55 test_qvm::quaternion<Q1> q3(42,1); in test_y() 56 test_qvm::quaternion<Q1> q4(42,1); in test_y() 70 test_qvm::quaternion<Q1> q1=rot_quat(axis,r); in test_z() 74 test_qvm::quaternion<Q2> q2(42,1); in test_z() [all …]
|
D | minus_qq_test.cpp | 21 test_qvm::quaternion<Q1> const x(42,2); in test() 23 test_qvm::quaternion<Q1> const y(42,1); in test() 25 test_qvm::quaternion<Q1> r=x-y; in test() 30 test_qvm::quaternion<Q1> const y(42,1); in test() 31 test_qvm::quaternion<Q2> r=qref(x)-y; in test() 36 test_qvm::quaternion<Q1> const y(42,1); in test() 37 test_qvm::quaternion<Q2> r=x-qref(y); in test()
|
D | plus_qq_test.cpp | 21 test_qvm::quaternion<Q1> const x(42,2); in test() 23 test_qvm::quaternion<Q1> const y(42,1); in test() 25 test_qvm::quaternion<Q1> r=x+y; in test() 30 test_qvm::quaternion<Q1> const y(42,1); in test() 31 test_qvm::quaternion<Q2> r=qref(x)+y; in test() 36 test_qvm::quaternion<Q1> const y(42,1); in test() 37 test_qvm::quaternion<Q2> r=x+qref(y); in test()
|
D | mul_qq_test.cpp | 25 test_qvm::quaternion<Q1> const qx=rotx_quat(a); in test() 26 test_qvm::quaternion<Q1> const qy=roty_quat(a); in test() 27 test_qvm::quaternion<Q1> const qz=rotz_quat(a); in test() 28 test_qvm::quaternion<Q1> const q1=qx*qy*qref(qz); in test() 33 test_qvm::quaternion<Q1> const q2=convert_to< test_qvm::quaternion<Q1> >(m); in test()
|
D | mul_eq_qq_test.cpp | 24 test_qvm::quaternion<Q1> const qx=rotx_quat(a); in test() 25 test_qvm::quaternion<Q1> const qy=roty_quat(a); in test() 26 test_qvm::quaternion<Q1> const qz=rotz_quat(a); in test() 27 test_qvm::quaternion<Q1> q1=identity_quat<float>(); in test() 35 test_qvm::quaternion<Q1> const q2=convert_to< test_qvm::quaternion<Q1> >(m); in test()
|
D | convert_to_test.cpp | 39 test_qvm::quaternion<Q1> x(42,1); in test_quaternion() 42 test_qvm::quaternion<Q2> const y=convert_to< test_qvm::quaternion<Q2> >(x); in test_quaternion() 47 test_qvm::quaternion<Q1> const qy=convert_to< test_qvm::quaternion<Q1> >(my); in test_quaternion() 59 … test_qvm::quaternion<Q1> const qy=convert_to< test_qvm::quaternion<Q1> >(del_row_col<3,3>(my)); in test_quaternion()
|
D | normalize_q_test.cpp | 22 test_qvm::quaternion<Q1> const x(42,1); in test() 24 test_qvm::quaternion<Q1> y=normalized(x); in test() 30 test_qvm::quaternion<Q1> const x(42,1); in test() 31 test_qvm::quaternion<Q1> y=normalized(qref(x)); in test() 37 test_qvm::quaternion<Q1> x(42,1); in test()
|
D | inverse_q_test.cpp | 22 test_qvm::quaternion<Q1> x=rotx_quat(4.2f); in test() 24 test_qvm::quaternion<Q1> y=rotx_quat(-4.2f); in test() 26 test_qvm::quaternion<Q1> z=inverse(x); in test() 30 test_qvm::quaternion<Q1> z=inverse(qref(x)); in test()
|
D | rotz_quat_test.cpp | 21 test_qvm::quaternion<Q1> q1=rotz_quat(r); in test() 25 test_qvm::quaternion<Q2> q2(42,1); in test() 30 test_qvm::quaternion<Q1> q3(42,1); in test() 31 test_qvm::quaternion<Q1> r1=q3*q1; in test()
|
D | rotx_quat_test.cpp | 21 test_qvm::quaternion<Q1> q1=rotx_quat(r); in test() 25 test_qvm::quaternion<Q2> q2(42,1); in test() 30 test_qvm::quaternion<Q1> q3(42,1); in test() 31 test_qvm::quaternion<Q1> r1=q3*q1; in test()
|
D | roty_quat_test.cpp | 21 test_qvm::quaternion<Q1> q1=roty_quat(r); in test() 25 test_qvm::quaternion<Q2> q2(42,1); in test() 30 test_qvm::quaternion<Q1> q3(42,1); in test() 31 test_qvm::quaternion<Q1> r1=q3*q1; in test()
|
D | eq_qq_test.cpp | 16 test_qvm::quaternion<Q1> const x(42,1); in test() 20 test_qvm::quaternion<Q1> y(x); in test() 26 test_qvm::quaternion<Q2> y; assign(y,x); in test()
|
D | plus_eq_qq_test.cpp | 16 test_qvm::quaternion<Q1> x(42,2); in test() 18 test_qvm::quaternion<Q1> const y(42,1); in test() 24 test_qvm::quaternion<Q2> const y(42,1); in test()
|
D | minus_eq_qq_test.cpp | 16 test_qvm::quaternion<Q1> x(42,2); in test() 18 test_qvm::quaternion<Q1> const y(42,1); in test() 24 test_qvm::quaternion<Q2> const y(42,1); in test()
|
D | div_qs_test.cpp | 21 test_qvm::quaternion<Q1> const x(42,1); in test() 25 test_qvm::quaternion<Q1> y=x/2; in test() 29 test_qvm::quaternion<Q1> y=qref(x)/2; in test()
|
D | minus_q_test.cpp | 21 test_qvm::quaternion<Q1> const x(42,1); in test() 25 test_qvm::quaternion<Q1> y=-x; in test() 29 test_qvm::quaternion<Q1> y=-qref(x); in test()
|
/third_party/boost/libs/units/example/ |
D | quaternion.cpp | 58 BOOST_TYPEOF_REGISTER_TEMPLATE(boost::math::quaternion, 1) 69 struct power_typeof_helper<boost::math::quaternion<Y>,static_rational<N,D> > 74 typedef boost::math::quaternion< 78 static type value(const boost::math::quaternion<Y>& x) in value() 88 struct root_typeof_helper<boost::math::quaternion<Y>,static_rational<N,D> > 93 typedef boost::math::quaternion< 97 static type value(const boost::math::quaternion<Y>& x) in value() 108 boost::math::quaternion<quantity<Unit,Y> >, 122 typedef boost::math::quaternion<quantity_type> type; 124 static type value(const boost::math::quaternion<quantity<Unit,Y> >& x) in value() [all …]
|
/third_party/boost/libs/math/test/ |
D | quaternion_test.cpp | 145 template class ::boost::math::quaternion<int>; 148 template class boost::math::quaternion<int>; member in boost::math 188 void check_exact_quaternion_result(const boost::math::quaternion<T>& q, R1 a, R2 b, R3 c, R4 d) in check_exact_quaternion_result() 199 void check_approx_quaternion_result(const boost::math::quaternion<T>& q, R1 a, R2 b, R3 c, R4 d, in… in check_approx_quaternion_result() 245 ::boost::math::quaternion<T> q2(c0), q1; in check_complex_ops_imp() 254 q2 = ::boost::math::quaternion<T>(5, 6, 7, 8); in check_complex_ops_imp() 269 q2 = ::boost::math::quaternion<T>(4, 5, 7, 8); in check_complex_ops_imp() 329 ::boost::math::quaternion<T> q0, q2; in BOOST_AUTO_TEST_CASE_TEMPLATE() 333 ::boost::math::quaternion<T> qa[2]; in BOOST_AUTO_TEST_CASE_TEMPLATE() 340 ::boost::math::quaternion<T> q1(1, 2, 3, 4); in BOOST_AUTO_TEST_CASE_TEMPLATE() [all …]
|
/third_party/boost/libs/math/example/ |
D | HSO3SO4.cpp | 71 … ::boost::math::quaternion<float> q = ::boost::math::spherical(rho, theta, phi1, phi2); in test_SO3_spherical() 84 ::boost::math::quaternion<float> p = R3_rotation_to_quaternion(rot, &q); in test_SO3_spherical() 127 … ::boost::math::quaternion<float> q = ::boost::math::semipolar(rho, alpha, theta1, theta2); in test_SO3_semipolar() 140 ::boost::math::quaternion<float> p = R3_rotation_to_quaternion(rot, &q); in test_SO3_semipolar() 184 … ::boost::math::quaternion<float> q = ::boost::math::multipolar(rho1, theta1, rho2, theta2); in test_SO3_multipolar() 197 ::boost::math::quaternion<float> p = R3_rotation_to_quaternion(rot, &q); in test_SO3_multipolar() 241 …::boost::math::quaternion<float> q = ::boost::math::cylindrospherical(t, radius, longitude, lat… in test_SO3_cylindrospherical() 254 ::boost::math::quaternion<float> p = R3_rotation_to_quaternion(rot, &q); in test_SO3_cylindrospherical() 298 … ::boost::math::quaternion<float> q = ::boost::math::cylindrical(r, angle, h1, h2); in test_SO3_cylindrical() 311 ::boost::math::quaternion<float> p = R3_rotation_to_quaternion(rot, &q); in test_SO3_cylindrical() [all …]
|
/third_party/boost/libs/math/doc/octonion/ |
D | math-octonion.qbk | 36 [@../quaternion/TQE.pdf document] (with [@../quaternion/TQE_EA.pdf errata and addenda]). 68 …it.oct_non_mem.binary_addition_operators operator +]`` (::boost::math::quaternion<T> const & lhs, … 69 …dition_operators operator +]`` (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs); 76 …oct_non_mem.binary_subtraction_operators operator -]`` (::boost::math::quaternion<T> const & lhs, … 77 …action_operators operator -]`` (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs); 84 …_non_mem.binary_multiplication_operators operator *]`` (::boost::math::quaternion<T> const & lhs, … 85 …cation_operators operator *]`` (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs); 92 …it.oct_non_mem.binary_division_operators operator /]`` (::boost::math::quaternion<T> const & lhs, … 93 …vision_operators operator /]`` (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs); 103 …t.oct_non_mem.binary_equality_operators operator ==]`` (::boost::math::quaternion<T> const & lhs, … [all …]
|