test_moment_index.cc File Reference
Functions | |
| template<int D> | |
| void | loop_over_exponents (int const order, int const d, std::array< int, D > &exponents, int &index) |
| template<int D> | |
| constexpr int | get_index () |
| template<int D> | |
| constexpr int | get_order () |
| template<> | |
| constexpr int | get_order< 1 > () |
| template<> | |
| constexpr int | get_order< 2 > () |
| template<> | |
| constexpr int | get_order< 3 > () |
| template<int D> | |
| constexpr std::array< int, D > | get_exponents () |
| template<> | |
| constexpr std::array< int, 1 > | get_exponents< 1 > () |
| template<> | |
| constexpr std::array< int, 2 > | get_exponents< 2 > () |
| template<> | |
| constexpr std::array< int, 3 > | get_exponents< 3 > () |
| template<int D> | |
| void | run_moment_index_test () |
| TEST (Moment_Index_test, Test1D) | |
| TEST (Moment_Index_test, Test2D) | |
| TEST (Moment_Index_test, Test3D) | |
Function Documentation
◆ get_exponents()
template<int D>
| constexpr std::array<int,D> get_exponents | ( | ) |
◆ get_exponents< 1 >()
template<>
| constexpr std::array<int,1> get_exponents< 1 > | ( | ) |
◆ get_exponents< 2 >()
template<>
| constexpr std::array<int,2> get_exponents< 2 > | ( | ) |
◆ get_exponents< 3 >()
template<>
| constexpr std::array<int,3> get_exponents< 3 > | ( | ) |
◆ get_index()
template<int D>
| constexpr int get_index | ( | ) |
◆ get_order()
template<int D>
| constexpr int get_order | ( | ) |
◆ get_order< 1 >()
template<>
| constexpr int get_order< 1 > | ( | ) |
◆ get_order< 2 >()
template<>
| constexpr int get_order< 2 > | ( | ) |
◆ get_order< 3 >()
template<>
| constexpr int get_order< 3 > | ( | ) |
◆ loop_over_exponents()
template<int D>
| void loop_over_exponents | ( | int const | order, |
| int const | d, | ||
| std::array< int, D > & | exponents, | ||
| int & | index | ||
| ) |
◆ run_moment_index_test()
template<int D>
| void run_moment_index_test | ( | ) |
◆ TEST() [1/3]
| TEST | ( | Moment_Index_test | , |
| Test1D | |||
| ) |
◆ TEST() [2/3]
| TEST | ( | Moment_Index_test | , |
| Test2D | |||
| ) |
◆ TEST() [3/3]
| TEST | ( | Moment_Index_test | , |
| Test3D | |||
| ) |