Class ArrayZ064
- All Implemented Interfaces:
RandomAccess, Access1D<Double>, Access1D.Aggregatable<Double>, Access1D.Collectable<Double,Mutate1D>, Access1D.Visitable<Double>, Factory1D.Builder<DenseArray<Double>>, Mutate1D, Mutate1D.Fillable<Double>, Mutate1D.Modifiable<Double>, Mutate1D.Sortable, Structure1D
A one- and/or arbitrary-dimensional array of double.
-
Nested Class Summary
Nested classes/interfaces inherited from class PrimitiveArray
PrimitiveArray.FactoryNested classes/interfaces inherited from class BasicArray
BasicArray.BaseFactory<N,A> Nested classes/interfaces inherited from interface Access1D
Access1D.Aggregatable<N>, Access1D.Collectable<N,R>, Access1D.ElementView<N>, Access1D.SelectionView<N>, Access1D.Sliceable<N>, Access1D.Visitable<N> Nested classes/interfaces inherited from interface Mutate1D
Mutate1D.Fillable<N>, Mutate1D.Mixable<N>, Mutate1D.Modifiable<N>, Mutate1D.ModifiableReceiver<N>, Mutate1D.Receiver<N>, Mutate1D.SortableNested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
FieldsFields inherited from class PlainArray
CHARACTERISTICS, MAX_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, double addend) voidadd(int index, long addend) protected voidadd(int index, Comparable<?> addend) bytebyteValue(int index) doubledoubleValue(int index) protected voidexchange(int firstA, int firstB, int step, int count) protected voidprotected voidfill(int first, int limit, int step, NullaryFunction<?> supplier) protected voidprotected voidfillOne(int index, NullaryFunction<?> supplier) protected voidfloatfloatValue(int index) final Doubleget(int index) protected intindexOfLargest(int first, int limit, int step) intintValue(int index) protected booleanisAbsolute(int index) protected booleanisSmall(int index, double comparedTo) longlongValue(int index) static ArrayZ064make(int size) protected voidmodify(int first, int limit, int step, BinaryFunction<Double> function, Access1D<Double> right) protected voidmodify(int first, int limit, int step, UnaryFunction<Double> function) protected voidmodify(int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function) (package private) voidmodify(long extIndex, int intIndex, BinaryFunction<Double> function, Access1D<Double> right) (package private) voidmodify(long extIndex, int intIndex, UnaryFunction<Double> function) (package private) voidmodify(long extIndex, int intIndex, Access1D<Double> left, BinaryFunction<Double> function) protected voidmodifyOne(int index, UnaryFunction<Double> modifier) voidreset()Reset this mutable structure to some standard (all zeros) initial state.protected intsearchAscending(Double number) voidset(int index, double value) voidset(int index, float value) voidset(int index, long value) protected voidset(int index, Comparable<?> number) shortshortValue(int index) voidvoidprotected voidvisit(int first, int limit, int step, VoidFunction<Double> visitor) protected voidvisitOne(int index, VoidFunction<Double> visitor) static ArrayZ064wrap(long... data) Methods inherited from class PrimitiveArray
wrap, wrapMethods inherited from class PlainArray
add, add, add, add, add, add, add, add, add, add, add, byteValue, count, doubleValue, exchange, fill, fill, fillAll, fillAll, fillRange, fillRange, floatValue, get, indexOfLargest, intValue, longValue, modify, modify, modify, modifyOne, set, set, set, set, set, set, set, set, set, set, shortValue, size, visit, visitOneMethods inherited from class DenseArray
buildMethods inherited from class BasicArray
aggregateRange, equals, factory, getMathType, hashCode, indexOfLargest, isPrimitive, modifyAll, modifyMatching, modifyMatching, modifyRange, supplyTo, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyDMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, dot, elements, nonzeros, select, supplyTo, toList, toRawCopy1DMethods inherited from interface Access1D.Aggregatable
aggregateAllMethods inherited from interface Access1D.Collectable
collectMethods inherited from interface Mutate1D.Fillable
fillCompatible, fillMatching, fillMatching, fillMatching, fillMatchingMethods inherited from interface Structure1D
count, size
-
Field Details
-
FACTORY
-
data
public final long[] data
-
-
Constructor Details
-
ArrayZ064
protected ArrayZ064(long[] data) Array not copied! No checking!
-
-
Method Details
-
make
-
wrap
-
add
public void add(int index, double addend) -
add
public void add(int index, long addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>- Overrides:
addin classPlainArray<Double>
-
byteValue
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<Double>- Overrides:
doubleValuein classPlainArray<Double>
-
floatValue
public float floatValue(int index) - Specified by:
floatValuein interfaceAccess1D<Double>- Specified by:
floatValuein classPlainArray<Double>
-
get
- Specified by:
getin classPlainArray<Double>
-
intValue
-
longValue
-
reset
public void reset()Description copied from interface:Mutate1DReset this mutable structure to some standard (all zeros) initial state. It must still be usuable after this call, and the structure/size/shape must not change. -
set
public void set(int index, double value) - Specified by:
setin interfaceMutate1D- Specified by:
setin classPlainArray<Double>
-
set
public void set(int index, float value) - Specified by:
setin interfaceMutate1D- Overrides:
setin classPlainArray<Double>
-
set
public void set(int index, long value) - Specified by:
setin interfaceMutate1D- Specified by:
setin classPlainArray<Double>
-
shortValue
public short shortValue(int index) - Specified by:
shortValuein interfaceAccess1D<Double>- Overrides:
shortValuein classPlainArray<Double>
-
sortAscending
public void sortAscending()- Specified by:
sortAscendingin interfaceMutate1D.Sortable- Specified by:
sortAscendingin classPlainArray<Double>
-
sortDescending
public void sortDescending()- Specified by:
sortDescendingin interfaceMutate1D.Sortable- Specified by:
sortDescendingin classPlainArray<Double>
-
add
- Specified by:
addin classPlainArray<Double>
-
exchange
protected void exchange(int firstA, int firstB, int step, int count) - Specified by:
exchangein classPlainArray<Double>
-
fill
- Specified by:
fillin classPlainArray<Double>
-
fill
- Specified by:
fillin classPlainArray<Double>
-
fillOne
- Specified by:
fillOnein classPlainArray<Double>
-
fillOne
- Specified by:
fillOnein classPlainArray<Double>
-
fillOne
- Specified by:
fillOnein classPlainArray<Double>
-
indexOfLargest
protected int indexOfLargest(int first, int limit, int step) - Specified by:
indexOfLargestin classPlainArray<Double>
-
isAbsolute
protected boolean isAbsolute(int index) - Specified by:
isAbsolutein classPlainArray<Double>- See Also:
-
isSmall
protected boolean isSmall(int index, double comparedTo) - Specified by:
isSmallin classPlainArray<Double>- See Also:
-
modify
protected void modify(int first, int limit, int step, Access1D<Double> left, BinaryFunction<Double> function) - Specified by:
modifyin classPlainArray<Double>
-
modify
protected void modify(int first, int limit, int step, BinaryFunction<Double> function, Access1D<Double> right) - Specified by:
modifyin classPlainArray<Double>
-
modify
- Specified by:
modifyin classPlainArray<Double>
-
modifyOne
- Specified by:
modifyOnein classPlainArray<Double>
-
searchAscending
- Specified by:
searchAscendingin classPlainArray<Double>
-
set
- Specified by:
setin classPlainArray<Double>
-
visit
- Specified by:
visitin classPlainArray<Double>
-
visitOne
- Specified by:
visitOnein classPlainArray<Double>
-
modify
- Specified by:
modifyin classDenseArray<Double>
-
modify
- Specified by:
modifyin classDenseArray<Double>
-
modify
- Specified by:
modifyin classDenseArray<Double>
-