DenseVector<T>.Swap Method

Swaps the elements of two vectors.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static void Swap(
	DenseVector<T> left,
	DenseVector<T> right
)

Parameters

left  DenseVector<T>
The first DenseVector<T>.
right  DenseVector<T>
The second DenseVector<T>.

Remarks

This method uses the level 1 BLAS routine DSWAP.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionThe length of left is not equal to the length of right.

See Also