Skip to content

Commit 1ac8fcf

Browse files
committed
Remove ctad polyfill for clang < 17
1 parent 87dca80 commit 1ac8fcf

8 files changed

+0
-58
lines changed

ctldl/factor_data/sparsity_to_factorize_tridiagonal_arrowhead_linked.hpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,4 @@ struct SparsityToFactorizeTridiagonalArrowheadLinked {
5151
outer;
5252
};
5353

54-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
55-
template <std::size_t dim_start, std::size_t dim_tridiag, std::size_t dim_link,
56-
std::size_t dim_outer, std::size_t nnz_start_diag,
57-
std::size_t nnz_start_tridiag, std::size_t nnz_start_outer,
58-
std::size_t nnz_tridiag_diag, std::size_t nnz_tridiag_subdiag,
59-
std::size_t nnz_link_tridiag, std::size_t nnz_link_diag,
60-
std::size_t nnz_link_outer, std::size_t nnz_outer_subdiagonal,
61-
std::size_t nnz_outer_diagonal>
62-
SparsityToFactorizeTridiagonalArrowheadLinked(
63-
SparsityToFactorizeStart<dim_start, dim_tridiag, dim_outer, nnz_start_diag,
64-
nnz_start_tridiag, nnz_start_outer>,
65-
SparsityToFactorizeTridiagonal<dim_tridiag, nnz_tridiag_diag,
66-
nnz_tridiag_subdiag>,
67-
SparsityToFactorizeLink<dim_tridiag, dim_link, dim_outer, nnz_link_tridiag,
68-
nnz_link_diag, nnz_link_outer>,
69-
SparsityToFactorizeOuter<dim_tridiag, dim_outer, nnz_outer_subdiagonal,
70-
nnz_outer_diagonal>)
71-
-> SparsityToFactorizeTridiagonalArrowheadLinked<
72-
dim_start, dim_tridiag, dim_link, dim_outer, nnz_start_diag,
73-
nnz_start_tridiag, nnz_start_outer, nnz_tridiag_diag,
74-
nnz_tridiag_subdiag, nnz_link_tridiag, nnz_link_diag, nnz_link_outer,
75-
nnz_outer_subdiagonal, nnz_outer_diagonal>;
76-
7754
} // namespace ctldl

ctldl/matrix/matrix_link.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ struct MatrixLink {
1313
Next next;
1414
};
1515

16-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
17-
template <class Prev, class Diag, class Outer>
18-
MatrixLink(Prev, Diag, Outer) -> MatrixLink<Prev, Diag, Outer>;
19-
2016
template <std::size_t dim_prev, std::size_t dim_link, std::size_t dim_next>
2117
constexpr auto makeEmptyMatrixLink() {
2218
return MatrixLink{EmptyMatrixInput<dim_link, dim_prev>{},

ctldl/matrix/matrix_outer.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ struct MatrixOuter {
1313
Diag diag;
1414
};
1515

16-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
17-
template <class Subdiag, class Diag>
18-
MatrixOuter(Subdiag, Diag) -> MatrixOuter<Subdiag, Diag>;
19-
2016
template <std::size_t num_rows, std::size_t num_cols>
2117
constexpr auto makeEmptyMatrixRepeatingOuter(
2218
const std::size_t num_repetitions) {

ctldl/matrix/matrix_start.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ struct MatrixStart {
1313
Outer outer;
1414
};
1515

16-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
17-
template <class Diag, class Next, class Outer>
18-
MatrixStart(Diag, Next, Outer) -> MatrixStart<Diag, Next, Outer>;
19-
2016
template <std::size_t dim_start, std::size_t dim_next, std::size_t dim_outer>
2117
constexpr auto makeEmptyMatrixStart() {
2218
return MatrixStart{EmptyMatrixInput<dim_start, dim_start>{},

ctldl/matrix/matrix_tridiagonal.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@ struct MatrixTridiagonal {
88
Subdiag subdiag;
99
};
1010

11-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
12-
template <class Diag, class Subdiag>
13-
MatrixTridiagonal(Diag, Subdiag) -> MatrixTridiagonal<Diag, Subdiag>;
14-
1511
} // namespace ctldl

ctldl/matrix/matrix_tridiagonal_arrowhead_linked.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ struct MatrixTridiagonalArrowheadLinked {
1010
Outer outer;
1111
};
1212

13-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
14-
template <class Start, class Tridiag, class Link, class Outer>
15-
MatrixTridiagonalArrowheadLinked(Start, Tridiag, Link, Outer)
16-
-> MatrixTridiagonalArrowheadLinked<Start, Tridiag, Link, Outer>;
17-
1813
} // namespace ctldl

ctldl/symbolic/lower_triangle_blocked.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ struct LowerTriangleBlocked3x3 {
1818
Block33 block33;
1919
};
2020

21-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
22-
template <class T11, class T21, class T22, class T31, class T32, class T33>
23-
LowerTriangleBlocked3x3(T11, T21, T22, T31, T32, T33)
24-
-> LowerTriangleBlocked3x3<T11, T21, T22, T31, T32, T33>;
25-
2621
template <class T11, class T21, class T22>
2722
struct LowerTriangleBlocked {
2823
using Block11 = T11;
@@ -33,8 +28,4 @@ struct LowerTriangleBlocked {
3328
Block22 block22;
3429
};
3530

36-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
37-
template <class T11, class T21, class T22>
38-
LowerTriangleBlocked(T11, T21, T22) -> LowerTriangleBlocked<T11, T21, T22>;
39-
4031
} // namespace ctldl

ctldl/vector/vector_tridiagonal_arrowhead_linked.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ struct VectorTridiagonalArrowheadLinked {
1010
Outer outer;
1111
};
1212

13-
// needed for clang < 17 which does not do the CTAD for aggregates otherwise
14-
template <class Start, class Tridiag, class Link, class Outer>
15-
VectorTridiagonalArrowheadLinked(Start, Tridiag, Link, Outer)
16-
-> VectorTridiagonalArrowheadLinked<Start, Tridiag, Link, Outer>;
17-
1813
} // namespace ctldl

0 commit comments

Comments
 (0)