@@ -170,24 +170,12 @@ namespace internal {
170170// template specializations for int and long that call the correct cholmod method
171171
172172#define EIGEN_CHOLMOD_SPECIALIZE0 (ret, name ) \
173- template <typename StorageIndex_> \
174- inline ret cm_##name(cholmod_common& Common) { \
175- return cholmod_##name (&Common); \
176- } \
177- template <> \
178- inline ret cm_##name<SuiteSparse_long>(cholmod_common & Common) { \
179- return cholmod_l_##name (&Common); \
180- }
173+ template <typename _StorageIndex> inline ret cm_ ## name \
174+ (cholmod_common &Common) { return cholmod_ ## name (&Common); }
181175
182176#define EIGEN_CHOLMOD_SPECIALIZE1 (ret, name, t1, a1 ) \
183- template <typename StorageIndex_> \
184- inline ret cm_##name(t1& a1, cholmod_common& Common) { \
185- return cholmod_##name (&a1, &Common); \
186- } \
187- template <> \
188- inline ret cm_##name<SuiteSparse_long>(t1 & a1, cholmod_common & Common) { \
189- return cholmod_l_##name (&a1, &Common); \
190- }
177+ template <typename _StorageIndex> inline ret cm_ ## name \
178+ (t1& a1, cholmod_common &Common) { return cholmod_ ## name (&a1, &Common); }
191179
192180EIGEN_CHOLMOD_SPECIALIZE0 (int , start)
193181EIGEN_CHOLMOD_SPECIALIZE0 (int , finish)
@@ -203,31 +191,31 @@ template <typename StorageIndex_>
203191inline cholmod_dense* cm_solve (int sys, cholmod_factor& L, cholmod_dense& B, cholmod_common& Common) {
204192 return cholmod_solve (sys, &L, &B, &Common);
205193}
206- template <>
207- inline cholmod_dense* cm_solve<SuiteSparse_long>(int sys, cholmod_factor& L, cholmod_dense& B, cholmod_common& Common) {
208- return cholmod_l_solve (sys, &L, &B, &Common);
209- }
194+ // template <>
195+ // inline cholmod_dense* cm_solve<SuiteSparse_long>(int sys, cholmod_factor& L, cholmod_dense& B, cholmod_common& Common) {
196+ // return cholmod_l_solve(sys, &L, &B, &Common);
197+ // }
210198
211199template <typename StorageIndex_>
212200inline cholmod_sparse* cm_spsolve (int sys, cholmod_factor& L, cholmod_sparse& B, cholmod_common& Common) {
213201 return cholmod_spsolve (sys, &L, &B, &Common);
214202}
215- template <>
216- inline cholmod_sparse* cm_spsolve<SuiteSparse_long>(int sys, cholmod_factor& L, cholmod_sparse& B,
217- cholmod_common& Common) {
218- return cholmod_l_spsolve (sys, &L, &B, &Common);
219- }
203+ // template <>
204+ // inline cholmod_sparse* cm_spsolve<SuiteSparse_long>(int sys, cholmod_factor& L, cholmod_sparse& B,
205+ // cholmod_common& Common) {
206+ // return cholmod_l_spsolve(sys, &L, &B, &Common);
207+ // }
220208
221209template <typename StorageIndex_>
222210inline int cm_factorize_p (cholmod_sparse* A, double beta[2 ], StorageIndex_* fset, std::size_t fsize, cholmod_factor* L,
223211 cholmod_common& Common) {
224212 return cholmod_factorize_p (A, beta, fset, fsize, L, &Common);
225213}
226- template <>
227- inline int cm_factorize_p<SuiteSparse_long>(cholmod_sparse* A, double beta[2 ], SuiteSparse_long* fset,
228- std::size_t fsize, cholmod_factor* L, cholmod_common& Common) {
229- return cholmod_l_factorize_p (A, beta, fset, fsize, L, &Common);
230- }
214+ // template <>
215+ // inline int cm_factorize_p<SuiteSparse_long>(cholmod_sparse* A, double beta[2], SuiteSparse_long* fset,
216+ // std::size_t fsize, cholmod_factor* L, cholmod_common& Common) {
217+ // return cholmod_l_factorize_p(A, beta, fset, fsize, L, &Common);
218+ // }
231219
232220#undef EIGEN_CHOLMOD_SPECIALIZE0
233221#undef EIGEN_CHOLMOD_SPECIALIZE1
0 commit comments