Class GrowthStrategy
java.lang.Object
org.ojalgo.array.GrowthStrategy
To be used by non fixed size data structures that delegate the actual storage to a DenseArray.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) longchunk()(package private) GrowthStrategychunk(long chunk) (package private) static GrowthStrategy(package private) intgrow(int current) (package private) longgrow(long current) (package private) intinitial()(package private) GrowthStrategyinitial(long initial) Enforced to be invalid input: '<'= 1(package private) booleanisChunked(long count) (package private) booleanisSegmented(long count) (package private) <T> TmakeChunk(LongFunction<T> factory) (package private) <T> TmakeInitial(LongFunction<T> factory) (package private) <T> TmakeSegment(LongFunction<T> factory) (package private) longsegment()(package private) GrowthStrategysegment(long segment)
-
Field Details
-
CHUNK
private static final long CHUNK512 -
INITIAL
private static final long INITIAL- See Also:
-
SEGMENT
private static final long SEGMENT- See Also:
-
myChunk
private final long myChunk -
myInitial
private final long myInitial -
mySegment
private final long mySegment
-
-
Constructor Details
-
GrowthStrategy
GrowthStrategy() -
GrowthStrategy
GrowthStrategy(long initial, long chunk, long segment)
-
-
Method Details
-
from
-
chunk
long chunk() -
chunk
-
grow
int grow(int current) -
grow
long grow(long current) -
initial
int initial() -
initial
Enforced to be invalid input: '<'= 1 -
isChunked
boolean isChunked(long count) -
isSegmented
boolean isSegmented(long count) -
makeChunk
-
makeInitial
-
makeSegment
-
segment
long segment() -
segment
-