DenseVector<T>.CopyTo Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Copies the elements of this instance to another Vector<T>.

Overload List

CopyTo(ArraySlice<T>) Copies the elements of this vector to an array.
CopyTo(IVector) Copies the elements of this vector to an untyped vector.
CopyTo(T[]) Copies the elements of this vector to an array.
CopyTo(Vector<T>) Copies the elements of this vector to another vector.
CopyTo(Vector<T>, Int32) Copies the elements of this dense vector to another vector starting at the specified position.
CopyTo(T[], Int32) Copies the elements of this vector to an array.

DenseVector<T>.CopyTo(ArraySlice<T>)

Copies the elements of this vector to an array.
C#
public override void CopyTo(
	ArraySlice<T> array
)

Parameters

array  ArraySlice<T>
An array that is to hold the elements of this Vector<T>.

Exceptions

ArgumentNullExceptionarray is null
ArgumentException The length of array is less than the length of this instance.

DenseVector<T>.CopyTo(Vector<T>, Int32)

Copies the elements of this dense vector to another vector starting at the specified position.
C#
public override Vector<T> CopyTo(
	Vector<T> vector,
	int index
)

Parameters

vector  Vector<T>
The Vector<T> whose components are to be set.
index  Int32
The index in vector where copying is to start.

Return Value

Vector<T>
A reference to the copied vector.

Exceptions

ArgumentNullExceptionvector is null
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentException The length of vector is less than index plus the length of this instance.

See Also