Casts the elements of the vector to the specified type.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public override Vector<U> Cast<U>()
Public Overrides Function Cast(Of U) As Vector(Of U)
public:
generic<typename U>
virtual Vector<U>^ Cast() override
abstract Cast : unit -> Vector<'U>
override Cast : unit -> Vector<'U>
Type Parameters
- U
- The type the elements should be cast to.
Return Value
Type:
VectorU
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.
Reference