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[] rows,
	int startColumn,
	int endColumn
)

Parameters

rows
Type: SystemInt32
The indices of the rows.
startColumn
Type: SystemInt32
The index of the start column.
endColumn
Type: SystemInt32
The index of the end column (included in the submatrix).

Return Value

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