Matrix<T>.GetColumns(IEnumerable<Int32>) Method

Returns a new matrix that contains only the columns in the specified sequence.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Matrix<T> GetColumns(
	IEnumerable<int> indexes
)

Parameters

indexes  IEnumerable<Int32>
A sequence of indexes of the columns to return.

Return Value

Matrix<T>
A new matrix containing only the columns at the positions in indexes.

Exceptions

ArgumentNullExceptionindexes is null.
ArgumentException

At least one of the values in indexes is not a valid column index.

See Also