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

Add Julia API for SuiteSparseQR #3554

Closed
kbatseli opened this issue Jun 27, 2013 · 5 comments
Closed

Add Julia API for SuiteSparseQR #3554

kbatseli opened this issue Jun 27, 2013 · 5 comments
Assignees
Labels
sparse Sparse arrays
Milestone

Comments

@kbatseli
Copy link

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.

@pao
Copy link
Member

pao commented Jun 27, 2013

cc @dmbates

@dmbates
Copy link
Member

dmbates commented Jun 27, 2013

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.

@StefanKarpinski
Copy link
Member

Reasonable. Marking as up for grabs in case anyone wants to take a crack at it.

@ViralBShah
Copy link
Member

@andreasnoack implements this in #10180.

@ViralBShah ViralBShah removed help wanted Indicates that a maintainer wants help on an issue or pull request feature labels Feb 14, 2015
@ViralBShah
Copy link
Member

Closed by #10180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays
Projects
None yet
Development

No branches or pull requests

6 participants