Vector<T>.CopyTo(IVector) Method

Copies the elements of this vector to an untyped vector.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Vector<T> CopyTo(
	IVector destination
)

Parameters

destination  IVector
A vector whose elements are to be set.

Return Value

Vector<T>
A reference to the destination vector.

Remarks

The element type of the destination vector must be the same as the element type of the source vector.

Exceptions

ArgumentException The length of destination is less than the length of this instance.
InvalidCastExceptionThe element type of destination does not equal the element type of the vector.

See Also