Home › Forum › SOFA › Using SOFA › How to use the built-in classes or methods of matrix operations in Sofa? Tagged: 64_bits, matrix operations, SOFA_1608, Windows_7 This topic has 1 reply, 2 voices, and was last updated 5 years, 3 months ago by Hugo. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts 11 May 2017 at 13:12 #9097 WongBlocked 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) 11 May 2017 at 13:51 #9098 HugoKeymaster Hi Wong, 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 #include <sofa/defaulttype/Mat.h> ... defaulttype::Mat<3,3,Real> T, Tinv; ... T.transpose(); Tinv.invert(T); Cheers, Hugo Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.