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