What is the best way to solve `A\B`

where `A`

and `B`

are sparse, and where the result is also known to be sparse? Right now it seems I have to do `sparse(A \ Matrix(B))`

.

1 Like

Beware that the inverse is rarely sparse. But in cases where it is, see SparseSparse for inverting structured sparse matrices

3 Likes

I am aware. For this particular problem type, it is. The problem starts relatively sparse for small sizes, but sparsity increases quickly as the problem size grows. Thanks for the reference.