I'm working on an experimental implementation of Goldenthal et.al's inextensible cloth algorithm in C#.
First I used Math.NET Iridium to assemble and solve the matrices, but quickly replaced this with dnAnalytics since the latter allows me to reuse matrices, almost eliminating further memory allocation, which is important for real-time performance (small cloths) or iterative solving in general.
The problem is that the solvers (of primary interest are LU and Bi-CG) in dnAnalytics still allocate matrices and vectors behind the scenes, instead of reusing past allocations.
=> Are there any sparse linear algebra libraries out there that reuse memory out-of-the-box, or will I have to rewrite the code myself?