optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 34 forks source link

LA: add a fast path for updating matrix values #364

Closed andrea-iob closed 1 year ago

andrea-iob commented 1 year ago

The fast path will use the PETSc function MatSetValuesRow to update all the values of a row at once (without the need to get the row pattern).

Fast update can be performed if: