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?
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 ?
Have you tried
it works, thank you very much!