@@ -167,12 +167,10 @@ namespace internal {
167
167
// template specializations for int and long that call the correct cholmod method
168
168
169
169
#define EIGEN_CHOLMOD_SPECIALIZE0 (ret, name ) \
170
- template <typename _StorageIndex> inline ret cm_ ## name (cholmod_common &Common) { return cholmod_ ## name (&Common); } \
171
- template <> inline ret cm_ ## name<SuiteSparse_long> (cholmod_common &Common) { return cholmod_l_ ## name (&Common); }
170
+ template <typename _StorageIndex> inline ret cm_ ## name (cholmod_common &Common) { return cholmod_ ## name (&Common); }
172
171
173
172
#define EIGEN_CHOLMOD_SPECIALIZE1 (ret, name, t1, a1 ) \
174
- template <typename _StorageIndex> inline ret cm_ ## name (t1& a1, cholmod_common &Common) { return cholmod_ ## name (&a1, &Common); } \
175
- template <> inline ret cm_ ## name<SuiteSparse_long> (t1& a1, cholmod_common &Common) { return cholmod_l_ ## name (&a1, &Common); }
173
+ template <typename _StorageIndex> inline ret cm_ ## name (t1& a1, cholmod_common &Common) { return cholmod_ ## name (&a1, &Common); }
176
174
177
175
EIGEN_CHOLMOD_SPECIALIZE0 (int , start)
178
176
EIGEN_CHOLMOD_SPECIALIZE0 (int , finish)
@@ -184,15 +182,15 @@ EIGEN_CHOLMOD_SPECIALIZE1(int, free_sparse, cholmod_sparse*, A)
184
182
EIGEN_CHOLMOD_SPECIALIZE1 (cholmod_factor*, analyze, cholmod_sparse, A)
185
183
186
184
template <typename _StorageIndex> inline cholmod_dense* cm_solve (int sys, cholmod_factor& L, cholmod_dense& B, cholmod_common &Common) { return cholmod_solve (sys, &L, &B, &Common); }
187
- template <> inline cholmod_dense* cm_solve<SuiteSparse_long> (int sys, cholmod_factor& L, cholmod_dense& B, cholmod_common &Common) { return cholmod_l_solve (sys, &L, &B, &Common); }
185
+ // template<> inline cholmod_dense* cm_solve<SuiteSparse_long> (int sys, cholmod_factor& L, cholmod_dense& B, cholmod_common &Common) { return cholmod_l_solve (sys, &L, &B, &Common); }
188
186
189
187
template <typename _StorageIndex> inline cholmod_sparse* cm_spsolve (int sys, cholmod_factor& L, cholmod_sparse& B, cholmod_common &Common) { return cholmod_spsolve (sys, &L, &B, &Common); }
190
- template <> inline cholmod_sparse* cm_spsolve<SuiteSparse_long> (int sys, cholmod_factor& L, cholmod_sparse& B, cholmod_common &Common) { return cholmod_l_spsolve (sys, &L, &B, &Common); }
188
+ // template<> inline cholmod_sparse* cm_spsolve<SuiteSparse_long> (int sys, cholmod_factor& L, cholmod_sparse& B, cholmod_common &Common) { return cholmod_l_spsolve (sys, &L, &B, &Common); }
191
189
192
190
template <typename _StorageIndex>
193
191
inline int cm_factorize_p (cholmod_sparse* A, double beta[2 ], _StorageIndex* fset, std::size_t fsize, cholmod_factor* L, cholmod_common &Common) { return cholmod_factorize_p (A, beta, fset, fsize, L, &Common); }
194
- template <>
195
- inline int cm_factorize_p<SuiteSparse_long> (cholmod_sparse* A, double beta[2 ], SuiteSparse_long* fset, std::size_t fsize, cholmod_factor* L, cholmod_common &Common) { return cholmod_l_factorize_p (A, beta, fset, fsize, L, &Common); }
192
+ // template<>
193
+ // inline int cm_factorize_p<SuiteSparse_long> (cholmod_sparse* A, double beta[2], SuiteSparse_long* fset, std::size_t fsize, cholmod_factor* L, cholmod_common &Common) { return cholmod_l_factorize_p (A, beta, fset, fsize, L, &Common); }
196
194
197
195
#undef EIGEN_CHOLMOD_SPECIALIZE0
198
196
#undef EIGEN_CHOLMOD_SPECIALIZE1
0 commit comments