ILinearAlgebraOperations<T>.Swap Method

Exchanges the elements of two vectors.

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
void Swap(
	int n,
	Span<T> x,
	int incx,
	Span<T> y,
	int incy
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  Span<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.
y  Span<T>
A span containing the elements of the vector y.
incy  Int32
The distance between elements in y.

See Also