public class HouseholderContext extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
beta
β = 2 / v'v.
|
Vector |
generator
The vector which is used to generate the Householder vector.
|
double |
lambda
The norm of the generator with the sign chosen to be the opposite of the first coordinate
of the generator.
|
Vector |
v
The defining vector which is perpendicular to the Householder hyperplane.
|
| Constructor and Description |
|---|
HouseholderContext(Vector v,
double beta,
Vector generator,
double lambda)
Constructs a Householder context information.
|
| Modifier and Type | Method and Description |
|---|---|
static HouseholderContext |
getContext(Vector x)
Generates the context information from a generating vector x.
|
String |
toString() |
public final Vector v
public final double beta
public final Vector generator
public final double lambda
public HouseholderContext(Vector v, double beta, Vector generator, double lambda)
v - the defining vector which is perpendicular to the Householder hyperplanebeta - βgenerator - the vector that generates the Householder reflectionlambda - λ, the negative norm of the generatorpublic static HouseholderContext getContext(Vector x)
That is,Hx = ±||x|| * e1
H.reflect(x) == new DenseVector(new double[]{±x.norm(), 0, ...})
x - a vectorCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.