SubMatrix() without copying, using the new Span/Memory?
Title says it all really, it would be great to have a SubMatrix function that does not create a copy, for performance reasons.
Bump
Yes, that would be interesting.
Although we can optimize for the case where there are no modifications, we do need to find a way to ensure modifying one does not modify the other, in both directions.
That would be awesome. I am using MathNet distributions and I copied the related source code into my project just to try Samples(double[] values) as Samples(Span<double> values). I used stackalloc for intermediate variables during operations.
Both garbage collection, memory usage and temporal performance are improved quite a lot. (Of course, it depends how heavily you use array allocating methods).
The entire API should support Span<T>
bump, any news about this?