Package no.uib.cipr.matrix
Class GivensRotation
java.lang.Object
no.uib.cipr.matrix.GivensRotation
Givens plane rotation
-
Constructor Summary
ConstructorsConstructorDescriptionGivensRotation
(double x, double y) Constructs a Givens plane rotation for a given 2-vector -
Method Summary
-
Constructor Details
-
GivensRotation
public GivensRotation(double x, double y) Constructs a Givens plane rotation for a given 2-vector- Parameters:
x
- First component of the vectory
- Second component of the vector
-
-
Method Details
-
apply
Applies the Givens rotation to two elements in a matrix column- Parameters:
H
- Matrix to apply tocolumn
- Column indexi1
- Row index of first elementi2
- Row index of second element
-
apply
Applies the Givens rotation to two elements of a vector- Parameters:
x
- Vector to apply toi1
- Index of first elementi2
- Index of second element
-