In my project, I have to write some code of matrix operations to implement some functions. I think there are some classes or methods already in Sofa. So how to use them to do the matrix operations? (e.g. compute the inverse of a matrix)
This is available in the default type defaulttype::Mat.
You can find examples in a lot of SOFA classes.
Ex: TriangularAnisotropicFEMForceField line 160 and 236