public abstract class ReferenceTypeArray<N extends Number> 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
Modifier and Type | Field and Description |
---|---|
N[] |
data |
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) |
protected N[] |
copyOfData() |
long |
count() |
protected double |
doubleValue(int index) |
double |
doubleValue(long index) |
boolean |
equals(Object anObj) |
protected void |
exchange(int firstA,
int firstB,
int step,
int count) |
protected void |
exchange(long firstA,
long firstB,
long step,
long count) |
protected static <N extends Number> |
exchange(N[] data,
int firstA,
int firstB,
int step,
int aCount) |
protected void |
fill(int first,
int limit,
Access1D<N> left,
BinaryFunction<N> function,
Access1D<N> right) |
protected void |
fill(int first,
int limit,
Access1D<N> left,
BinaryFunction<N> function,
N right) |
protected void |
fill(int first,
int limit,
int step,
N value) |
protected void |
fill(int first,
int limit,
int step,
NullaryFunction<N> supplier) |
protected 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) |
protected static <N extends Number> |
fill(N[] data,
int first,
int limit,
int step,
N value) |
protected static <N extends Number> |
fill(N[] data,
int first,
int limit,
int step,
NullaryFunction<N> supplier) |
void |
fillAll(N number) |
void |
fillAll(NullaryFunction<N> supplier) |
void |
fillMatching(Access1D<?> values)
Will fill the elements of [this] with the corresponding input values, and in the process (if
necessary) convert the elements to the correct type:
|
void |
fillMatching(Access1D<N> left,
BinaryFunction<N> function,
Access1D<N> right) |
void |
fillMatching(UnaryFunction<N> function,
Access1D<N> arguments) |
protected void |
fillOne(int index,
Access1D<?> values,
long valueIndex) |
protected void |
fillOne(int index,
N value) |
protected 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 N |
get(int index) |
N |
get(long index) |
int |
hashCode() |
protected abstract int |
indexOfLargest(int first,
int limit,
int step) |
protected long |
indexOfLargest(long first,
long limit,
long step) |
protected static <N extends Number> |
invoke(N[] data,
int first,
int limit,
int step,
Access1D<N> left,
BinaryFunction<N> function,
Access1D<N> right) |
protected static <N extends Number> |
invoke(N[] data,
int first,
int limit,
int step,
Access1D<N> left,
BinaryFunction<N> function,
N right) |
protected static <N extends Number> |
invoke(N[] data,
int first,
int limit,
int step,
Access1D<N> value,
ParameterFunction<N> function,
int aParam) |
protected static <N extends Number> |
invoke(N[] data,
int first,
int limit,
int step,
Access1D<N> value,
UnaryFunction<N> function) |
protected static <N extends Number> |
invoke(N[] data,
int first,
int limit,
int step,
N left,
BinaryFunction<N> function,
Access1D<N> right) |
protected static <N extends Number> |
invoke(N[] data,
int first,
int limit,
int step,
VoidFunction<N> aVisitor) |
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) |
protected void |
modify(int first,
int limit,
int step,
Access1D<N> left,
BinaryFunction<N> function) |
protected void |
modify(int first,
int limit,
int step,
BinaryFunction<N> function,
Access1D<N> right) |
protected void |
modify(int first,
int limit,
int step,
BinaryFunction<N> function,
N right) |
protected void |
modify(int first,
int limit,
int step,
N left,
BinaryFunction<N> function) |
protected void |
modify(int first,
int limit,
int step,
ParameterFunction<N> function,
int parameter) |
protected 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 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 int |
searchAscending(N value) |
protected void |
set(int index,
double value) |
protected void |
set(int index,
Number value) |
void |
set(long index,
double value) |
void |
set(long index,
Number number) |
int |
size() |
protected abstract void |
sortAscending() |
protected abstract void |
sortDescending() |
Spliterator<N> |
spliterator() |
protected void |
visit(int first,
int limit,
int step,
VoidFunction<N> visitor) |
protected void |
visit(long first,
long limit,
long step,
VoidFunction<N> visitor) |
protected void |
visitOne(int index,
VoidFunction<N> visitor) |
void |
visitOne(long index,
VoidFunction<N> visitor) |
indexOfLargest, indexOfLargestInRange, makeDecreasingRange, makeDecreasingRange, makeIncreasingRange, makeIncreasingRange, modifyAll, modifyMatching, modifyMatching, modifyRange, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyD
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
sortAscending, sortDescending
count, index, loopAll, loopMatching, loopRange, mapper
asCollectable1D, asPrimitive1D, axpy, byteValue, dot, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap, wrap
isAllSmall
copyComplexArgument, copyComplexImaginary, copyComplexModulus, copyComplexModulusAndArgument, copyComplexReal, copyComplexRealAndImaginary
protected static <N extends Number> void exchange(N[] data, int firstA, int firstB, int step, int aCount)
protected static <N extends Number> void fill(N[] data, int first, int limit, int step, N value)
protected static <N extends Number> void fill(N[] data, int first, int limit, int step, NullaryFunction<N> supplier)
protected static <N extends Number> void invoke(N[] data, int first, int limit, int step, Access1D<N> left, BinaryFunction<N> function, Access1D<N> right)
protected static <N extends Number> void invoke(N[] data, int first, int limit, int step, Access1D<N> left, BinaryFunction<N> function, N right)
protected static <N extends Number> void invoke(N[] data, int first, int limit, int step, Access1D<N> value, ParameterFunction<N> function, int aParam)
protected static <N extends Number> void invoke(N[] data, int first, int limit, int step, Access1D<N> value, UnaryFunction<N> function)
protected static <N extends Number> void invoke(N[] data, int first, int limit, int step, N left, BinaryFunction<N> function, Access1D<N> right)
protected static <N extends Number> void invoke(N[] data, int first, int limit, int step, VoidFunction<N> aVisitor)
public void fillMatching(Access1D<?> values)
Mutate1D.Fillable
Will fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:
this(i) = values(i)
fillMatching
in interface Mutate1D.Fillable<N extends Number>
public void fillMatching(Access1D<N> left, BinaryFunction<N> function, Access1D<N> right)
fillMatching
in interface Mutate1D.Fillable<N extends Number>
public void fillMatching(UnaryFunction<N> function, Access1D<N> arguments)
fillMatching
in interface Mutate1D.Fillable<N extends Number>
public final void reset()
Mutate1D
public final int size()
size
in interface Structure1D
public final Spliterator<N> spliterator()
protected final N[] copyOfData()
protected final double doubleValue(int index)
protected final void exchange(int firstA, int firstB, int step, int count)
protected final void fill(int first, int limit, Access1D<N> left, BinaryFunction<N> function, Access1D<N> right)
protected final void fill(int first, int limit, Access1D<N> left, BinaryFunction<N> function, N right)
protected final void fill(int first, int limit, int step, N value)
protected final void fill(int first, int limit, int step, NullaryFunction<N> supplier)
protected final void fill(int first, int limit, N left, BinaryFunction<N> function, Access1D<N> right)
protected final void fillOne(int index, Access1D<?> values, long valueIndex)
protected final void fillOne(int index, N value)
protected final void fillOne(int index, NullaryFunction<N> supplier)
protected final N get(int index)
protected final void modify(int first, int limit, int step, Access1D<N> left, BinaryFunction<N> function)
protected final void modify(int first, int limit, int step, BinaryFunction<N> function, Access1D<N> right)
protected final void modify(int first, int limit, int step, BinaryFunction<N> function, N right)
protected final void modify(int first, int limit, int step, N left, BinaryFunction<N> function)
protected final void modify(int first, int limit, int step, ParameterFunction<N> function, int parameter)
protected final void modify(int first, int limit, int step, UnaryFunction<N> function)
protected final void modifyOne(int index, UnaryFunction<N> modifier)
protected final int searchAscending(N value)
protected final void set(int index, double value)
protected final void set(int index, Number value)
protected final void visit(int first, int limit, int step, VoidFunction<N> visitor)
protected void visitOne(int index, VoidFunction<N> visitor)
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 final void exchange(long firstA, long firstB, long step, long count)
exchange
in class BasicArray<N extends Number>
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 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 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 sortAscending()
protected abstract void sortDescending()
protected final void visit(long first, long limit, long step, VoidFunction<N> visitor)
visit
in class BasicArray<N extends Number>
Copyright © 2019 Optimatika. All rights reserved.