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 Factory2D
Factory2D.Builder<I>, Factory2D.MayBeSparse<I,DENSE, SPARSE>, Factory2D.TwoStep<I, B> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntBinaryOperatorprivate 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
copyin interfaceFactory2D.TwoStep<SparseStore<N extends Comparable<N>>, SparseStore.Builder<N extends Comparable<N>>>
-
function
- Specified by:
functionin interfaceFactorySupplement
-
getMathType
- Specified by:
getMathTypein interfaceFactorySupplement
-
initial
Specify how to calculate the initial capacity of the sparse store, based on the number of rows and columns. -
make
- Specified by:
makein interfaceFactory2D<N extends Comparable<N>>- Specified by:
makein interfaceFactory2D.TwoStep<SparseStore<N extends Comparable<N>>, SparseStore.Builder<N extends Comparable<N>>>
-
newBuilder
- Specified by:
newBuilderin interfaceFactory2D.TwoStep<SparseStore<N extends Comparable<N>>, SparseStore.Builder<N extends Comparable<N>>>
-
scalar
- Specified by:
scalarin interfaceFactorySupplement
-