Gets a GeneralMatrix that is a submatrix of
this matrix.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Function GetSubmatrix ( _ startRow As Integer, _ endRow As Integer, _ rowStride As Integer, _ startColumn As Integer, _ endColumn As Integer, _ columnStride As Integer, _ transposeOperation As TransposeOperation _ ) As Matrix |
| C# |
|---|
public override Matrix GetSubmatrix ( int startRow, int endRow, int rowStride, int startColumn, int endColumn, int columnStride, TransposeOperation transposeOperation ) |
| C++ |
|---|
public: virtual Matrix^ GetSubmatrix ( int startRow, int endRow, int rowStride, int startColumn, int endColumn, int columnStride, TransposeOperation transposeOperation ) override |
Parameters
- startRow (System.Int32)
- Index of the first row of the sub-matrix.
- endRow (System.Int32)
- Index of the last row of the sub-matrix.
- rowStride (System.Int32)
- The increment for the row index in the original matrix corresponding to an increment of one in the row index of the new matrix.
- startColumn (System.Int32)
- Index of the first column of the sub-matrix.
- endColumn (System.Int32)
- Index of the last column of the sub-matrix.
- columnStride (System.Int32)
- The increment for the column index in the original matrix corresponding to an increment of one in the column index of the new matrix.
- transposeOperation (Extreme.Mathematics.LinearAlgebra.TransposeOperation)
- A TransposeOperation value that specifies whether or not the new matrix should be transposed.
Return Value
A Matrix that contains the specified rows and columns.
Remarks
The return value is always of type DiagonalMatrix.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | startRow is less than zero or greater than or equal to the number of rows. -or- endRow or endRow is less than zero or greater than or equal to the number of rows. -or- startColumn is less than zero or greater than or equal to the number of columns. -or- endColumn or endRow is less than zero or greater than or equal to the number of columns. |