@@ -20,29 +20,30 @@ BOOST_AUTO_TEST_CASE(SplinePrepermuted) {
2020
2121 constexpr auto sparsity = SparsityToFactorizeTridiagonalArrowheadLinked{
2222 SparsityToFactorizeStart{
23- makeEmptySparsity <dim_start, dim_start>(),
24- makeSparsity <dim_tridiag, dim_start>(
23+ makeEmptySparsityStatic <dim_start, dim_start>(),
24+ makeSparsityStatic <dim_tridiag, dim_start>(
2525 {{3 , 0 }, {3 , 1 }, {4 , 1 }, {4 , 3 }, {5 , 2 }, {5 , 3 }}),
26- makeEmptySparsity <dim_outer, dim_start>()},
26+ makeEmptySparsityStatic <dim_outer, dim_start>()},
2727 SparsityToFactorizeTridiagonal{
28- makeSparsity <dim_tridiag, dim_tridiag>(
28+ makeSparsityStatic <dim_tridiag, dim_tridiag>(
2929 {{3 , 0 }, {3 , 2 }, {4 , 2 }, {5 , 1 }, {6 , 4 }, {6 , 5 }}),
30- makeSparsity <dim_tridiag, dim_tridiag>(
30+ makeSparsityStatic <dim_tridiag, dim_tridiag>(
3131 {{3 , 0 }, {3 , 2 }, {4 , 2 }, {4 , 6 }, {5 , 1 }, {5 , 6 }})},
32- SparsityToFactorizeLink{makeEmptySparsity<dim_link, dim_tridiag>(),
33- makeEmptySparsity<dim_link, dim_link>(),
34- makeEmptySparsity<dim_outer, dim_link>()},
35- SparsityToFactorizeOuter{makeEmptySparsity<dim_outer, dim_tridiag>(),
36- makeEmptySparsity<dim_outer, dim_outer>()}};
32+ SparsityToFactorizeLink{makeEmptySparsityStatic<dim_link, dim_tridiag>(),
33+ makeEmptySparsityStatic<dim_link, dim_link>(),
34+ makeEmptySparsityStatic<dim_outer, dim_link>()},
35+ SparsityToFactorizeOuter{
36+ makeEmptySparsityStatic<dim_outer, dim_tridiag>(),
37+ makeEmptySparsityStatic<dim_outer, dim_outer>()}};
3738
3839 using Factorization =
3940 FactorizationRepeatingBlockTridiagonalArrowheadLinked<sparsity, double >;
4041
41- constexpr auto diag_correct = makeSparsity <dim_tridiag, dim_tridiag>(
42+ constexpr auto diag_correct = makeSparsityStatic <dim_tridiag, dim_tridiag>(
4243 {{3 , 0 }, {3 , 2 }, {4 , 2 }, {4 , 3 }, {5 , 1 }, {5 , 3 }, {5 , 4 }, {6 , 4 }, {6 , 5 }});
4344 CTLDL_TEST_STATIC (isSparsityEqual (Factorization::FactorTridiagDiag::sparsity,
4445 diag_correct));
45- constexpr auto subdiag_correct = makeSparsity <dim_tridiag, dim_tridiag>(
46+ constexpr auto subdiag_correct = makeSparsityStatic <dim_tridiag, dim_tridiag>(
4647 {{3 , 0 }, {3 , 2 }, {3 , 3 }, {3 , 4 }, {3 , 5 }, {3 , 6 },
4748 {4 , 2 }, {4 , 3 }, {4 , 4 }, {4 , 5 }, {4 , 6 },
4849 {5 , 1 }, {5 , 5 }, {5 , 6 }});
@@ -63,33 +64,34 @@ BOOST_AUTO_TEST_CASE(Spline) {
6364
6465 constexpr auto sparsity = SparsityToFactorizeTridiagonalArrowheadLinked{
6566 SparsityToFactorizeStart{
66- makeEmptySparsity <dim_start, dim_start>(),
67- makeSparsity <dim_tridiag, dim_start>(
67+ makeEmptySparsityStatic <dim_start, dim_start>(),
68+ makeSparsityStatic <dim_tridiag, dim_start>(
6869 {{0 , 0 }, {0 , 1 }, {1 , 1 }, {1 , 3 }, {2 , 2 }, {2 , 3 }}),
69- makeEmptySparsity <dim_outer, dim_start>(),
70+ makeEmptySparsityStatic <dim_outer, dim_start>(),
7071 permutation_start,
7172 },
7273 SparsityToFactorizeTridiagonal{
73- makeSparsity <dim_tridiag, dim_tridiag>(
74+ makeSparsityStatic <dim_tridiag, dim_tridiag>(
7475 {{3 , 0 }, {4 , 0 }, {4 , 1 }, {5 , 2 }, {6 , 1 }, {6 , 2 }}),
75- makeSparsity <dim_tridiag, dim_tridiag>(
76+ makeSparsityStatic <dim_tridiag, dim_tridiag>(
7677 {{0 , 3 }, {0 , 4 }, {1 , 4 }, {1 , 6 }, {2 , 5 }, {2 , 6 }}),
7778 permutation_tridiag,
7879 },
79- SparsityToFactorizeLink{makeEmptySparsity<dim_link, dim_tridiag>(),
80- makeEmptySparsity<dim_link, dim_link>(),
81- makeEmptySparsity<dim_outer, dim_link>()},
82- SparsityToFactorizeOuter{makeEmptySparsity<dim_outer, dim_tridiag>(),
83- makeEmptySparsity<dim_outer, dim_outer>()}};
80+ SparsityToFactorizeLink{makeEmptySparsityStatic<dim_link, dim_tridiag>(),
81+ makeEmptySparsityStatic<dim_link, dim_link>(),
82+ makeEmptySparsityStatic<dim_outer, dim_link>()},
83+ SparsityToFactorizeOuter{
84+ makeEmptySparsityStatic<dim_outer, dim_tridiag>(),
85+ makeEmptySparsityStatic<dim_outer, dim_outer>()}};
8486
8587 using Factorization =
8688 FactorizationRepeatingBlockTridiagonalArrowheadLinked<sparsity, double >;
8789
88- constexpr auto diag_correct = makeSparsity <dim_tridiag, dim_tridiag>(
90+ constexpr auto diag_correct = makeSparsityStatic <dim_tridiag, dim_tridiag>(
8991 {{3 , 0 }, {3 , 2 }, {4 , 2 }, {4 , 3 }, {5 , 1 }, {5 , 3 }, {5 , 4 }, {6 , 4 }, {6 , 5 }});
9092 CTLDL_TEST_STATIC (isSparsityEqual (Factorization::FactorTridiagDiag::sparsity,
9193 diag_correct));
92- constexpr auto subdiag_correct = makeSparsity <dim_tridiag, dim_tridiag>(
94+ constexpr auto subdiag_correct = makeSparsityStatic <dim_tridiag, dim_tridiag>(
9395 {{3 , 0 }, {3 , 2 }, {3 , 3 }, {3 , 4 }, {3 , 5 }, {3 , 6 },
9496 {4 , 2 }, {4 , 3 }, {4 , 4 }, {4 , 5 }, {4 , 6 },
9597 {5 , 1 }, {5 , 5 }, {5 , 6 }});
0 commit comments