Vector<T>.CopyToOrClone 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.2
C#
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

ArgumentException

The length of destination is less than the length of this instance.

See Also