Lines Matching refs:x1
55 boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }}; in BOOST_AUTO_TEST_CASE_TEMPLATE() local
56 algebra.for_each2( x1 , x2 , default_operations::scale_sum1<>( 1.0 ) ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
57 BOOST_CHECK_CLOSE( x1[0] , 2.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
58 BOOST_CHECK_CLOSE( x1[1] , 2.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
66 boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }} , x3 = {{ 3.0 , 3.0 }}; in BOOST_AUTO_TEST_CASE_TEMPLATE() local
67 algebra.for_each3( x1 , x2 , x3 , default_operations::scale_sum2<>( 1.0 , 2.0 ) ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
68 BOOST_CHECK_CLOSE( x1[0] , 8.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
69 BOOST_CHECK_CLOSE( x1[1] , 8.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
76 …boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }} , x3 = {{ 3.0 , 3.0 }} , x4… in BOOST_AUTO_TEST_CASE_TEMPLATE() local
77 algebra.for_each4( x1 , x2 , x3 , x4 , default_operations::scale_sum3<>( 1.0 , 2.0 , 3.0 ) ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
78 BOOST_CHECK_CLOSE( x1[0] , 20.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
79 BOOST_CHECK_CLOSE( x1[1] , 20.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
85 …boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }} , x3 = {{ 3.0 , 3.0 }} , x4… in BOOST_AUTO_TEST_CASE_TEMPLATE() local
86 …algebra.for_each5( x1 , x2 , x3 , x4 , x5 , default_operations::scale_sum4<>( 1.0 , 2.0 , 3.0 , 4.… in BOOST_AUTO_TEST_CASE_TEMPLATE()
87 BOOST_CHECK_CLOSE( x1[0] , 40.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
88 BOOST_CHECK_CLOSE( x1[1] , 40.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
94 …boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }} , x3 = {{ 3.0 , 3.0 }} , x4… in BOOST_AUTO_TEST_CASE_TEMPLATE() local
95 …algebra.for_each6( x1 , x2 , x3 , x4 , x5 , x6 ,default_operations::scale_sum5<>( 1.0 , 2.0 , 3.0 … in BOOST_AUTO_TEST_CASE_TEMPLATE()
96 BOOST_CHECK_CLOSE( x1[0] , 70.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
97 BOOST_CHECK_CLOSE( x1[1] , 70.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
103 …boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }} , x3 = {{ 3.0 , 3.0 }} , x4… in BOOST_AUTO_TEST_CASE_TEMPLATE() local
104 …algebra.for_each7( x1 , x2 , x3 , x4 , x5 , x6 , x7 , default_operations::scale_sum6<>( 1.0 , 2.0 … in BOOST_AUTO_TEST_CASE_TEMPLATE()
105 BOOST_CHECK_CLOSE( x1[0] , 112.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
106 BOOST_CHECK_CLOSE( x1[1] , 112.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
112 …boost::array< double , 2 > x1 = {{ 1.0 , 1.0 }} , x2 = {{ 2.0 , 2.0 }} , x3 = {{ 3.0 , 3.0 }} , x4… in BOOST_AUTO_TEST_CASE_TEMPLATE() local
113 …algebra.for_each8( x1 , x2 , x3 , x4 , x5 , x6 , x7 , x8 , default_operations::scale_sum7<>( 1.0 ,… in BOOST_AUTO_TEST_CASE_TEMPLATE()
114 BOOST_CHECK_CLOSE( x1[0] , 168.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
115 BOOST_CHECK_CLOSE( x1[1] , 168.0 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
135 boost::array< length_type , 2 > x1 = {{ 1.0 * si::meter , 1.0 * si::meter }}; in BOOST_AUTO_TEST_CASE() local
137 algebra.for_each2( x1 , x2 , default_operations::scale_sum1< time_type >( 0.1 * si::second ) ); in BOOST_AUTO_TEST_CASE()
138 BOOST_CHECK_CLOSE( x1[0].value() , 0.2 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE()
139 BOOST_CHECK_CLOSE( x1[1].value() , 0.2 , 1.0e-10 ); in BOOST_AUTO_TEST_CASE()