ManagedLinearAlgebraOperations.Rotate Method

Definition

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

Overload List

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

A plane rotation, where the cos and sin (c and s) are real and the vectors cx and cy are complex.

Rotate(Int32, ArraySlice<Double>, ArraySlice<Double>, Double, Double) Applies a Givens plane rotation.

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

A plane rotation, where the cos and sin (c and s) are real and the vectors cx and cy are complex.

C#
public override void Rotate(
	int n,
	ArraySlice<Complex<double>> cx,
	ArraySlice<Complex<double>> cy,
	double c,
	double s
)

Parameters

n  Int32
             On entry, N specifies the order of the vectors cx and cy.
             N must be at least zero.
            
cx  ArraySlice<Complex<Double>>
            Dimension at least
             ( 1 + ( N - 1 )*abs( INCX ) ).
             Before entry, the incremented array CX must contain the n
             element vector cx. On exit, CX is overwritten by the updated
             vector cx.
            
             On entry, INCX specifies the increment for the elements of
             CX. INCX must not be zero.
            
cy  ArraySlice<Complex<Double>>
            Dimension at least
             ( 1 + ( N - 1 )*abs( INCY ) ).
             Before entry, the incremented array CY must contain the n
             element vector cy. On exit, CY is overwritten by the updated
             vector cy.
            
             On entry, INCY specifies the increment for the elements of
             CY. INCY must not be zero.
            
c  Double
             On entry, C specifies the cosine, cos.
            
s  Double
             On entry, S specifies the sine, sin.
            

Remarks

            jack dongarra, linpack, 3/11/78.
            

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

Date: November 2011

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

Applies a Givens plane rotation.
C#
public override void Rotate(
	int n,
	ArraySlice<double> x,
	ArraySlice<double> y,
	double c,
	double s
)

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.
c  Double
The first rotation element, the cosine of the rotation angle.
s  Double
The second rotation element, the sine of the rotation angle.

Implements

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

See Also