Chapter 6. Matrix Classes (.NET, C#, CSharp, VB, Visual Basic, F#)
The NMath matrix classes represent mathematical matrices of a particular datatype. Each class contains a reference to the data block they are viewing (see Chapter 4), along with the parameter values necessary to define their view:
● the number of rows and columns
● the distance between successive row elements, called the row stride
● the distance between successive column elements, called the column stride
This is generally transparent to you. NMath provides indexers to perform the necessary indirection. For example, A[i,j] always returns the element in the ith row and jth column of matrix A's view of the data.
NOTE—Indexing starts at 0.