-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add Julia API for SuiteSparseQR #3554
Comments
cc @dmbates |
The C API for SuiteSparseQR is opaque. Essentially you get void* objects that are filled in by the C++ code and need to be accessed only through that code. The definition of the primary struct is typedef struct SuiteSparseQR_C_factorization_struct
{
int xtype ; /* CHOLMOD_REAL or CHOLMOD_COMPLEX */
void *factors ; /* from SuiteSparseQR_factorize <double> or
SuiteSparseQR_factorize <Complex> */
} SuiteSparseQR_C_factorization ; so essentially the only thing you can do with it at the level of the Julia code is to store a pointer to this struct. There are C routines for the backslash but they don't allow you to save the decomposition. It is much more difficult to work with SuiteSparseQR than to work with CHOLMOD or UMFPACK. That doesn't mean it shouldn't be done but I have other projects that I need to work on right now. |
Reasonable. Marking as up for grabs in case anyone wants to take a crack at it. |
@andreasnoack implements this in #10180. |
Closed by #10180 |
But needs to be called via its C interface.
It would be nice if it would be possible to just type spqr(A) in Julia to call the SuiteSparseQR command. Or alternatively the command qr(A), where Julia would internally call spqr for when the argument A is a sparse matrix.
The text was updated successfully, but these errors were encountered: