Click or drag to resize
DigitalRuneMatrixDGetSubmatrix Method (Int32, Int32, Int32)
Gets a submatrix of this matrix.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public MatrixD GetSubmatrix(
	int startRow,
	int endRow,
	int[] columns
)

Parameters

startRow
Type: SystemInt32
The index of the start row.
endRow
Type: SystemInt32
The index of the end row (included in the submatrix).
columns
Type: SystemInt32
The indices of the columns.

Return Value

Type: MatrixD
The extracted submatrix.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstartRow is greater than endRow.
ArgumentOutOfRangeExceptionstartRow or endRow is out of range.
IndexOutOfRangeException An index in columns is invalid.
Remarks
The index array has to be interpreted like this: For example, columns[0] = 5 means that column 5 of this matrix will be copied into column 0 of the submatrix.
See Also