IResizable Matrix<T>.Replace Columns Method
Inserts zero or more columns into a matrix in place of zero or more other columns.
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 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. |