TNumber.Submatrix Method

Extracts a contiguous submatrix from the matrix.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public TNumber Submatrix(
	int startRow,
	int endRow,
	int startCol,
	int endCol
)

Parameters

startRow  Int32
Index of the starting row of the submatrix.
endRow  Int32
Index of the ending row of the submatrix.
startCol  Int32
Index of the starting column of the submatrix.
endCol  Int32
Index of the ending column of the submatrix.

Return Value

TNumber
A submatrix with rows [startRow, ..., endRow] and columns [startCol, ..., endCol].

Exceptions

GeneralExceptionThrown unless the type of obj is TMatrix.

See Also