public abstract class ScalarArray<N extends Number & Scalar<N>> extends ReferenceTypeArray<N>
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
data
MAX_ARRAY_SIZE
Modifier | Constructor and Description |
---|---|
protected |
ScalarArray(DenseArray.Factory<N> factory,
int length) |
protected |
ScalarArray(DenseArray.Factory<N> factory,
N[] data) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(int index,
double addend) |
protected void |
add(int index,
Number addend) |
void |
add(long index,
double addend) |
void |
add(long index,
Number addend) |
void |
axpy(double a,
Mutate1D y)
Will calculate y = y + a x, will add "a" times "this" to "y"
|
long |
count() |
double |
doubleValue(long index) |
protected void |
exchange(long firstA,
long firstB,
long step,
long count) |
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) |
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) |
N |
get(long index) |
protected int |
indexOfLargest(int first,
int limit,
int step) |
protected long |
indexOfLargest(long first,
long limit,
long step) |
protected boolean |
isAbsolute(int index) |
boolean |
isAbsolute(long index) |
protected 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(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) |
void |
modifyOne(long index,
UnaryFunction<N> modifier) |
void |
set(long index,
double value) |
void |
set(long index,
Number number) |
void |
sortAscending() |
void |
sortDescending() |
protected void |
visit(long first,
long limit,
long step,
VoidFunction<N> visitor) |
void |
visitOne(long index,
VoidFunction<N> visitor) |
copyOfData, doubleValue, equals, exchange, exchange, fill, fill, fill, fill, fill, fill, fill, fillMatching, fillMatching, fillMatching, fillOne, fillOne, fillOne, get, hashCode, invoke, invoke, invoke, invoke, invoke, invoke, modify, modify, modify, modify, modify, modify, modifyOne, reset, searchAscending, set, set, size, spliterator, visit, visitOne
indexOfLargest, indexOfLargestInRange, makeDecreasingRange, makeDecreasingRange, makeIncreasingRange, makeIncreasingRange, modifyAll, modifyMatching, modifyMatching, modifyRange, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyD
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
count, index, loopAll, loopMatching, loopRange, mapper
asCollectable1D, asPrimitive1D, byteValue, dot, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap, wrap
isAllSmall
copyComplexArgument, copyComplexImaginary, copyComplexModulus, copyComplexModulusAndArgument, copyComplexReal, copyComplexRealAndImaginary
protected ScalarArray(DenseArray.Factory<N> factory, int length)
protected ScalarArray(DenseArray.Factory<N> factory, N[] data)
public final void axpy(double a, Mutate1D y)
Access1D
a
- The scaley
- The "vector" to updatepublic final void sortAscending()
sortAscending
in interface Mutate1D.Sortable
public final void sortDescending()
sortDescending
in interface Mutate1D.Sortable
protected final void add(int index, double addend)
protected final void add(int index, Number addend)
protected final int indexOfLargest(int first, int limit, int step)
protected final boolean isAbsolute(int index)
Scalar.isAbsolute()
protected final boolean isSmall(int index, double comparedTo)
NormedVectorSpace.isSmall(double)
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 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 final long indexOfLargest(long first, long limit, long step)
indexOfLargest
in class BasicArray<N extends Number>
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 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.