I'm working on a Finite element system based on Unity. I used CSparse.NET and Math.NET. I found that the bottleneck is matrix processing and computing, such as Multiply(), Get_Item() and CompressedColumnStorage.OfIndexed(). It means that matrix editing and computing is much slower than solving the linear system.
I want to make it faster but I have no idea in C#. I am able to transfer all data into C++ and employ Eigen to process matrices. But I don't know if it can be faster?