Qin Lu <[email protected]> writes: > Hello, > > I need to set values of a sparse matrix. Is setting coefficients row > by row using MatSetValues more efficient than setting setting > coefficient one by one using MatSetValue?
Somewhat more efficient, yes. > Is MatSetValues implemented by looping over each entry of the input > array calling MatSetValue? Calling for a group of entries (once per row or once per "element" in finite element methods) amortizes some of the search cost.
pgpK7Q3H74Qsv.pgp
Description: PGP signature
