Vector<T>.Cast Into<U> Method
Casts the elements of the vector to the specified type.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
public virtual Vector<U> CastInto<U>(
Vector<U>? result
)
Parameters
- result Vector<U>
Type Parameters
- U
- The type the elements should be cast to.
Return Value
Vector<U>Remarks
When result is supplied, its length must be greater than or equal to the length of this vector. Converted values are written sequentially to the destination prefix only. Destination elements and missing state beyond the length of this vector are left unchanged.
A shorter destination throws a DimensionMismatchException. The operation is not transactional: if a later conversion fails, earlier destination elements may already have been modified.