The snippet shows how to support slicing in a type. Slicing allows you to get for example a 2D sub-matrix of a matrix and is implemented by adding GetSlice member.
49 people like thisPosted: 14 years ago by Tomas Petricek
Slicing arrays without copying using .Net's ArraySegment struct
2 people like thisPosted: 9 years ago by Phillip Trelford
This snippet adds the 'GetSlice' operation to Math.Net vector and matrix types. This makes it possible to get sub-vectors and sub-matrices using the convenient syntax (For vectors 'vect.[start .. end]` or 'vect.[start ..]' and for matrices 'mat.[r1 .. r2, c1 .. c2]' and similar).
9 people like thisPosted: 12 years ago by Tomas Petricek