Package org.ojalgo.array
Class Array2D.Factory<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.array.Array2D.Factory<N>
-
- All Implemented Interfaces:
Factory2D<Array2D<N>>
,Factory2D.MayBeSparse<Array2D<N>,Array2D<N>,Array2D<N>>
,Factory2D.TwoStep<Array2D<N>,Array2D<N>>
,FactorySupplement
public static final class Array2D.Factory<N extends java.lang.Comparable<N>> extends java.lang.Object implements Factory2D.MayBeSparse<Array2D<N>,Array2D<N>,Array2D<N>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Factory2D
Factory2D.Builder<I extends Structure2D>, Factory2D.MayBeSparse<I extends Structure2D,DENSE extends Factory2D.Builder<I>,SPARSE extends Factory2D.Builder<I>>, Factory2D.TwoStep<I extends Structure2D,B extends Factory2D.Builder<I>>
-
-
Field Summary
Fields Modifier and Type Field Description private BasicArray.Factory<N>
myDelegate
-
Constructor Summary
Constructors Constructor Description Factory(DenseArray.Factory<N> denseArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Array2D<N>
copy(Access2D<?> source)
FunctionSet<N>
function()
MathType
getMathType()
Array2D<N>
make(int nbRows, int nbCols)
Array2D<N>
make(long nbRows, long nbCols)
Array2D<N>
makeFilled(long rows, long columns, NullaryFunction<?> supplier)
Array2D<N>
newDenseBuilder(long nbRows, long nbCols)
Array2D<N>
newSparseBuilder(long nbRows, long nbCols)
Scalar.Factory<N>
scalar()
TensorFactory2D<N,Array2D<N>>
tensor()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Factory2D
asFactory1D, make
-
Methods inherited from interface org.ojalgo.structure.Factory2D.MayBeSparse
newBuilder
-
-
-
-
Field Detail
-
myDelegate
private final BasicArray.Factory<N extends java.lang.Comparable<N>> myDelegate
-
-
Constructor Detail
-
Factory
Factory(DenseArray.Factory<N> denseArray)
-
-
Method Detail
-
function
public FunctionSet<N> function()
- Specified by:
function
in interfaceFactorySupplement
-
getMathType
public MathType getMathType()
- Specified by:
getMathType
in interfaceFactorySupplement
-
makeFilled
public Array2D<N> makeFilled(long rows, long columns, NullaryFunction<?> supplier)
- Specified by:
makeFilled
in interfaceFactory2D.TwoStep<Array2D<N extends java.lang.Comparable<N>>,Array2D<N extends java.lang.Comparable<N>>>
-
scalar
public Scalar.Factory<N> scalar()
- Specified by:
scalar
in interfaceFactorySupplement
-
tensor
public TensorFactory2D<N,Array2D<N>> tensor()
-
-