Package org.ojalgo.matrix.store
Class SparseStore.Factory<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.matrix.store.SparseStore.Factory<N>
-
- All Implemented Interfaces:
Factory2D<SparseStore<N>>
,Factory2D.TwoStep<SparseStore<N>,SparseStore.Builder<N>>
,FactorySupplement
- Enclosing class:
- SparseStore<N extends java.lang.Comparable<N>>
public static final class SparseStore.Factory<N extends java.lang.Comparable<N>> extends java.lang.Object implements Factory2D<SparseStore<N>>, Factory2D.TwoStep<SparseStore<N>,SparseStore.Builder<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 java.util.function.IntBinaryOperator
myInitial
private PhysicalStore.Factory<N,?>
myPhysicalFactory
-
Constructor Summary
Constructors Constructor Description Factory(PhysicalStore.Factory<N,?> physicalFactory)
Factory(PhysicalStore.Factory<N,?> physicalFactory, java.util.function.IntBinaryOperator initial)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SparseStore<N>
copy(Access2D<?> source)
FunctionSet<?>
function()
MathType
getMathType()
SparseStore.Factory<N>
initial(java.util.function.IntBinaryOperator initial)
Specify how to calculate the initial capacity of the sparse store, based on the number of rows and columns.SparseStore<N>
make(int nbRows, int nbCols)
SparseStore.Builder<N>
newBuilder(long nbRows, long nbCols)
Scalar.Factory<?>
scalar()
-
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
-
-
-
-
Field Detail
-
myInitial
private final java.util.function.IntBinaryOperator myInitial
-
myPhysicalFactory
private final PhysicalStore.Factory<N extends java.lang.Comparable<N>,?> myPhysicalFactory
-
-
Constructor Detail
-
Factory
Factory(PhysicalStore.Factory<N,?> physicalFactory)
-
Factory
Factory(PhysicalStore.Factory<N,?> physicalFactory, java.util.function.IntBinaryOperator initial)
-
-
Method Detail
-
copy
public SparseStore<N> copy(Access2D<?> source)
- Specified by:
copy
in interfaceFactory2D.TwoStep<SparseStore<N extends java.lang.Comparable<N>>,SparseStore.Builder<N extends java.lang.Comparable<N>>>
-
function
public FunctionSet<?> function()
- Specified by:
function
in interfaceFactorySupplement
-
getMathType
public MathType getMathType()
- Specified by:
getMathType
in interfaceFactorySupplement
-
initial
public SparseStore.Factory<N> initial(java.util.function.IntBinaryOperator initial)
Specify how to calculate the initial capacity of the sparse store, based on the number of rows and columns.
-
make
public SparseStore<N> make(int nbRows, int nbCols)
- Specified by:
make
in interfaceFactory2D<N extends java.lang.Comparable<N>>
- Specified by:
make
in interfaceFactory2D.TwoStep<SparseStore<N extends java.lang.Comparable<N>>,SparseStore.Builder<N extends java.lang.Comparable<N>>>
-
newBuilder
public SparseStore.Builder<N> newBuilder(long nbRows, long nbCols)
- Specified by:
newBuilder
in interfaceFactory2D.TwoStep<SparseStore<N extends java.lang.Comparable<N>>,SparseStore.Builder<N extends java.lang.Comparable<N>>>
-
scalar
public Scalar.Factory<?> scalar()
- Specified by:
scalar
in interfaceFactorySupplement
-
-