edu.emory.mathcs.csparsej.tdouble
Class Dcs_house
- java.lang.Object
-
- edu.emory.mathcs.csparsej.tdouble.Dcs_house
-
public class Dcs_house extends java.lang.ObjectCompute Householder reflection.
-
-
Constructor Summary
Constructors Constructor and Description Dcs_house()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublecs_house(double[] x, int x_offset, double[] beta, int n)Compute a Householder reflection, overwrite x with v, where (I-beta*v*v')*x = s*e1.
-
-
-
Method Detail
-
cs_house
public static double cs_house(double[] x, int x_offset, double[] beta, int n)Compute a Householder reflection, overwrite x with v, where (I-beta*v*v')*x = s*e1. See Algo 5.1.1, Golub & Van Loan, 3rd ed.- Parameters:
x- x on output, v on inputx_offset- the index of the first element in array xbeta- scalar betan- the length of x- Returns:
- norm2(x), -1 on error
-
-
DMelt 3.0 © DataMelt by jWork.ORG