org.ojalgo.matrix.jama
Class JamaFactory

java.lang.Object
  extended by org.ojalgo.matrix.jama.JamaFactory
All Implemented Interfaces:
Serializable, Factory2D<JamaMatrix>, BasicMatrix.Factory<JamaMatrix>, PhysicalStore.Factory<Double,JamaMatrix>

public final class JamaFactory
extends Object
implements BasicMatrix.Factory<JamaMatrix>, PhysicalStore.Factory<Double,JamaMatrix>

Implements both BasicMatrix.Factory and PhysicalStore.Factory, and creates JamaMatrix instances.

Author:
apete
See Also:
Serialized Form

Method Summary
 JamaMatrix columns(Access1D<?>... aSource)
           
 JamaMatrix columns(double[]... aSource)
           
 JamaMatrix columns(List<? extends Number>... aSource)
           
 JamaMatrix columns(Number[]... aSource)
           
 JamaMatrix conjugate(Access2D<?> aSource)
           
 JamaMatrix copy(Access2D<?> aSource)
           
 AggregatorCollection<Double> getAggregatorCollection()
           
 MatrixBuilder<Double> getBuilder(int aRowDim, int aColDim)
           
 FunctionSet<Double> getFunctionSet()
           
 Double getNumber(double aNmbr)
           
 Double getNumber(Number aNmbr)
           
 PrimitiveScalar getStaticOne()
           
 PrimitiveScalar getStaticZero()
           
 ArrayAccess<Double> makeArray(int aLength)
           
 JamaMatrix makeEye(int aRowDim, int aColDim)
           
 Householder<Double> makeHouseholder(int aLength)
           
 JamaMatrix makeRandom(int aRowDim, int aColDim, RandomNumber aRndm)
           
 Rotation<Double> makeRotation(int aLow, int aHigh, double aCos, double aSin)
           
 Rotation<Double> makeRotation(int aLow, int aHigh, Double aCos, Double aSin)
           
 JamaMatrix makeZero(int aRowDim, int aColDim)
           
 JamaMatrix rows(Access1D<?>... aSource)
           
 JamaMatrix rows(double[]... aSource)
           
 JamaMatrix rows(List<? extends Number>... aSource)
           
 JamaMatrix rows(Number[]... aSource)
           
 PrimitiveScalar toScalar(double aNmbr)
           
 PrimitiveScalar toScalar(Number aNmbr)
           
 JamaMatrix transpose(Access2D<?> aSource)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

columns

public JamaMatrix columns(Access1D<?>... aSource)
Specified by:
columns in interface Factory2D<JamaMatrix>

columns

public JamaMatrix columns(double[]... aSource)
Specified by:
columns in interface Factory2D<JamaMatrix>

columns

public JamaMatrix columns(List<? extends Number>... aSource)
Specified by:
columns in interface Factory2D<JamaMatrix>

columns

public JamaMatrix columns(Number[]... aSource)
Specified by:
columns in interface Factory2D<JamaMatrix>

conjugate

public JamaMatrix conjugate(Access2D<?> aSource)
Specified by:
conjugate in interface PhysicalStore.Factory<Double,JamaMatrix>

copy

public JamaMatrix copy(Access2D<?> aSource)
Specified by:
copy in interface Factory2D<JamaMatrix>

getAggregatorCollection

public AggregatorCollection<Double> getAggregatorCollection()
Specified by:
getAggregatorCollection in interface PhysicalStore.Factory<Double,JamaMatrix>

getBuilder

public MatrixBuilder<Double> getBuilder(int aRowDim,
                                        int aColDim)
Specified by:
getBuilder in interface BasicMatrix.Factory<JamaMatrix>

getFunctionSet

public FunctionSet<Double> getFunctionSet()
Specified by:
getFunctionSet in interface PhysicalStore.Factory<Double,JamaMatrix>

getNumber

public Double getNumber(double aNmbr)
Specified by:
getNumber in interface PhysicalStore.Factory<Double,JamaMatrix>

getNumber

public Double getNumber(Number aNmbr)
Specified by:
getNumber in interface PhysicalStore.Factory<Double,JamaMatrix>

getStaticOne

public PrimitiveScalar getStaticOne()
Specified by:
getStaticOne in interface PhysicalStore.Factory<Double,JamaMatrix>

getStaticZero

public PrimitiveScalar getStaticZero()
Specified by:
getStaticZero in interface PhysicalStore.Factory<Double,JamaMatrix>

makeArray

public ArrayAccess<Double> makeArray(int aLength)
Specified by:
makeArray in interface PhysicalStore.Factory<Double,JamaMatrix>

makeEye

public JamaMatrix makeEye(int aRowDim,
                          int aColDim)
Specified by:
makeEye in interface Factory2D<JamaMatrix>

makeHouseholder

public Householder<Double> makeHouseholder(int aLength)
Specified by:
makeHouseholder in interface PhysicalStore.Factory<Double,JamaMatrix>

makeRandom

public JamaMatrix makeRandom(int aRowDim,
                             int aColDim,
                             RandomNumber aRndm)
Specified by:
makeRandom in interface Factory2D<JamaMatrix>

makeRotation

public Rotation<Double> makeRotation(int aLow,
                                     int aHigh,
                                     double aCos,
                                     double aSin)
Specified by:
makeRotation in interface PhysicalStore.Factory<Double,JamaMatrix>

makeRotation

public Rotation<Double> makeRotation(int aLow,
                                     int aHigh,
                                     Double aCos,
                                     Double aSin)
Specified by:
makeRotation in interface PhysicalStore.Factory<Double,JamaMatrix>

makeZero

public JamaMatrix makeZero(int aRowDim,
                           int aColDim)
Specified by:
makeZero in interface Factory2D<JamaMatrix>

rows

public JamaMatrix rows(Access1D<?>... aSource)
Specified by:
rows in interface Factory2D<JamaMatrix>

rows

public JamaMatrix rows(double[]... aSource)
Specified by:
rows in interface Factory2D<JamaMatrix>

rows

public JamaMatrix rows(List<? extends Number>... aSource)
Specified by:
rows in interface Factory2D<JamaMatrix>

rows

public JamaMatrix rows(Number[]... aSource)
Specified by:
rows in interface Factory2D<JamaMatrix>

toScalar

public PrimitiveScalar toScalar(double aNmbr)
Specified by:
toScalar in interface PhysicalStore.Factory<Double,JamaMatrix>

toScalar

public PrimitiveScalar toScalar(Number aNmbr)
Specified by:
toScalar in interface PhysicalStore.Factory<Double,JamaMatrix>

transpose

public JamaMatrix transpose(Access2D<?> aSource)
Specified by:
transpose in interface PhysicalStore.Factory<Double,JamaMatrix>