public abstract class BufferArray extends DenseArray<N>
The odd member among the array implementations. It allows to create arrays based on memory mapped files or direct buffers.
DenseArray.Factory<N extends Number>
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
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Field and Description |
---|---|
static DenseArray.Factory<Double> |
DIRECT32 |
static DenseArray.Factory<Double> |
DIRECT64 |
MAX_ARRAY_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 |
close() |
long |
count() |
protected abstract double |
doubleValue(int index) |
double |
doubleValue(long index) |
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(BufferArray data,
Access1D<?> value) |
protected static void |
fill(BufferArray data,
int first,
int limit,
int step,
double value) |
protected static void |
fill(BufferArray data,
int first,
int limit,
int step,
NullaryFunction<?> 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) |
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) |
protected int |
indexOfLargest(int first,
int limit,
int step) |
protected long |
indexOfLargest(long first,
long limit,
long step) |
protected static void |
invoke(BufferArray data,
int first,
int limit,
int step,
Access1D<Double> left,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected static void |
invoke(BufferArray data,
int first,
int limit,
int step,
Access1D<Double> left,
BinaryFunction<Double> function,
double right) |
protected static void |
invoke(BufferArray data,
int first,
int limit,
int step,
Access1D<Double> value,
ParameterFunction<Double> function,
int aParam) |
protected static void |
invoke(BufferArray data,
int first,
int limit,
int step,
Access1D<Double> value,
UnaryFunction<Double> function) |
protected static void |
invoke(BufferArray data,
int first,
int limit,
int step,
double left,
BinaryFunction<Double> function,
Access1D<Double> right) |
protected static void |
invoke(BufferArray data,
int first,
int limit,
int step,
VoidFunction<Double> visitor) |
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 ArrayAnyD<Double> |
make(File file,
long... structure) |
static Array1D<Double> |
make(File file,
long count) |
static Array2D<Double> |
make(File file,
long rows,
long columns) |
static BufferArray |
make(int capacity) |
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) |
void |
reset()
Reset this mutable structure to some standard (all zeros) initial state.
|
protected int |
searchAscending(Double number) |
protected abstract 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 void |
sortAscending() |
protected 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 BufferArray |
wrap(DoubleBuffer data) |
static BufferArray |
wrap(FloatBuffer 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
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
fillMatching, fillMatching, fillMatching
index, loopAll, loopMatching, loopRange, mapper
public static final DenseArray.Factory<Double> DIRECT32
public static final DenseArray.Factory<Double> DIRECT64
public static BufferArray make(int capacity)
public static BufferArray wrap(DoubleBuffer data)
public static BufferArray wrap(FloatBuffer data)
protected static void fill(BufferArray data, Access1D<?> value)
protected static void fill(BufferArray data, int first, int limit, int step, double value)
protected static void fill(BufferArray data, int first, int limit, int step, NullaryFunction<?> supplier)
protected static void invoke(BufferArray data, int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function, Access1D<Double> right)
protected static void invoke(BufferArray data, int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function, double right)
protected static void invoke(BufferArray data, int first, int limit, int step, Access1D<Double> value, ParameterFunction<Double> function, int aParam)
protected static void invoke(BufferArray data, int first, int limit, int step, Access1D<Double> value, UnaryFunction<Double> function)
protected static void invoke(BufferArray data, int first, int limit, int step, double left, BinaryFunction<Double> function, Access1D<Double> right)
protected static void invoke(BufferArray data, int first, int limit, int step, VoidFunction<Double> visitor)
public void close()
public void reset()
Mutate1D
public int size()
protected void add(int index, double addend)
protected void add(int index, Number addend)
protected void exchange(int firstA, int firstB, int step, int count)
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 fillOne(int index, Access1D<?> values, long valueIndex)
protected void fillOne(int index, Double value)
protected void fillOne(int index, NullaryFunction<Double> supplier)
protected Double get(int index)
protected 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 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 modifyOne(int index, UnaryFunction<Double> modifier)
protected int searchAscending(Double number)
protected void set(int index, Number value)
protected void sortAscending()
protected void sortDescending()
protected 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 abstract double doubleValue(int index)
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 abstract void set(int index, double value)
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.