Package org.ojalgo.matrix.store
Class SparseStore.Factory<N extends 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 Comparable<N>>
public static final class SparseStore.Factory<N extends Comparable<N>>
extends 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
FieldsModifier and TypeFieldDescriptionprivate final IntBinaryOperator
private final PhysicalStore.Factory
<N, ?> -
Constructor Summary
ConstructorsConstructorDescriptionFactory
(PhysicalStore.Factory<N, ?> physicalFactory) Factory
(PhysicalStore.Factory<N, ?> physicalFactory, IntBinaryOperator initial) -
Method Summary
Modifier and TypeMethodDescriptionFunctionSet
<?> function()
initial
(IntBinaryOperator initial) Specify how to calculate the initial capacity of the sparse store, based on the number of rows and columns.make
(int nbRows, int nbCols) newBuilder
(long nbRows, long nbCols) 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 Details
-
myInitial
-
myPhysicalFactory
-
-
Constructor Details
-
Factory
Factory(PhysicalStore.Factory<N, ?> physicalFactory) -
Factory
Factory(PhysicalStore.Factory<N, ?> physicalFactory, IntBinaryOperator initial)
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceFactory2D.TwoStep<SparseStore<N extends Comparable<N>>,
SparseStore.Builder<N extends Comparable<N>>>
-
function
- Specified by:
function
in interfaceFactorySupplement
-
getMathType
- Specified by:
getMathType
in interfaceFactorySupplement
-
initial
Specify how to calculate the initial capacity of the sparse store, based on the number of rows and columns. -
make
- Specified by:
make
in interfaceFactory2D<N extends Comparable<N>>
- Specified by:
make
in interfaceFactory2D.TwoStep<SparseStore<N extends Comparable<N>>,
SparseStore.Builder<N extends Comparable<N>>>
-
newBuilder
- Specified by:
newBuilder
in interfaceFactory2D.TwoStep<SparseStore<N extends Comparable<N>>,
SparseStore.Builder<N extends Comparable<N>>>
-
scalar
- Specified by:
scalar
in interfaceFactorySupplement
-