IResizable Matrix<T>.Insert Row Method
Inserts a row into a matrix that the specified index.
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 InsertRow(
int index,
Vector<T> data
)
Parameters
Remarks
index becomes the index of the new row in the matrix. To insert a row after the last row, use a value of RowCount, or use the AppendRow(Vector<T>) method.
The number of rows is increased by one.
Exceptions
Argument | data is null. |
Argument | index is less than zero or greater than the number of rows. |
Dimension | The length of data does not equal the number of columns of the matrix. |