IResizable Matrix<T>.Replace Rows Method
Inserts zero or more rows into a matrix in place of zero or more other rows.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
void ReplaceRows(
int index,
int count,
Matrix<T> data
)
Parameters
Remarks
index becomes the index of the first new row in the matrix. To insert rows after the last row, use a value of RowCount. If count is zero, the rows are inserted at the specified index. If data is null, the specified rows are deleted.
The number of rows is decreased by count and increased by the number of rows of data.
Exceptions
Argument | index is less than zero or greater
than the number of rows.
-or- count is less than zero or greater than the number of rows from index to the end. |
Dimension | The number of columns of data does not equal the number of columns of the matrix. |