Matrix<T>.Get Submatrix(Int 32, Int 32, Int 32, Int 32) Method
Returns a sub-matrix of
this instance.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A Matrix<T> that contains the specified rows and columns.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Matrix<T> GetSubmatrix(
int startRow,
int endRow,
int startColumn,
int endColumn
)
Parameters
- startRow Int32
- The first row of the sub-matrix.
- endRow Int32
- The last row of the sub-matrix.
- startColumn Int32
- The first column of the sub-matrix.
- endColumn Int32
- The last column of the sub-matrix.
Return Value
Matrix<T>A Matrix<T> that contains the specified rows and columns.
Remarks
The matrix returned by this method shares its storage with the matrix from which it is derived.
Exceptions
Argument | 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. |