LinearAlgebraOperations<T>.Swap Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

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

Swaps the elements of two vectors.

C#
public void Swap(
	int n,
	ArraySlice<T> x,
	ArraySlice<T> y
)

Parameters

n  Int32
 
x  ArraySlice<T>
 
y  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 void Swap(
	int n,
	ArraySlice<Complex<T>> x,
	ArraySlice<Complex<T>> y
)

Parameters

n  Int32
 
x  ArraySlice<Complex<T>>
 
y  ArraySlice<Complex<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

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

Interchanges two vectors.

C#
public void Swap(
	int n,
	SpanSlice<Complex<T>> x,
	SpanSlice<Complex<T>> y
)

Parameters

n  Int32
 
x  SpanSlice<Complex<T>>
 
y  SpanSlice<Complex<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

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

Swaps the elements of two vectors.

C#
public virtual void Swap(
	int n,
	Span<T> x,
	int incx,
	Span<T> y,
	int incy
)

Parameters

n  Int32
 
x  Span<T>
 
incx  Int32
 
y  Span<T>
 
incy  Int32
 

Implements

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

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, Span<Complex<T>>, Int32, Span<Complex<T>>, Int32)

Interchanges two vectors.

C#
public abstract void Swap(
	int n,
	Span<Complex<T>> zx,
	int incx,
	Span<Complex<T>> zy,
	int incy
)

Parameters

n  Int32
 
zx  Span<Complex<T>>
 
incx  Int32
 
zy  Span<Complex<T>>
 
incy  Int32
 

Implements

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

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