org.ojalgo.matrix.factory
Class DefaultFactory<N extends Number>

java.lang.Object
  extended by org.ojalgo.matrix.factory.DefaultFactory<N>
All Implemented Interfaces:
BasicMatrix.Factory, MatrixFactory

Deprecated. v27 Don't use this class directly. It will be renamed, moved and package private...

@Deprecated
public class DefaultFactory<N extends Number>
extends Object
implements MatrixFactory

DefaultFactory creates instances of classes that implement the BasicMatrix interface and have constructors matching the MatrixFactory make(...) methods.

DefaultFactory uses reflection to call the appropriate constructor. This takes slightly longer than calling the matrix' constructors directly. If you need to instantiate a large number of small matrices; using DefaultFactory may not be your best alternative. In that case you should consider coding a different MatrixFactory implementation. In the vast majority of cases you do not need to worry about this.

Author:
apete

Constructor Summary
DefaultFactory(Class<? extends BasicMatrix> aTemplate, PhysicalFactory<N> aPhysical)
          Deprecated.  
 
Method Summary
 BasicMatrix buildColumnVector(List<BigDecimal> aColumn)
          Deprecated. Use #makeColumnVector(List) instead
 BasicMatrix buildEye(int aRowDim, int aColDim)
          Deprecated. Use makeEye(int,int) instead
 BasicMatrix buildRandom(int aRowDim, int aColDim, RandomNumber aRndm)
          Deprecated. Use makeRandom(int,int,RandomNumber) instead
 BasicMatrix buildRowVector(List<BigDecimal> aRow)
          Deprecated. Use #makeRowVector(List) instead
 BasicMatrix buildZero(int aRowDim, int aColDim)
          Deprecated. Use makeZero(int,int) instead
 BasicMatrix copy(Array2Dim<? extends Number> anArray)
          Deprecated. Use copyArray(Array2Dim) instead
 BasicMatrix copy(BasicMatrix aMtrx)
          Deprecated. Use copyMatrix(BasicMatrix) instead
 BasicMatrix copy(double[][] aRaw)
          Deprecated. Use copyRaw(double[][]) instead
 BasicMatrix copy(MatrixStore<? extends Number> aStore)
          Deprecated. Use copyStore(MatrixStore) instead
 BasicMatrix copyArray(Array2Dim<? extends Number> anArray)
          Deprecated.  
 BasicMatrix copyMatrix(BasicMatrix aMtrx)
          Deprecated.  
 BasicMatrix copyRaw(double[][] aRaw)
          Deprecated.  
 BasicMatrix copyStore(MatrixStore<? extends Number> aStore)
          Deprecated.  
 BasicMatrix instantiate(MatrixStore<N> aStore)
          Deprecated.  
 BasicMatrix makeColumnVector(List<? extends Number> aColumn)
          Deprecated.  
 BasicMatrix makeEye(int aRowDim, int aColDim)
          Deprecated.  
 BasicMatrix makeRandom(int aRowDim, int aColDim, RandomNumber aRndm)
          Deprecated.  
 BasicMatrix makeRowVector(List<? extends Number> aRow)
          Deprecated.  
 BasicMatrix makeZero(int aRowDim, int aColDim)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFactory

public DefaultFactory(Class<? extends BasicMatrix> aTemplate,
                      PhysicalFactory<N> aPhysical)
Deprecated. 
Method Detail

buildColumnVector

@Deprecated
public BasicMatrix buildColumnVector(List<BigDecimal> aColumn)
Deprecated. Use #makeColumnVector(List) instead

Specified by:
buildColumnVector in interface MatrixFactory
See Also:
BasicMatrix.toListOfElements(), BasicMatrix.Factory.makeRowVector(List)

buildEye

@Deprecated
public BasicMatrix buildEye(int aRowDim,
                                       int aColDim)
Deprecated. Use makeEye(int,int) instead

Description copied from interface: MatrixFactory
Orginal

Specified by:
buildEye in interface MatrixFactory

buildRandom

@Deprecated
public BasicMatrix buildRandom(int aRowDim,
                                          int aColDim,
                                          RandomNumber aRndm)
Deprecated. Use makeRandom(int,int,RandomNumber) instead

Specified by:
buildRandom in interface MatrixFactory

buildRowVector

@Deprecated
public BasicMatrix buildRowVector(List<BigDecimal> aRow)
Deprecated. Use #makeRowVector(List) instead

Specified by:
buildRowVector in interface MatrixFactory
See Also:
BasicMatrix.toListOfElements(), BasicMatrix.Factory.makeColumnVector(List)

buildZero

@Deprecated
public BasicMatrix buildZero(int aRowDim,
                                        int aColDim)
Deprecated. Use makeZero(int,int) instead

Specified by:
buildZero in interface MatrixFactory

copy

@Deprecated
public BasicMatrix copy(Array2Dim<? extends Number> anArray)
Deprecated. Use copyArray(Array2Dim) instead

Specified by:
copy in interface MatrixFactory

copy

@Deprecated
public BasicMatrix copy(BasicMatrix aMtrx)
Deprecated. Use copyMatrix(BasicMatrix) instead

Specified by:
copy in interface MatrixFactory

copy

@Deprecated
public BasicMatrix copy(double[][] aRaw)
Deprecated. Use copyRaw(double[][]) instead

Specified by:
copy in interface MatrixFactory

copy

@Deprecated
public BasicMatrix copy(MatrixStore<? extends Number> aStore)
Deprecated. Use copyStore(MatrixStore) instead

Specified by:
copy in interface MatrixFactory

copyArray

public BasicMatrix copyArray(Array2Dim<? extends Number> anArray)
Deprecated. 
Specified by:
copyArray in interface BasicMatrix.Factory

copyMatrix

public BasicMatrix copyMatrix(BasicMatrix aMtrx)
Deprecated. 
Specified by:
copyMatrix in interface BasicMatrix.Factory

copyRaw

public BasicMatrix copyRaw(double[][] aRaw)
Deprecated. 
Specified by:
copyRaw in interface BasicMatrix.Factory

copyStore

public BasicMatrix copyStore(MatrixStore<? extends Number> aStore)
Deprecated. 
Specified by:
copyStore in interface BasicMatrix.Factory

instantiate

public BasicMatrix instantiate(MatrixStore<N> aStore)
Deprecated. 

makeColumnVector

public BasicMatrix makeColumnVector(List<? extends Number> aColumn)
Deprecated. 
Specified by:
makeColumnVector in interface BasicMatrix.Factory
See Also:
BasicMatrix.toListOfElements(), BasicMatrix.Factory.makeRowVector(List)

makeEye

public BasicMatrix makeEye(int aRowDim,
                           int aColDim)
Deprecated. 
Specified by:
makeEye in interface BasicMatrix.Factory

makeRandom

public BasicMatrix makeRandom(int aRowDim,
                              int aColDim,
                              RandomNumber aRndm)
Deprecated. 
Specified by:
makeRandom in interface BasicMatrix.Factory

makeRowVector

public BasicMatrix makeRowVector(List<? extends Number> aRow)
Deprecated. 
Specified by:
makeRowVector in interface BasicMatrix.Factory
See Also:
BasicMatrix.toListOfElements(), BasicMatrix.Factory.makeColumnVector(List)

makeZero

public BasicMatrix makeZero(int aRowDim,
                            int aColDim)
Deprecated. 
Specified by:
makeZero in interface BasicMatrix.Factory