org.ojalgo.matrix.transformation
Class Householder<N extends Number>

java.lang.Object
  extended by org.ojalgo.matrix.transformation.Householder<N>

public final class Householder<N extends Number>
extends Object


Nested Class Summary
static class Householder.Big
           
static class Householder.Complex
           
static class Householder.Primitive
           
static class Householder.Reference<N extends Number>
           
 
Constructor Summary
Householder(int aNumberOfLeadingZeros, boolean aLeadingOneOrNot, Array1D<N> theRemainingVectorElements)
           
 
Method Summary
 double doubleValue(int anIndex)
           
 int first()
           
 N getNumber(PhysicalStore.Factory<N> aFactory, int anIndex)
           
static Householder<BigDecimal> makeBig(BigDecimal[] allVectorElements)
           
static Householder<BigDecimal> makeBig(int aNumberOfLeadingZeros, boolean aLeadingOneOrNot, BigDecimal[] theRemainingVectorElements)
           
static Householder<ComplexNumber> makeComplex(ComplexNumber[] allVectorElements)
           
static Householder<ComplexNumber> makeComplex(int aNumberOfLeadingZeros, boolean aLeadingOneOrNot, ComplexNumber[] theRemainingVectorElements)
           
static Householder<Double> makePrimitive(double[] allVectorElements)
           
static Householder<Double> makePrimitive(int aNumberOfLeadingZeros, boolean aLeadingOneOrNot, double[] theRemainingVectorElements)
           
 int size()
           
 Scalar<N> toScalar(PhysicalStore.Factory<N> aFactory, int anIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Householder

public Householder(int aNumberOfLeadingZeros,
                   boolean aLeadingOneOrNot,
                   Array1D<N> theRemainingVectorElements)
Method Detail

makeBig

public static Householder<BigDecimal> makeBig(BigDecimal[] allVectorElements)

makeBig

public static Householder<BigDecimal> makeBig(int aNumberOfLeadingZeros,
                                              boolean aLeadingOneOrNot,
                                              BigDecimal[] theRemainingVectorElements)

makeComplex

public static Householder<ComplexNumber> makeComplex(ComplexNumber[] allVectorElements)

makeComplex

public static Householder<ComplexNumber> makeComplex(int aNumberOfLeadingZeros,
                                                     boolean aLeadingOneOrNot,
                                                     ComplexNumber[] theRemainingVectorElements)

makePrimitive

public static Householder<Double> makePrimitive(double[] allVectorElements)

makePrimitive

public static Householder<Double> makePrimitive(int aNumberOfLeadingZeros,
                                                boolean aLeadingOneOrNot,
                                                double[] theRemainingVectorElements)

doubleValue

public final double doubleValue(int anIndex)

first

public final int first()
Returns:
The index of the first non-zero Householder vector element.

getNumber

public final N getNumber(PhysicalStore.Factory<N> aFactory,
                         int anIndex)

size

public final int size()
Returns:
The size/length of the Householder vector.

toScalar

public final Scalar<N> toScalar(PhysicalStore.Factory<N> aFactory,
                                int anIndex)