IResizable Matrix<T>.Replace Rows Method
Inserts zero or more rows into a matrix in place of zero or more other rows.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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. |