MatrixTSetSubMatrix(Int32, Int32, Int32, Int32, Int32, Int32, MatrixT) Method |
Copies the values of a given matrix into a region in this matrix.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public void SetSubMatrix(
int rowIndex,
int sorceRowIndex,
int rowCount,
int columnIndex,
int sourceColumnIndex,
int columnCount,
Matrix<T> subMatrix
)
Parameters
- rowIndex Int32
- The row to start copying to.
- sorceRowIndex Int32
- The row of the sub-matrix to start copying from.
- rowCount Int32
- The number of rows to copy. Must be positive.
- columnIndex Int32
- The column to start copying to.
- sourceColumnIndex Int32
- The column of the sub-matrix to start copying from.
- columnCount Int32
- The number of columns to copy. Must be positive.
- subMatrix MatrixT
- The sub-matrix to copy from.
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