/dports/devel/boost-docs/boost_1_72_0/libs/numeric/ublas/test/tensor/ |
H A D | test_operators_comparison.cpp | 152 BOOST_CHECK_NO_THROW (b = tensor_type(e0) == (tensor_type(e0) + tensor_type(e0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 153 BOOST_CHECK_NO_THROW (b = tensor_type(e1) == (tensor_type(e2) + tensor_type(e2)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 157 BOOST_CHECK_NO_THROW (b = (tensor_type(e0) + tensor_type(e0)) == tensor_type(e0) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 158 BOOST_CHECK_NO_THROW (b = (tensor_type(e2) + tensor_type(e2)) == tensor_type(e1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 162 …BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 163 …BOOST_CHECK_THROW (b = tensor_type(e1) <= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 164 …BOOST_CHECK_THROW (b = tensor_type(e1) < (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 165 …BOOST_CHECK_THROW (b = tensor_type(e1) > (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 223 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) < 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 224 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) > 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_operators_arithmetic.cpp | 89 r = tensor_type (e,1) + tensor_type (e,1); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 109 BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 110 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 111 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 170 …BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(0))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 171 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 172 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 173 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 174 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 tensor_type q = -r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression_evaluation.cpp | 58 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 77 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 78 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 102 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 105 auto t2 = tensor_type(extents[i+1]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 112 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t1, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 149 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 158 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 193 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression.cpp | 60 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 61 using tensor_expression_type = typename tensor_type::super_type; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 85 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 91 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 107 BOOST_CHECK( ( std::is_same_v< std::decay_t< decltype(uexpr_e) >, tensor_type > ) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 123 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 132 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 136 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 137 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_tensor_matrix_vector.cpp | 36 tensor_type a1 = matrix_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 71 tensor_type a1 = vector_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 76 tensor_type a2 = vector_type(1); in BOOST_AUTO_TEST_CASE_TEMPLATE() 178 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 213 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 283 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 320 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 324 tensor_type s = r + 3*r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 379 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/numeric/ublas/test/tensor/ |
H A D | test_operators_comparison.cpp | 152 BOOST_CHECK_NO_THROW (b = tensor_type(e0) == (tensor_type(e0) + tensor_type(e0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 153 BOOST_CHECK_NO_THROW (b = tensor_type(e1) == (tensor_type(e2) + tensor_type(e2)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 157 BOOST_CHECK_NO_THROW (b = (tensor_type(e0) + tensor_type(e0)) == tensor_type(e0) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 158 BOOST_CHECK_NO_THROW (b = (tensor_type(e2) + tensor_type(e2)) == tensor_type(e1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 162 …BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 163 …BOOST_CHECK_THROW (b = tensor_type(e1) <= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 164 …BOOST_CHECK_THROW (b = tensor_type(e1) < (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 165 …BOOST_CHECK_THROW (b = tensor_type(e1) > (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 223 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) < 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 224 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) > 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_operators_arithmetic.cpp | 89 r = tensor_type (e,1) + tensor_type (e,1); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 109 BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 110 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 111 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 170 …BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(0))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 171 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 172 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 173 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 174 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 tensor_type q = -r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression_evaluation.cpp | 58 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 77 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 78 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 102 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 105 auto t2 = tensor_type(extents[i+1]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 112 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t1, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 149 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 158 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 193 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression.cpp | 60 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 61 using tensor_expression_type = typename tensor_type::super_type; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 85 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 91 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 107 BOOST_CHECK( ( std::is_same_v< std::decay_t< decltype(uexpr_e) >, tensor_type > ) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 123 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 132 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 136 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 137 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_tensor_matrix_vector.cpp | 36 tensor_type a1 = matrix_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 71 tensor_type a1 = vector_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 76 tensor_type a2 = vector_type(1); in BOOST_AUTO_TEST_CASE_TEMPLATE() 178 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 213 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 283 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 320 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 324 tensor_type s = r + 3*r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 379 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
/dports/math/stanmath/math-4.2.0/lib/boost_1.75.0/libs/numeric/ublas/test/tensor/ |
H A D | test_operators_comparison.cpp | 152 BOOST_CHECK_NO_THROW (b = tensor_type(e0) == (tensor_type(e0) + tensor_type(e0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 153 BOOST_CHECK_NO_THROW (b = tensor_type(e1) == (tensor_type(e2) + tensor_type(e2)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 157 BOOST_CHECK_NO_THROW (b = (tensor_type(e0) + tensor_type(e0)) == tensor_type(e0) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 158 BOOST_CHECK_NO_THROW (b = (tensor_type(e2) + tensor_type(e2)) == tensor_type(e1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 162 …BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 163 …BOOST_CHECK_THROW (b = tensor_type(e1) <= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 164 …BOOST_CHECK_THROW (b = tensor_type(e1) < (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 165 …BOOST_CHECK_THROW (b = tensor_type(e1) > (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 223 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) < 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 224 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) > 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_operators_arithmetic.cpp | 89 r = tensor_type (e,1) + tensor_type (e,1); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 109 BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 110 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 111 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 170 …BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(0))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 171 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 172 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 173 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 174 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 tensor_type q = -r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression_evaluation.cpp | 58 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 77 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 78 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 102 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 105 auto t2 = tensor_type(extents[i+1]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 112 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t1, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 149 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 158 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 193 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression.cpp | 60 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 61 using tensor_expression_type = typename tensor_type::super_type; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 85 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 91 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 107 BOOST_CHECK( ( std::is_same_v< std::decay_t< decltype(uexpr_e) >, tensor_type > ) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 123 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 132 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 136 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 137 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_tensor_matrix_vector.cpp | 36 tensor_type a1 = matrix_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 71 tensor_type a1 = vector_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 76 tensor_type a2 = vector_type(1); in BOOST_AUTO_TEST_CASE_TEMPLATE() 178 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 213 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 283 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 320 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 324 tensor_type s = r + 3*r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 379 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
/dports/devel/boost-libs/boost_1_72_0/libs/numeric/ublas/test/tensor/ |
H A D | test_operators_comparison.cpp | 152 BOOST_CHECK_NO_THROW (b = tensor_type(e0) == (tensor_type(e0) + tensor_type(e0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 153 BOOST_CHECK_NO_THROW (b = tensor_type(e1) == (tensor_type(e2) + tensor_type(e2)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 157 BOOST_CHECK_NO_THROW (b = (tensor_type(e0) + tensor_type(e0)) == tensor_type(e0) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 158 BOOST_CHECK_NO_THROW (b = (tensor_type(e2) + tensor_type(e2)) == tensor_type(e1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 162 …BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 163 …BOOST_CHECK_THROW (b = tensor_type(e1) <= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 164 …BOOST_CHECK_THROW (b = tensor_type(e1) < (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 165 …BOOST_CHECK_THROW (b = tensor_type(e1) > (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 223 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) < 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 224 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) > 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_operators_arithmetic.cpp | 89 r = tensor_type (e,1) + tensor_type (e,1); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 109 BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 110 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 111 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 170 …BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(0))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 171 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 172 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 173 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 174 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 tensor_type q = -r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression_evaluation.cpp | 58 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 77 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 78 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 102 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 105 auto t2 = tensor_type(extents[i+1]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 112 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t1, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 149 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 158 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 193 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression.cpp | 60 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 61 using tensor_expression_type = typename tensor_type::super_type; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 85 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 91 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 107 BOOST_CHECK( ( std::is_same_v< std::decay_t< decltype(uexpr_e) >, tensor_type > ) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 123 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 132 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 136 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 137 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_tensor_matrix_vector.cpp | 36 tensor_type a1 = matrix_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 71 tensor_type a1 = vector_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 76 tensor_type a2 = vector_type(1); in BOOST_AUTO_TEST_CASE_TEMPLATE() 178 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 213 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 283 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 320 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 324 tensor_type s = r + 3*r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 379 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
/dports/devel/hyperscan/boost_1_75_0/libs/numeric/ublas/test/tensor/ |
H A D | test_operators_comparison.cpp | 152 BOOST_CHECK_NO_THROW (b = tensor_type(e0) == (tensor_type(e0) + tensor_type(e0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 153 BOOST_CHECK_NO_THROW (b = tensor_type(e1) == (tensor_type(e2) + tensor_type(e2)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 157 BOOST_CHECK_NO_THROW (b = (tensor_type(e0) + tensor_type(e0)) == tensor_type(e0) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 158 BOOST_CHECK_NO_THROW (b = (tensor_type(e2) + tensor_type(e2)) == tensor_type(e1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 162 …BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 163 …BOOST_CHECK_THROW (b = tensor_type(e1) <= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 164 …BOOST_CHECK_THROW (b = tensor_type(e1) < (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 165 …BOOST_CHECK_THROW (b = tensor_type(e1) > (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 223 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) < 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 224 BOOST_CHECK( !( tensor_type(e,2)+tensor_type(e,3) > 5) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_operators_arithmetic.cpp | 89 r = tensor_type (e,1) + tensor_type (e,1); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 109 BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 110 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 111 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 170 …BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(0))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 171 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 172 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 173 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 174 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(2)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 tensor_type q = -r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression_evaluation.cpp | 58 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 77 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 78 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 102 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 105 auto t2 = tensor_type(extents[i+1]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 112 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t1, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 149 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 158 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 193 auto t1 = tensor_type(extents[i]); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_expression.cpp | 60 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 61 using tensor_expression_type = typename tensor_type::super_type; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 67 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 85 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 91 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 107 BOOST_CHECK( ( std::is_same_v< std::decay_t< decltype(uexpr_e) >, tensor_type > ) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 123 using tensor_type = ublas::tensor<value_type, layout_type>; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() typedef 132 auto t = tensor_type(e); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 136 auto uexpr1 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus1 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 137 auto uexpr2 = ublas::detail::make_unary_tensor_expression<tensor_type>( t, uplus2 ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
H A D | test_tensor_matrix_vector.cpp | 36 tensor_type a1 = matrix_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 71 tensor_type a1 = vector_type(); in BOOST_AUTO_TEST_CASE_TEMPLATE() 76 tensor_type a2 = vector_type(1); in BOOST_AUTO_TEST_CASE_TEMPLATE() 178 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 213 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 245 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 283 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 320 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 324 tensor_type s = r + 3*r; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 379 auto t = tensor_type{}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|