Matrix<T>.GetColumns<C>(IEnumerable<C>) 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<C>(
	IEnumerable<C> keys
)

Parameters

keys  IEnumerable<C>
A sequence of keys of the columns to return.

Type Parameters

C

Return Value

Matrix<T>
A new matrix containing only the columns whose key is in keys.

Exceptions

ArgumentNullExceptionkeys is null.
InvalidOperationException

The matrix does not have a column index.

InvalidCastException

The element type of the column index is not C.

See Also