Class ArrayR256
- All Implemented Interfaces:
RandomAccess, Access1D<BigDecimal>, Access1D.Aggregatable<BigDecimal>, Access1D.Collectable<BigDecimal, Mutate1D>, Access1D.Visitable<BigDecimal>, Factory1D.Builder<DenseArray<BigDecimal>>, Mutate1D, Mutate1D.Fillable<BigDecimal>, Mutate1D.Modifiable<BigDecimal>, Mutate1D.Sortable, Structure1D
A one- and/or arbitrary-dimensional array of BigDecimal.
-
Nested Class Summary
Nested classes/interfaces inherited from class ReferenceTypeArray
ReferenceTypeArray.Factory<N>Nested 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 ReferenceTypeArray
dataFields inherited from class PlainArray
CHARACTERISTICS, MAX_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, double addend) protected voidadd(int index, Comparable<?> addend) voidaxpy(double a, Mutate1D.Modifiable<?> y) Will calculate y = y + a x, will add "a" times "this" to "y"bytebyteValue(int index) doubledoubleValue(int index) protected voidfloatfloatValue(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 ArrayR256make(int size) voidset(int index, long value) shortshortValue(int index) voidvoidstatic ArrayR256wrap(BigDecimal... data) Methods inherited from class ReferenceTypeArray
copyOfData, equals, exchange, fill, fill, fillMatching, fillMatching, fillMatching, fillOne, fillOne, get, hashCode, modify, modify, modify, modify, modify, modify, modifyOne, reset, searchAscending, set, set, set, spliterator, valueOf, valueOf, valueOf, visit, visitOneMethods inherited from class PlainArray
add, 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, factory, getMathType, indexOfLargest, isPrimitive, modifyAll, modifyMatching, modifyMatching, modifyRange, supplyTo, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyDMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, 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, fillMatchingMethods inherited from interface Structure1D
count, size
-
Field Details
-
FACTORY
-
-
Constructor Details
-
ArrayR256
-
-
Method Details
-
make
-
wrap
-
add
public void add(int index, double addend) -
axpy
Description copied from interface:Access1DWill calculate y = y + a x, will add "a" times "this" to "y"- Parameters:
a- The scaley- The "vector" to update
-
byteValue
public byte byteValue(int index) - Specified by:
byteValuein interfaceAccess1D<BigDecimal>- Specified by:
byteValuein classPlainArray<BigDecimal>
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<BigDecimal>- Overrides:
doubleValuein classPlainArray<BigDecimal>
-
floatValue
public float floatValue(int index) - Specified by:
floatValuein interfaceAccess1D<BigDecimal>- Specified by:
floatValuein classPlainArray<BigDecimal>
-
intValue
public int intValue(int index) - Specified by:
intValuein interfaceAccess1D<BigDecimal>- Overrides:
intValuein classPlainArray<BigDecimal>
-
longValue
public long longValue(int index) - Specified by:
longValuein interfaceAccess1D<BigDecimal>- Overrides:
longValuein classPlainArray<BigDecimal>
-
set
public void set(int index, long value) - Specified by:
setin interfaceMutate1D- Specified by:
setin classPlainArray<BigDecimal>
-
shortValue
public short shortValue(int index) - Specified by:
shortValuein interfaceAccess1D<BigDecimal>- Overrides:
shortValuein classPlainArray<BigDecimal>
-
sortAscending
public void sortAscending()- Specified by:
sortAscendingin interfaceMutate1D.Sortable- Specified by:
sortAscendingin classPlainArray<BigDecimal>
-
sortDescending
public void sortDescending()- Specified by:
sortDescendingin interfaceMutate1D.Sortable- Specified by:
sortDescendingin classPlainArray<BigDecimal>
-
add
- Specified by:
addin classPlainArray<BigDecimal>
-
fillOne
- Specified by:
fillOnein classPlainArray<BigDecimal>
-
indexOfLargest
protected int indexOfLargest(int first, int limit, int step) - Specified by:
indexOfLargestin classPlainArray<BigDecimal>
-
isAbsolute
protected boolean isAbsolute(int index) - Specified by:
isAbsolutein classPlainArray<BigDecimal>- See Also:
-
isSmall
protected boolean isSmall(int index, double comparedTo) - Specified by:
isSmallin classPlainArray<BigDecimal>- See Also:
-