Vector<T>.Copy To Or Clone Method
Copies the elements of this vector to another vector, if it exists;
otherwise clones the vector using the specified method.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A reference to the destination vector.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public Vector<T> CopyToOrClone(
Vector<T>? destination,
CloningMethod method
)
Parameters
- destination Vector<T>
- A vector whose elements are to be set.
- method CloningMethod
- A CloningMethod that specifies how the vector should be cloned if destination is null.
Return Value
Vector<T>A reference to the destination vector.
Exceptions
Argument | The length of destination is less than the length of this instance. |