public final class SegmentedArray<N extends Number> extends BasicArray<N>
Access1D.Aggregatable<N extends Number>, Access1D.Elements, Access1D.ElementView<N extends Number>, Access1D.IndexOf, Access1D.Sliceable<N extends Number>, Access1D.Visitable<N extends Number>
Mutate1D.BiModifiable<N extends Number>, Mutate1D.Fillable<N extends Number>, Mutate1D.Modifiable<N extends Number>
MAX_ARRAY_SIZE
Modifier and Type | Method and Description |
---|---|
void |
add(long index,
double addend) |
void |
add(long index,
Number addend) |
long |
count() |
double |
doubleValue(long index) |
void |
fillAll(N value) |
void |
fillAll(NullaryFunction<N> supplier) |
void |
fillOne(long index,
Access1D<?> values,
long valueIndex) |
void |
fillOne(long index,
N value) |
void |
fillOne(long index,
NullaryFunction<N> supplier) |
void |
fillRange(long first,
long limit,
N value) |
void |
fillRange(long first,
long limit,
NullaryFunction<N> supplier) |
N |
get(long index) |
SegmentedArray<N> |
grow()
Will either grow the last segment to be the same size as all the others, or add another segment (with
the same size).
|
boolean |
isAbsolute(long index) |
boolean |
isSmall(long index,
double comparedTo) |
static SegmentedArray<BigDecimal> |
makeBigDense(long count) |
static SegmentedArray<BigDecimal> |
makeBigSparse(long count) |
static SegmentedArray<ComplexNumber> |
makeComplexDense(long count) |
static SegmentedArray<ComplexNumber> |
makeComplexSparse(long count) |
static SegmentedArray<Double> |
makePrimitiveDense(long count) |
static SegmentedArray<Double> |
makePrimitiveSparse(long count) |
static SegmentedArray<Quaternion> |
makeQuaternionDense(long count) |
static SegmentedArray<Quaternion> |
makeQuaternionSparse(long count) |
static SegmentedArray<RationalNumber> |
makeRationalDense(long count) |
static SegmentedArray<RationalNumber> |
makeRationalSparse(long count) |
void |
modifyOne(long index,
UnaryFunction<N> modifier) |
void |
set(long index,
double value) |
void |
set(long index,
Number value) |
void |
visitOne(long index,
VoidFunction<N> visitor) |
indexOfLargest, indexOfLargestInRange, modifyAll, modifyRange, toString, visitAll, visitRange
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
daxpy, dot, elements, iterator, passMatching, stream, toRawCopy1D
forEach, spliterator
isAllSmall
passMatching
fillMatching, fillMatching, fillMatching, fillOneMatching
public static SegmentedArray<BigDecimal> makeBigDense(long count)
public static SegmentedArray<BigDecimal> makeBigSparse(long count)
public static SegmentedArray<ComplexNumber> makeComplexDense(long count)
public static SegmentedArray<ComplexNumber> makeComplexSparse(long count)
public static SegmentedArray<Double> makePrimitiveDense(long count)
public static SegmentedArray<Double> makePrimitiveSparse(long count)
public static SegmentedArray<Quaternion> makeQuaternionDense(long count)
public static SegmentedArray<Quaternion> makeQuaternionSparse(long count)
public static SegmentedArray<RationalNumber> makeRationalDense(long count)
public static SegmentedArray<RationalNumber> makeRationalSparse(long count)
public void add(long index, double addend)
public void add(long index, Number addend)
public long count()
public double doubleValue(long index)
public void fillAll(N value)
public void fillAll(NullaryFunction<N> supplier)
public void fillOne(long index, Access1D<?> values, long valueIndex)
public void fillOne(long index, N value)
public void fillOne(long index, NullaryFunction<N> supplier)
public void fillRange(long first, long limit, N value)
public void fillRange(long first, long limit, NullaryFunction<N> supplier)
public N get(long index)
public SegmentedArray<N> grow()
public boolean isAbsolute(long index)
Scalar.isAbsolute()
public boolean isSmall(long index, double comparedTo)
NormedVectorSpace.isSmall(double)
public void modifyOne(long index, UnaryFunction<N> modifier)
public void set(long index, double value)
public void set(long index, Number value)
public void visitOne(long index, VoidFunction<N> visitor)