38#include <boost/test/tools/floating_point_comparison.hpp>
39#include <boost/test/unit_test.hpp>
50 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
58 NekDouble expected_result_buf[] = {300, 560, 600, 400};
60 BOOST_CHECK_EQUAL(expected_result, result);
70 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
73 std::shared_ptr<NekMatrix<NekDouble, StandardMatrixTag>> m(
80 NekDouble expected_result_buf[] = {600, 1120, 1200, 800};
82 BOOST_CHECK_EQUAL(expected_result, result);
92 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
100 NekDouble expected_result_buf[] = {10, 140, 420, 780};
102 BOOST_CHECK_EQUAL(expected_result, result);
112 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
115 std::shared_ptr<NekMatrix<NekDouble, StandardMatrixTag>> m(
122 NekDouble expected_result_buf[] = {30, 420, 1260, 2340};
124 BOOST_CHECK_EQUAL(expected_result, result);
134 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
137 NekDouble b_buf[] = {300, 560, 600, 400};
143 NekDouble expected_result_buf[] = {10, 20, 30, 40};
146 BOOST_CHECK_EQUAL(expected_result, x);
156 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
165 NekDouble expected_result_buf[] = {10, 20, 30, 40};
168 BOOST_CHECK_EQUAL(expected_result, x);
178 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
187 NekDouble expected_result_buf[] = {10, 20, 30, 40};
190 BOOST_CHECK_EQUAL(expected_result, x);
200 NekDouble a_buf[] = {1, 2, 5, 3, 6, 8, 4, 7, 9, 10};
203 NekDouble b_buf[] = {320, 520, 570, 400};
209 NekDouble expected_result_buf[] = {10, 20, 30, 40};
212 BOOST_CHECK_EQUAL(expected_result, x);
RawType_t< VectorType > SolveTranspose(const VectorType &b)
RawType_t< VectorType > Solve(const VectorType &b)
BOOST_AUTO_TEST_CASE(TestUpperTriangularMatrixVectorMultiplication)