Class MatrixFactory<N extends Comparable<N>, M extends BasicMatrix<N,M> , DR extends Mutate2D.ModifiableReceiver<N> & Factory2D.Builder<M>, SR extends Factory2D.Builder<M>>
java.lang.Object
org.ojalgo.matrix.MatrixFactory<N,M,DR,SR>
- All Implemented Interfaces:
Factory2D<M>, Factory2D.MayBeSparse<M,DR, SR>, Factory2D.TwoStep<M, DR>
- Direct Known Subclasses:
MatrixC128.Factory, MatrixH256.Factory, MatrixQ128.Factory, MatrixR032.Factory, MatrixR064.Factory, MatrixR128.Factory
public abstract class MatrixFactory<N extends Comparable<N>, M extends BasicMatrix<N,M>, DR extends Mutate2D.ModifiableReceiver<N> & Factory2D.Builder<M>, SR extends Factory2D.Builder<M>>
extends Object
implements Factory2D.MayBeSparse<M,DR,SR>
MatrixFactory creates instances of classes that implement the BasicMatrix
interface and have a constructor that takes a MatrixStore as input.
- Author:
- apete
-
Nested Class Summary
Nested classes/interfaces inherited from interface Factory2D
Factory2D.Builder<I>, Factory2D.MayBeSparse<I,DENSE, SPARSE>, Factory2D.TwoStep<I, B> -
Method Summary
Modifier and TypeMethodDescriptionfunction()make(int nbRows, int nbCols) make(long nbRows, long nbCols) makeDense(int count) makeDiagonal(double... diagonal) makeDiagonal(Access1D<?> diagonal) makeEye(int rows, int columns) makeEye(Structure2D shape) makeFilled(long rows, long columns, NullaryFunction<?> supplier) makeIdentity(int dimension) makeSingle(N element) makeWrapper(Access2D<?> elements) newDenseBuilder(long nbRows, long nbCols) newSparseBuilder(long nbRows, long nbCols) scalar()tensor1D()tensor2D()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Factory2D
asFactory1D, makeMethods inherited from interface Factory2D.MayBeSparse
newBuilder
-
Method Details
-
copy
- Specified by:
copyin interfaceFactory2D.TwoStep<N extends Comparable<N>, M extends BasicMatrix<N,M>>
-
function
-
getMathType
-
make
- Specified by:
makein interfaceFactory2D<N extends Comparable<N>>- Specified by:
makein interfaceFactory2D.TwoStep<N extends Comparable<N>, M extends BasicMatrix<N,M>>
-
make
- Specified by:
makein interfaceFactory2D<N extends Comparable<N>>- Specified by:
makein interfaceFactory2D.TwoStep<N extends Comparable<N>, M extends BasicMatrix<N,M>>
-
makeDense
-
makeDiagonal
-
makeDiagonal
-
makeEye
-
makeEye
-
makeFilled
- Specified by:
makeFilledin interfaceFactory2D.TwoStep<N extends Comparable<N>, M extends BasicMatrix<N,M>>
-
makeIdentity
-
makeSingle
-
makeWrapper
-
newDenseBuilder
- Specified by:
newDenseBuilderin interfaceFactory2D.MayBeSparse<N extends Comparable<N>, M extends BasicMatrix<N,M>, DR extends Mutate2D.ModifiableReceiver<N> & Factory2D.Builder<M>>
-
newSparseBuilder
- Specified by:
newSparseBuilderin interfaceFactory2D.MayBeSparse<N extends Comparable<N>, M extends BasicMatrix<N,M>, DR extends Mutate2D.ModifiableReceiver<N> & Factory2D.Builder<M>>
-
scalar
-
tensor1D
-
tensor2D
-