Package org.ojalgo.array
Class DenseArray<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.array.BasicArray<N>
-
- org.ojalgo.array.DenseArray<N>
-
- All Implemented Interfaces:
Access1D<N>
,Access1D.Aggregatable<N>
,Access1D.Collectable<N,Mutate1D>
,Access1D.Visitable<N>
,Factory1D.Builder<DenseArray<N>>
,Mutate1D
,Mutate1D.Fillable<N>
,Mutate1D.Modifiable<N>
,Structure1D
- Direct Known Subclasses:
OffHeapArray
,PlainArray
public abstract class DenseArray<N extends java.lang.Comparable<N>> extends BasicArray<N> implements Factory1D.Builder<DenseArray<N>>
Each and every element occupies memory and holds a value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DenseArray(DenseArray.Factory<N> factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DenseArray<N>
build()
(package private) abstract void
modify(long extIndex, int intIndex, BinaryFunction<N> function, Access1D<N> right)
(package private) abstract void
modify(long extIndex, int intIndex, UnaryFunction<N> function)
(package private) abstract void
modify(long extIndex, int intIndex, Access1D<N> left, BinaryFunction<N> function)
-
Methods inherited from class org.ojalgo.array.BasicArray
aggregateRange, equals, exchange, factory, fill, fill, getMathType, hashCode, indexOfLargest, indexOfLargest, isPrimitive, modify, modify, modify, modifyAll, modifyMatching, modifyMatching, modifyRange, supplyTo, toString, visit, 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, axpy, byteValue, byteValue, dot, doubleValue, doubleValue, elements, floatValue, floatValue, get, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, 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.Access1D.Visitable
visitOne
-
Methods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, set, set, set
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Fillable
fillAll, fillAll, fillCompatible, fillMatching, fillMatching, fillMatching, fillRange, fillRange
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Modifiable
add, add, add, add, add, add, add, modifyOne
-
Methods inherited from interface org.ojalgo.structure.Structure1D
count, size
-
-
-
-
Constructor Detail
-
DenseArray
protected DenseArray(DenseArray.Factory<N> factory)
-
-
Method Detail
-
build
public DenseArray<N> build()
- Specified by:
build
in interfaceFactory1D.Builder<N extends java.lang.Comparable<N>>
-
modify
abstract void modify(long extIndex, int intIndex, Access1D<N> left, BinaryFunction<N> function)
-
modify
abstract void modify(long extIndex, int intIndex, BinaryFunction<N> function, Access1D<N> right)
-
modify
abstract void modify(long extIndex, int intIndex, UnaryFunction<N> function)
-
-