Class NumberList.ListFactory<N extends Comparable<N>>
java.lang.Object
org.ojalgo.array.NumberList.ListFactory<N>
- Enclosing class:
NumberList<N extends Comparable<N>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
myGrowthStrategy
-
myDenseFactory
-
-
Constructor Details
-
ListFactory
ListFactory(DenseArray.Factory<N, ?> denseFactory)
-
-
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
-
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.)
-