Click or drag to resize

MatrixTInsertColumn Method

Creates a new matrix and inserts the given column at the given index.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public Matrix<T> InsertColumn(
	int columnIndex,
	Vector<T> column
)

Parameters

columnIndex  Int32
The index of where to insert the column.
column  VectorT
The column to insert.

Return Value

MatrixT
A new matrix with the inserted column.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf column is .
ArgumentOutOfRangeExceptionIf columnIndex is < zero or > the number of columns.
ArgumentExceptionIf the size of column != the number of rows.
See Also