Package org.ojalgo.array
Class ArrayR256
- java.lang.Object
-
- org.ojalgo.array.BasicArray<N>
-
- org.ojalgo.array.DenseArray<N>
-
- org.ojalgo.array.PlainArray<N>
-
- org.ojalgo.array.ReferenceTypeArray<java.math.BigDecimal>
-
- org.ojalgo.array.ArrayR256
-
- All Implemented Interfaces:
java.util.RandomAccess
,Access1D<java.math.BigDecimal>
,Access1D.Aggregatable<java.math.BigDecimal>
,Access1D.Collectable<java.math.BigDecimal,Mutate1D>
,Access1D.Visitable<java.math.BigDecimal>
,Factory1D.Builder<DenseArray<java.math.BigDecimal>>
,Mutate1D
,Mutate1D.Fillable<java.math.BigDecimal>
,Mutate1D.Modifiable<java.math.BigDecimal>
,Mutate1D.Sortable
,Structure1D
public class ArrayR256 extends ReferenceTypeArray<java.math.BigDecimal>
A one- and/or arbitrary-dimensional array of BigDecimal.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ojalgo.array.DenseArray
DenseArray.Factory<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends java.lang.Comparable<N>>, Access1D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends java.lang.Comparable<N>>, Access1D.SelectionView<N extends java.lang.Comparable<N>>, Access1D.Sliceable<N extends java.lang.Comparable<N>>, Access1D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends java.lang.Comparable<N>>, Mutate1D.Mixable<N extends java.lang.Comparable<N>>, Mutate1D.Modifiable<N extends java.lang.Comparable<N>>, Mutate1D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate1D.Receiver<N extends java.lang.Comparable<N>>, Mutate1D.Sortable
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,B>>, Structure1D.LongIndex, Structure1D.LoopCallback
-
-
Field Summary
Fields Modifier and Type Field Description static DenseArray.Factory<java.math.BigDecimal>
FACTORY
-
Fields inherited from class org.ojalgo.array.ReferenceTypeArray
data
-
Fields inherited from class org.ojalgo.array.PlainArray
CHARACTERISTICS, MAX_SIZE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(int index, double addend)
protected void
add(int index, java.lang.Comparable<?> addend)
void
axpy(double a, Mutate1D.Modifiable<?> y)
Will calculate y = y + a x, will add "a" times "this" to "y"byte
byteValue(int index)
double
doubleValue(int index)
protected void
fillOne(int index, Access1D<?> values, long valueIndex)
float
floatValue(int index)
protected int
indexOfLargest(int first, int limit, int step)
int
intValue(int index)
protected boolean
isAbsolute(int index)
protected boolean
isSmall(int index, double comparedTo)
long
longValue(int index)
static ArrayR256
make(int size)
void
set(int index, long value)
short
shortValue(int index)
void
sortAscending()
void
sortDescending()
static ArrayR256
wrap(java.math.BigDecimal... data)
-
Methods inherited from class org.ojalgo.array.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, visitOne
-
Methods inherited from class org.ojalgo.array.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, visitOne
-
Methods inherited from class org.ojalgo.array.DenseArray
build
-
Methods inherited from class org.ojalgo.array.BasicArray
aggregateRange, factory, getMathType, indexOfLargest, isPrimitive, modifyAll, modifyMatching, modifyMatching, modifyRange, supplyTo, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyD
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, dot, elements, nonzeros, select, supplyTo, toRawCopy1D
-
Methods inherited from interface org.ojalgo.structure.Access1D.Aggregatable
aggregateAll
-
Methods inherited from interface org.ojalgo.structure.Access1D.Collectable
collect
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Fillable
fillCompatible
-
Methods inherited from interface org.ojalgo.structure.Structure1D
count, size
-
-
-
-
Field Detail
-
FACTORY
public static final DenseArray.Factory<java.math.BigDecimal> FACTORY
-
-
Method Detail
-
make
public static ArrayR256 make(int size)
-
wrap
public static ArrayR256 wrap(java.math.BigDecimal... data)
-
axpy
public void axpy(double a, Mutate1D.Modifiable<?> y)
Description copied from interface:Access1D
Will 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:
byteValue
in interfaceAccess1D<java.math.BigDecimal>
- Specified by:
byteValue
in classPlainArray<java.math.BigDecimal>
-
doubleValue
public double doubleValue(int index)
- Specified by:
doubleValue
in interfaceAccess1D<java.math.BigDecimal>
- Overrides:
doubleValue
in classPlainArray<java.math.BigDecimal>
-
floatValue
public float floatValue(int index)
- Specified by:
floatValue
in interfaceAccess1D<java.math.BigDecimal>
- Specified by:
floatValue
in classPlainArray<java.math.BigDecimal>
-
intValue
public int intValue(int index)
- Specified by:
intValue
in interfaceAccess1D<java.math.BigDecimal>
- Overrides:
intValue
in classPlainArray<java.math.BigDecimal>
-
longValue
public long longValue(int index)
- Specified by:
longValue
in interfaceAccess1D<java.math.BigDecimal>
- Overrides:
longValue
in classPlainArray<java.math.BigDecimal>
-
set
public void set(int index, long value)
- Specified by:
set
in interfaceMutate1D
- Specified by:
set
in classPlainArray<java.math.BigDecimal>
-
shortValue
public short shortValue(int index)
- Specified by:
shortValue
in interfaceAccess1D<java.math.BigDecimal>
- Overrides:
shortValue
in classPlainArray<java.math.BigDecimal>
-
sortAscending
public void sortAscending()
- Specified by:
sortAscending
in interfaceMutate1D.Sortable
- Specified by:
sortAscending
in classPlainArray<java.math.BigDecimal>
-
sortDescending
public void sortDescending()
- Specified by:
sortDescending
in interfaceMutate1D.Sortable
- Specified by:
sortDescending
in classPlainArray<java.math.BigDecimal>
-
add
protected void add(int index, java.lang.Comparable<?> addend)
- Specified by:
add
in classPlainArray<java.math.BigDecimal>
-
add
protected void add(int index, double addend)
- Specified by:
add
in classPlainArray<java.math.BigDecimal>
-
fillOne
protected void fillOne(int index, Access1D<?> values, long valueIndex)
- Specified by:
fillOne
in classPlainArray<java.math.BigDecimal>
-
indexOfLargest
protected int indexOfLargest(int first, int limit, int step)
- Specified by:
indexOfLargest
in classPlainArray<java.math.BigDecimal>
-
isAbsolute
protected boolean isAbsolute(int index)
- Specified by:
isAbsolute
in classPlainArray<java.math.BigDecimal>
- See Also:
Scalar.isAbsolute()
-
isSmall
protected boolean isSmall(int index, double comparedTo)
- Specified by:
isSmall
in classPlainArray<java.math.BigDecimal>
- See Also:
NormedVectorSpace.isSmall(double)
-
-