DiagonalMatrixSubMatrix Method |
Creates a matrix that contains the values from the requested sub-matrix.
Namespace: Altaxo.Calc.LinearAlgebra.ComplexAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public override Matrix<Complex> SubMatrix(
int rowIndex,
int rowCount,
int columnIndex,
int columnCount
)
Parameters
- rowIndex Int32
- The row to start copying from.
- rowCount Int32
- The number of rows to copy. Must be positive.
- columnIndex Int32
- The column to start copying from.
- columnCount Int32
- The number of columns to copy. Must be positive.
Return Value
MatrixComplexThe requested sub-matrix.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | If: - rowIndex is
negative, or greater than or equal to the number of rows.
- columnIndex is negative, or greater than or equal to the number
of columns.
- (columnIndex + columnLength) >= Columns
- (rowIndex + rowLength) >= Rows
|
ArgumentOutOfRangeException | If rowCount or columnCount
is not positive. |
See Also