java.lang.Object
org.ojalgo.array.SparseArray.SparseFactory<N>
- All Implemented Interfaces:
Factory1D<BasicArray<N>>
- Enclosing class:
SparseArray<N extends Comparable<N>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Factory1D
Factory1D.Builder<I extends Structure1D>, Factory1D.MayBeSparse<I extends Structure1D,DENSE extends Factory1D.Builder<I>, SPARSE extends Factory1D.Builder<I>>, Factory1D.TwoStep<I extends Structure1D, B extends Factory1D.Builder<I>> -
Method Summary
Modifier and TypeMethodDescriptionfinal AggregatorSet<N> chunk(long chunk) final FunctionSet<N> function()final MathTypeinitial(long initial) make(int size) make(long count) final Scalar.Factory<N> scalar()segment(long segment) With very large data structures, particularly sparse ones, the underlying (dense) storage is segmented.
-
Method Details
-
chunk
- Parameters:
chunk- Defines a capacity break point. Below this point the capacity is doubled when needed. Above it, it is grown by adding one "chunk" at the time. Must be a power of 2. (The builder will enforce that for you.)- Returns:
- this
-
initial
- Parameters:
initial- Sets the initial capacity of the "arrays" to be created using this factory.- Returns:
- this
-
make
-
make
-
segment
With very large data structures, particularly sparse ones, the underlying (dense) storage is segmented. (Very large arrays are implemented as an array of arrays.) This determines the size/length of one such segment. Must be a multiple of the chunk size as well as a power of 2. (The builder will enforce this for you.) -
aggregator
-
function
-
getMathType
-
scalar
-