public abstract class PrimitiveArray extends DenseArray<N> implements Mutate1D.Sortable
DenseArray.Factory<N extends Number>
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, Structure1D.LongIndex, Structure1D.LoopCallback
Access1D.Aggregatable<N extends Number>, Access1D.Collectable<N extends Number,R extends Mutate1D.Receiver<N>>, Access1D.Elements, Access1D.ElementView<N extends Number>, Access1D.IndexOf, Access1D.Sliceable<N extends Number>, Access1D.Visitable<N extends Number>
Mutate1D.Fillable<N extends Number>, Mutate1D.Mixable<N extends Number>, Mutate1D.Modifiable<N extends Number>, Mutate1D.ModifiableReceiver<N extends Number>, Mutate1D.Receiver<N extends Number>, Mutate1D.Sortable
MAX_ARRAY_SIZE
Modifier and Type | Method and Description |
---|---|
protected abstract void |
add(int index,
double addend) |
protected abstract void |
add(int index,
Number addend) |
void |
add(long index,
double addend) |
void |
add(long index,
Number addend) |
long |
count() |
protected abstract double |
doubleValue(int index) |
double |
doubleValue(long index) |
protected abstract void |
exchange(int firstA,
int firstB,
int step,
int count) |
protected void |
exchange(long firstA,
long firstB,
long step,
long count) |
protected abstract void |
fill(int first,
int limit,
Access1D<N> left,
BinaryFunction<N> function,
Access1D<N> right) |
protected abstract void |
fill(int first,
int limit,
Access1D<N> left,
BinaryFunction<N> function,
N right) |
protected abstract void |
fill(int first,
int limit,
int step,
N value) |
protected abstract void |
fill(int first,
int limit,
int step,
NullaryFunction<N> supplier) |
protected abstract void |
fill(int first,
int limit,
N left,
BinaryFunction<N> function,
Access1D<N> right) |
protected void |
fill(long first,
long limit,
long step,
N value) |
protected void |
fill(long first,
long limit,
long step,
NullaryFunction<N> supplier) |
void |
fillAll(N number) |
void |
fillAll(NullaryFunction<N> supplier) |
protected abstract void |
fillOne(int index,
Access1D<?> values,
long valueIndex) |
protected abstract void |
fillOne(int index,
N value) |
protected abstract void |
fillOne(int index,
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 number) |
void |
fillRange(long first,
long limit,
NullaryFunction<N> supplier) |
protected abstract N |
get(int index) |
N |
get(long index) |
protected abstract int |
indexOfLargest(int first,
int limit,
int step) |
protected long |
indexOfLargest(long first,
long limit,
long step) |
protected abstract boolean |
isAbsolute(int index) |
boolean |
isAbsolute(long index) |
protected abstract boolean |
isSmall(int index,
double comparedTo) |
boolean |
isSmall(long index,
double comparedTo) |
protected boolean |
isSmall(long first,
long limit,
long step,
double comparedTo) |
static PrimitiveArray |
make(int size) |
protected abstract void |
modify(int first,
int limit,
int step,
Access1D<N> left,
BinaryFunction<N> function) |
protected abstract void |
modify(int first,
int limit,
int step,
BinaryFunction<N> function,
Access1D<N> right) |
protected abstract void |
modify(int first,
int limit,
int step,
BinaryFunction<N> function,
N right) |
protected abstract void |
modify(int first,
int limit,
int step,
N left,
BinaryFunction<N> function) |
protected abstract void |
modify(int first,
int limit,
int step,
ParameterFunction<N> function,
int parameter) |
protected abstract void |
modify(int first,
int limit,
int step,
UnaryFunction<N> function) |
protected void |
modify(long first,
long limit,
long step,
Access1D<N> left,
BinaryFunction<N> function) |
protected void |
modify(long first,
long limit,
long step,
BinaryFunction<N> function,
Access1D<N> right) |
protected void |
modify(long first,
long limit,
long step,
UnaryFunction<N> function) |
protected abstract void |
modifyOne(int index,
UnaryFunction<N> modifier) |
void |
modifyOne(long index,
UnaryFunction<N> modifier) |
void |
reset()
Reset this mutable structure to some standard (all zeros) initial state.
|
protected abstract int |
searchAscending(N number) |
protected abstract void |
set(int index,
double value) |
protected abstract void |
set(int index,
Number number) |
void |
set(long index,
double value) |
void |
set(long index,
Number number) |
protected abstract void |
sortAscending() |
protected abstract void |
sortDescending() |
protected abstract void |
visit(int first,
int limit,
int step,
VoidFunction<N> visitor) |
protected void |
visit(long first,
long limit,
long step,
VoidFunction<N> visitor) |
protected abstract void |
visitOne(int index,
VoidFunction<N> visitor) |
void |
visitOne(long index,
VoidFunction<N> visitor) |
static PrimitiveArray |
wrap(double... data) |
static PrimitiveArray |
wrap(float... data) |
indexOfLargest, indexOfLargestInRange, makeDecreasingRange, makeDecreasingRange, makeIncreasingRange, makeIncreasingRange, modifyAll, modifyMatching, modifyMatching, modifyRange, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyD
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
sortAscending, sortDescending
count, index, loopAll, loopMatching, loopRange, mapper, size
asCollectable1D, asPrimitive1D, axpy, byteValue, dot, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap
isAllSmall
copyComplexArgument, copyComplexImaginary, copyComplexModulus, copyComplexModulusAndArgument, copyComplexReal, copyComplexRealAndImaginary
fillMatching, fillMatching, fillMatching
public static PrimitiveArray make(int size)
public static PrimitiveArray wrap(double... data)
public static PrimitiveArray wrap(float... data)
public final void reset()
Mutate1D
public final long count()
count
in interface Structure1D
public final double doubleValue(long index)
doubleValue
in interface Access1D<N extends Number>
public final void fillAll(N number)
fillAll
in interface Mutate1D.Fillable<N extends Number>
public final void fillAll(NullaryFunction<N> supplier)
fillAll
in interface Mutate1D.Fillable<N extends Number>
public final void fillOne(long index, Access1D<?> values, long valueIndex)
fillOne
in interface Mutate1D.Fillable<N extends Number>
public void fillOne(long index, N value)
fillOne
in interface Mutate1D.Fillable<N extends Number>
public void fillOne(long index, NullaryFunction<N> supplier)
fillOne
in interface Mutate1D.Fillable<N extends Number>
public final void fillRange(long first, long limit, N number)
fillRange
in interface Mutate1D.Fillable<N extends Number>
public final void fillRange(long first, long limit, NullaryFunction<N> supplier)
fillRange
in interface Mutate1D.Fillable<N extends Number>
public final boolean isAbsolute(long index)
isAbsolute
in interface Access1D.Elements
Scalar.isAbsolute()
public final boolean isSmall(long index, double comparedTo)
isSmall
in interface Access1D.Elements
NormedVectorSpace.isSmall(double)
public final void modifyOne(long index, UnaryFunction<N> modifier)
modifyOne
in interface Mutate1D.Modifiable<N extends Number>
public void visitOne(long index, VoidFunction<N> visitor)
visitOne
in interface Access1D.Visitable<N extends Number>
protected abstract void add(int index, double addend)
protected abstract void add(int index, Number addend)
protected abstract double doubleValue(int index)
protected abstract void exchange(int firstA, int firstB, int step, int count)
protected final void exchange(long firstA, long firstB, long step, long count)
exchange
in class BasicArray<N extends Number>
protected abstract void fill(int first, int limit, Access1D<N> left, BinaryFunction<N> function, Access1D<N> right)
protected abstract void fill(int first, int limit, Access1D<N> left, BinaryFunction<N> function, N right)
protected abstract void fill(int first, int limit, int step, N value)
protected abstract void fill(int first, int limit, int step, NullaryFunction<N> supplier)
protected abstract void fill(int first, int limit, N left, BinaryFunction<N> function, Access1D<N> right)
protected final void fill(long first, long limit, long step, N value)
fill
in class BasicArray<N extends Number>
protected final void fill(long first, long limit, long step, NullaryFunction<N> supplier)
fill
in class BasicArray<N extends Number>
protected abstract void fillOne(int index, Access1D<?> values, long valueIndex)
protected abstract void fillOne(int index, N value)
protected abstract void fillOne(int index, NullaryFunction<N> supplier)
protected abstract N get(int index)
protected abstract int indexOfLargest(int first, int limit, int step)
protected final long indexOfLargest(long first, long limit, long step)
indexOfLargest
in class BasicArray<N extends Number>
protected abstract boolean isAbsolute(int index)
Scalar.isAbsolute()
protected abstract boolean isSmall(int index, double comparedTo)
NormedVectorSpace.isSmall(double)
protected final boolean isSmall(long first, long limit, long step, double comparedTo)
isSmall
in class BasicArray<N extends Number>
protected abstract void modify(int first, int limit, int step, Access1D<N> left, BinaryFunction<N> function)
protected abstract void modify(int first, int limit, int step, BinaryFunction<N> function, Access1D<N> right)
protected abstract void modify(int first, int limit, int step, BinaryFunction<N> function, N right)
protected abstract void modify(int first, int limit, int step, N left, BinaryFunction<N> function)
protected abstract void modify(int first, int limit, int step, ParameterFunction<N> function, int parameter)
protected abstract void modify(int first, int limit, int step, UnaryFunction<N> function)
protected final void modify(long first, long limit, long step, Access1D<N> left, BinaryFunction<N> function)
modify
in class BasicArray<N extends Number>
protected final void modify(long first, long limit, long step, BinaryFunction<N> function, Access1D<N> right)
modify
in class BasicArray<N extends Number>
protected final void modify(long first, long limit, long step, UnaryFunction<N> function)
modify
in class BasicArray<N extends Number>
protected abstract void modifyOne(int index, UnaryFunction<N> modifier)
protected abstract int searchAscending(N number)
protected abstract void set(int index, double value)
protected abstract void set(int index, Number number)
protected abstract void sortAscending()
protected abstract void sortDescending()
protected abstract void visit(int first, int limit, int step, VoidFunction<N> visitor)
protected final void visit(long first, long limit, long step, VoidFunction<N> visitor)
visit
in class BasicArray<N extends Number>
protected abstract void visitOne(int index, VoidFunction<N> visitor)
Copyright © 2019 Optimatika. All rights reserved.