Registered Member
|
I have some code working to invert a sparse matrix:
I am running some benchmarks now, but early results suggest this is much slower than BLAS dsytrf/dsytri for all but the sparsest of the sparse matrices. Am I doing something dumb that would slow things down? Is SparseLU not as fast as I had hoped? |
Moderator
|
Sparse solver are designed to handle large matrice (usually from 10000^2 to 10000000^2) having only a very few non-zeros per columns/rows (50 non-zero per column/row is already quite a lot). Moreover, you should never explicitly compute the inverse of a matrix: this is numerically unsafe, usually much more expensive, and even for very sparse matrices, the inverse might be completely dense thus breaking the advantage of a sparse storage.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell