Solve a system of linear equations many times without allocating memory

Yes, this is a nice general interface (especially, since the caller does not need to know the type of the internally allocated memory).