FreeFem PETSc matrix operations

Is there a list of all the PETSc matrix operations implemented in FreeFem? such as, addition, minus, times by a constant, copy a matrix, and so on?

It’s in plugin/mpi/PETSc-code.hpp.

I have now found the right one for me. Thank you very much Prof. Jolivet!

Dear Prof. Jolivet,

How can I copy a PETSc Mat?
I tried A=B, it complains “PETSc has generated inconsistent data”.
I have found from PETSc-code.hpp that MatConvert() has been implemeted but it seems MatCopy has not.
Do you have a method to do this ?

Best,
Yongxing.

Have you tried Mat A(B)?

it works, thank you very much!