LinearAlgebraOperations.ComplexRotate<T, TStorage> Method

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

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static void ComplexRotate<T, TStorage>(
	int n,
	TStorage cx,
	TStorage cy,
	T c,
	T s
)
where TStorage : Object, IStorageSlice<Complex<T>, TStorage>

Parameters

n  Int32
             On entry, N specifies the order of the vectors cx and cy.
             N must be at least zero.
            
cx  TStorage
            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  TStorage
            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  T
             On entry, C specifies the cosine, cos.
            
s  T
             On entry, S specifies the sine, sin.
            

Type Parameters

T
TStorage

Remarks

            jack dongarra, linpack, 3/11/78.
            

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

Date: November 2011

See Also