Generic Linear Algebra Operations<T>.Apply Modified Givens Rotation Method
THE MODIFIED GIVENS TRANSFORMATION, H, TO THE 2 BY N MATRIX (DXT) , WHERE **T INDICATES TRANSPOSE.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics.Generic (in Extreme.Numerics.Generic.dll) Version: 8.1.4
C#
Assembly: Extreme.Numerics.Generic (in Extreme.Numerics.Generic.dll) Version: 8.1.4
public override void ApplyModifiedGivensRotation(
int n,
ArraySlice<T> dx,
ArraySlice<T> dy,
T[] dparam
)
Parameters
- n Int32
number of elements in input vector(s)
- dx ArraySlice<T>
Dimension N T precision vector with N elements
storage spacing between elements of DX
- dy ArraySlice<T>
Dimension N T precision vector with N elements
storage spacing between elements of DY
- dparam T[]
Dimension 5 AM(1)=DFLAG RAM(2)=DH11 ARAM(3)=DH21 PARAM(4)=DH12 DPARAM(5)=DH22
Remarks
THE ELEMENTS OF DX ARE IN (DYT) DX(LX+I*INCX), I = 0 TO N-1, WHERE LX = 1 IF INCX >= 0, ELSE LX = (-INCX)*N, AND SIMILARLY FOR SY USING LY AND INCY. WITH DPARAM(1)=DFLAG, H HAS ONE OF THE FOLLOWING FORMS. DFLAG=-1.D0 DFLAG=0.D0 DFLAG=1.D0 DFLAG=-2.D0 (DH11 DH12) (1.D0 DH12) (DH11 1.D0) (1.D0 0.D0) H=( ) ( ) ( ) ( ) (DH21 DH22), (DH21 1.D0), (-1.D0 DH22), (0.D0 1.D0). SEE DROTMG FOR A DESCRIPTION OF DATA STORAGE IN DPARAM.
Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.
Date: November 2011