LinearAlgebraOperations<T>.Swap Method

Definition

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

Overload List

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

Swaps the elements of two vectors.

C#
public virtual void Swap(
	int n,
	ArraySlice<T> dx,
	ArraySlice<T> dy
)

Parameters

n  Int32
 
dx  ArraySlice<T>
 
dy  ArraySlice<T>
 

Implements

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

Remarks

            uses unrolled loops for increments equal one.
            

Further Details:

            jack dongarra, linpack, 3/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

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

Interchanges two vectors.

C#
public virtual void Swap(
	int n,
	ArraySlice<Complex<T>> zx,
	ArraySlice<Complex<T>> zy
)

Parameters

n  Int32
 
zx  ArraySlice<Complex<T>>
 
zy  ArraySlice<Complex<T>>
 

Implements

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

Remarks

Further Details:

            jack dongarra, 3/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

See Also