public class Primitive32Array extends PrimitiveArray
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 |
---|---|
float[] |
data |
static DenseArray.Factory<Double> |
FACTORY |
MAX_ARRAY_SIZE
Modifier | Constructor and Description |
---|---|
protected |
Primitive32Array(float[] data)
Array not copied! No checking!
|
protected |
Primitive32Array(int size) |
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"
|
protected float[] |
copyOfData() |
long |
count() |
double |
dot(Access1D<?> vector)
Will calculate and return the dot product of this 1D-structure and another input 1D-vector.
|
protected double |
doubleValue(int index) |
double |
doubleValue(long index) |
boolean |
equals(Object anObj) |
protected static void |
exchange(float[] data,
int firstA,
int firstB,
int step,
int count) |
protected void |
exchange(int firstA,
int firstB,
int step,
int count) |
protected void |
exchange(long firstA,
long firstB,
long step,
long count) |
protected static void |
fill(float[] data,
Access1D<?> values) |
protected static void |
fill(float[] data,
int first,
int limit,
int step,
float value) |
protected static void |
fill(float[] data,
int first,
int limit,
int step,
NullaryFunction<Double> supplier) |
protected void |
fill(int first,
int limit,
Access1D<Double> left,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected void |
fill(int first,
int limit,
Access1D<Double> left,
BinaryFunction<Double> function,
Double right) |
protected void |
fill(int first,
int limit,
Double left,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected void |
fill(int first,
int limit,
int step,
Double value) |
protected void |
fill(int first,
int limit,
int step,
NullaryFunction<Double> supplier) |
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 |
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<Double> left,
BinaryFunction<Double> function,
Access1D<Double> right) |
void |
fillMatching(UnaryFunction<Double> function,
Access1D<Double> arguments) |
protected void |
fillOne(int index,
Access1D<?> values,
long valueIndex) |
protected void |
fillOne(int index,
Double value) |
protected void |
fillOne(int index,
NullaryFunction<Double> 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 Double |
get(int index) |
N |
get(long index) |
int |
hashCode() |
protected int |
indexOfLargest(int first,
int limit,
int step) |
protected long |
indexOfLargest(long first,
long limit,
long step) |
protected static void |
invoke(float[] data,
int first,
int limit,
int step,
Access1D<Double> left,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected static void |
invoke(float[] data,
int first,
int limit,
int step,
Access1D<Double> left,
BinaryFunction<Double> function,
double right) |
protected static void |
invoke(float[] data,
int first,
int limit,
int step,
Access1D<Double> values,
ParameterFunction<Double> function,
int aParam) |
protected static void |
invoke(float[] data,
int first,
int limit,
int step,
Access1D<Double> values,
UnaryFunction<Double> function) |
protected static void |
invoke(float[] data,
int first,
int limit,
int step,
double left,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected static void |
invoke(float[] data,
int first,
int limit,
int step,
VoidFunction<Double> aVisitor) |
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) |
static Primitive32Array |
make(int size) |
protected void |
modify(int first,
int limit,
int step,
Access1D<Double> left,
BinaryFunction<Double> function) |
protected void |
modify(int first,
int limit,
int step,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected void |
modify(int first,
int limit,
int step,
BinaryFunction<Double> function,
Double right) |
protected void |
modify(int first,
int limit,
int step,
Double left,
BinaryFunction<Double> function) |
protected void |
modify(int first,
int limit,
int step,
ParameterFunction<Double> function,
int parameter) |
protected void |
modify(int first,
int limit,
int step,
UnaryFunction<Double> 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<Double> modifier) |
void |
modifyOne(long index,
UnaryFunction<N> modifier) |
protected int |
searchAscending(Double number) |
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() |
void |
sortAscending() |
void |
sortDescending() |
protected void |
visit(int first,
int limit,
int step,
VoidFunction<Double> visitor) |
protected void |
visit(long first,
long limit,
long step,
VoidFunction<N> visitor) |
protected void |
visitOne(int index,
VoidFunction<Double> visitor) |
void |
visitOne(long index,
VoidFunction<N> visitor) |
static Primitive32Array |
wrap(float... data) |
reset, wrap
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, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap
isAllSmall
copyComplexArgument, copyComplexImaginary, copyComplexModulus, copyComplexModulusAndArgument, copyComplexReal, copyComplexRealAndImaginary
public static final DenseArray.Factory<Double> FACTORY
public final float[] data
protected Primitive32Array(float[] data)
protected Primitive32Array(int size)
public static final Primitive32Array make(int size)
public static final Primitive32Array wrap(float... data)
protected static void exchange(float[] data, int firstA, int firstB, int step, int count)
protected static void fill(float[] data, Access1D<?> values)
protected static void fill(float[] data, int first, int limit, int step, float value)
protected static void fill(float[] data, int first, int limit, int step, NullaryFunction<Double> supplier)
protected static void invoke(float[] data, int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function, Access1D<Double> right)
protected static void invoke(float[] data, int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function, double right)
protected static void invoke(float[] data, int first, int limit, int step, Access1D<Double> values, ParameterFunction<Double> function, int aParam)
protected static void invoke(float[] data, int first, int limit, int step, Access1D<Double> values, UnaryFunction<Double> function)
protected static void invoke(float[] data, int first, int limit, int step, double left, BinaryFunction<Double> function, Access1D<Double> right)
protected static void invoke(float[] data, int first, int limit, int step, VoidFunction<Double> aVisitor)
public void axpy(double a, Mutate1D y)
Access1D
a
- The scaley
- The "vector" to updatepublic double dot(Access1D<?> vector)
Access1D
vector
- Another 1D-structurepublic 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)
public void fillMatching(Access1D<Double> left, BinaryFunction<Double> function, Access1D<Double> right)
public void fillMatching(UnaryFunction<Double> function, Access1D<Double> arguments)
public int size()
public final void sortAscending()
sortAscending
in interface Mutate1D.Sortable
public void sortDescending()
sortDescending
in interface Mutate1D.Sortable
protected void add(int index, double addend)
protected void add(int index, Number addend)
protected final float[] 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<Double> left, BinaryFunction<Double> function, Access1D<Double> right)
protected final void fill(int first, int limit, Access1D<Double> left, BinaryFunction<Double> function, Double right)
protected final void fill(int first, int limit, Double left, BinaryFunction<Double> function, Access1D<Double> right)
protected final void fill(int first, int limit, int step, Double value)
protected final void fill(int first, int limit, int step, NullaryFunction<Double> supplier)
protected void fillOne(int index, Access1D<?> values, long valueIndex)
protected void fillOne(int index, Double value)
protected void fillOne(int index, NullaryFunction<Double> supplier)
protected final Double get(int index)
protected final int indexOfLargest(int first, int limit, int step)
protected boolean isAbsolute(int index)
Scalar.isAbsolute()
protected boolean isSmall(int index, double comparedTo)
NormedVectorSpace.isSmall(double)
protected final void modify(int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function)
protected final void modify(int first, int limit, int step, BinaryFunction<Double> function, Access1D<Double> right)
protected final void modify(int first, int limit, int step, BinaryFunction<Double> function, Double right)
protected final void modify(int first, int limit, int step, Double left, BinaryFunction<Double> function)
protected final void modify(int first, int limit, int step, ParameterFunction<Double> function, int parameter)
protected final void modify(int first, int limit, int step, UnaryFunction<Double> function)
protected final void modifyOne(int index, UnaryFunction<Double> modifier)
protected final int searchAscending(Double number)
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<Double> visitor)
protected void visitOne(int index, VoidFunction<Double> 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 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.