[petsc-dev] [petsc-maint] Proposal to improve MatSetValuesBlocked

Jed Brown jed at jedbrown.org
Mon Jan 4 08:47:19 CST 2021


Mark Adams <mfadams at lbl.gov> writes:

> Jed likes static inline functions as he said. I assume this is dispatched
> with a switch statement.
>
> I would probably just use the model used for MatMult in BAIJ.
> See src/mat/impls/baij/seq/baij.c. This just sets the matmult function to
> point to specialized functions.

Same, the static inline functions are just a way of creating these specialized functions without copy-pasta or macros.


More information about the petsc-dev mailing list