CategoricalVector<T>.Cast<U> Method

Casts the elements of the vector to the specified type.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public override Vector<U> Cast<U>()

Type Parameters

U
The type the elements should be cast to.

Return Value

Vector<U>

Remarks

If the type U is the same as the element type T of the vector, the same instance is returned. Otherwise, a copy is returned.

See Also