Skip to content

Transposition "on the fly" ? #1537

Answered by upsj
blegouix asked this question in Q&A
Discussion options

You must be logged in to vote

Definitely store both the matrix and its transpose explicitly, transposition is not cheap (something in the order of sorting the nonzero entries by row and column index, since the sparsity pattern of the matrix and its transpose need not be identical, and values need to be shuffled), all of our matrices are processed in row major order only, since that is more efficient for parallel processing than column major.

You can save some work by (assuming you use a preconditioned solver) computing the preconditioner exactly and transposing the result only, passing the generated preconditioner to the solver instead of a preconditioner factory. Especially for preconditioners like ILU or ISAI, the g…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blegouix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants