1 // =============================================================================
2 // === spqr_type ===============================================================
3 // =============================================================================
4
5 // Return the CHOLMOD type, based on the SuiteSparseQR template Entry type.
6 // Note that CHOLMOD_REAL is 1 an CHOLMOD_COMPLEX is 2.
7
8 #include "spqr.hpp"
9
spqr_type(void)10 template <> int spqr_type <double> (void)
11 {
12 return (CHOLMOD_REAL) ;
13 }
14
spqr_type(void)15 template <> int spqr_type <Complex> (void)
16 {
17 return (CHOLMOD_COMPLEX) ;
18 }
19