ManagedLinearAlgebraOperations.Swap Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Swap(Int32, ArraySlice<Complex<Double>>, ArraySlice<Complex<Double>>) Exchanges the elements of two vectors.
Swap(Int32, ArraySlice<Double>, ArraySlice<Double>) Exchanges the elements of two vectors.

Swap(Int32, ArraySlice<Complex<Double>>, ArraySlice<Complex<Double>>)

Exchanges the elements of two vectors.
C#
public override void Swap(
	int n,
	ArraySlice<Complex<double>> x,
	ArraySlice<Complex<double>> y
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  ArraySlice<Complex<Double>>
A reference to a one-dimensional array containing the elements of the vector x.
y  ArraySlice<Complex<Double>>
A reference to a one-dimensional array containing the elements of the vector y.

Implements

ILinearAlgebraOperations<T>.Swap(Int32, ArraySlice<T>, ArraySlice<T>)

Swap(Int32, ArraySlice<Double>, ArraySlice<Double>)

Exchanges the elements of two vectors.
C#
public override void Swap(
	int n,
	ArraySlice<double> x,
	ArraySlice<double> y
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  ArraySlice<Double>
A reference to a one-dimensional array containing the elements of the vector x.
y  ArraySlice<Double>
A reference to a one-dimensional array containing the elements of the vector y.

Implements

ILinearAlgebraOperations<T>.Swap(Int32, ArraySlice<T>, ArraySlice<T>)

See Also