Is it possible to create a matrix with linear form

Then create he mass matrix (using a trial function), and then do MatVec operations internally.
I for instance do this in Python within oasisx:

using MatMult — PETSc 3.22.1 documentation

1 Like