Casts the elements of the vector to the specified type.
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public virtual Vector<U> Cast<U>()
Public Overridable Function Cast(Of U) As Vector(Of U)
public:
generic<typename U>
virtual Vector<U>^ Cast()
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.
Numerical Libraries
Supported in: 6.0
Reference