Gets a Matrix that is a submatrix of this Matrix.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function GetSubmatrix ( _
	startRow As Integer, _
	endRow As Integer, _
	startColumn As Integer, _
	endColumn As Integer _
) As Matrix
C#
public Matrix GetSubmatrix (
	int startRow,
	int endRow,
	int startColumn,
	int endColumn
)
C++
public:
Matrix^ GetSubmatrix (
	int startRow, 
	int endRow, 
	int startColumn, 
	int endColumn
)

Parameters

startRow (System.Int32)
The first row of the sub-matrix.
endRow (System.Int32)
The last row of the sub-matrix.
startColumn (System.Int32)
The first column of the sub-matrix.
endColumn (System.Int32)
The last column of the sub-matrix.

Return Value

A Matrix 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

ExceptionCondition
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.