Vector.Swap<T> Method

Swaps the elements of two vectors.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public static void Swap<T>(
	Vector<T> left,
	Vector<T> right
)

Parameters

left  Vector<T>
The first vector.
right  Vector<T>
The second vector.

Type Parameters

T

Exceptions

DimensionMismatchException

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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

The length of left does not equal the length of right.

See Also