Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPQR: Cleanup for templates. #355

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 12 additions & 24 deletions SPQR/Include/SuiteSparseQR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,43 +659,31 @@ template <typename Entry, typename Int = int64_t> int SuiteSparseQR_numeric
SuiteSparseQR_factorization <Entry, Int> *QR,
cholmod_common *cc // workspace and parameters
) ;

// forward declare template instantiations

extern template int SuiteSparseQR_numeric <double, int32_t>
(
// inputs:
double tol, // treat columns with 2-norm <= tol as zero
cholmod_sparse *A, // sparse matrix to factorize
// input/output
SuiteSparseQR_factorization <double, int32_t> *QR,
cholmod_common *cc // workspace and parameters
double tol, cholmod_sparse *A,
SuiteSparseQR_factorization <double, int32_t> *QR, cholmod_common *cc
) ;

extern template int SuiteSparseQR_numeric <Complex, int32_t>
(
// inputs:
double tol, // treat columns with 2-norm <= tol as zero
cholmod_sparse *A, // sparse matrix to factorize
// input/output
SuiteSparseQR_factorization <Complex, int32_t> *QR,
cholmod_common *cc // workspace and parameters
double tol, cholmod_sparse *A,
SuiteSparseQR_factorization <Complex, int32_t> *QR, cholmod_common *cc
) ;

extern template int SuiteSparseQR_numeric <double, int64_t>
(
// inputs:
double tol, // treat columns with 2-norm <= tol as zero
cholmod_sparse *A, // sparse matrix to factorize
// input/output
SuiteSparseQR_factorization <double, int64_t> *QR,
cholmod_common *cc // workspace and parameters
double tol, cholmod_sparse *A,
SuiteSparseQR_factorization <double, int64_t> *QR, cholmod_common *cc
) ;

extern template int SuiteSparseQR_numeric <Complex, int64_t>
(
// inputs:
double tol, // treat columns with 2-norm <= tol as zero
cholmod_sparse *A, // sparse matrix to factorize
// input/output
SuiteSparseQR_factorization <Complex, int64_t> *QR,
cholmod_common *cc // workspace and parameters
double tol, cholmod_sparse *A,
SuiteSparseQR_factorization <Complex, int64_t> *QR, cholmod_common *cc
) ;
#endif

Expand Down
Loading