- All Implemented Interfaces:
AutoCloseable,RandomAccess,Access1D<Double>,Access1D.Aggregatable<Double>,Access1D.Collectable<Double,,Mutate1D> Access1D.Visitable<Double>,Factory1D.Builder<DenseArray<Double>>,Mutate1D,Mutate1D.Fillable<Double>,Mutate1D.Modifiable<Double>,Structure1D
- Direct Known Subclasses:
BufferR032,BufferR064,BufferZ008,BufferZ016,BufferZ032,BufferZ064
The odd member among the array implementations. It allows to create arrays based on memory mapped files or direct buffers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfacestatic final classNested classes/interfaces inherited from class org.ojalgo.array.BasicArray
BasicArray.BaseFactory<N extends Comparable<N>,A extends BasicArray<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends Comparable<N>>, Mutate1D.Mixable<N extends Comparable<N>>, Mutate1D.Modifiable<N extends Comparable<N>>, Mutate1D.ModifiableReceiver<N extends Comparable<N>>, Mutate1D.Receiver<N extends Comparable<N>>, Mutate1D.SortableNested 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
FieldsModifier and TypeFieldDescriptionprivate final Bufferprivate final AutoCloseablestatic final BufferArray.Factorystatic final BufferArray.Factorystatic final BufferArray.Factorystatic final BufferArray.Factorystatic final BufferArray.Factorystatic final BufferArray.FactoryFields inherited from class org.ojalgo.array.PlainArray
CHARACTERISTICS, MAX_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidadd(int index, byte addend) final voidadd(int index, double addend) final voidadd(int index, float addend) final voidadd(int index, int addend) final voidadd(int index, long addend) final voidadd(int index, short addend) voidclose()protected voidexchange(int firstA, int firstB, int step, int count) protected voidprotected voidfill(int first, int limit, int step, NullaryFunction<?> supplier) protected voidprotected voidget(int index) protected intindexOfLargest(int first, int limit, int step) protected booleanisAbsolute(int index) protected booleanisSmall(int index, double comparedTo) 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) protected voidset(int index, Comparable<?> value) protected voidprotected voidprotected voidvisit(int first, int limit, int step, VoidFunction<Double> visitor) protected voidvisitOne(int index, VoidFunction<Double> visitor) Methods inherited from class org.ojalgo.array.PlainArray
add, add, add, add, add, add, add, add, byteValue, byteValue, count, doubleValue, doubleValue, exchange, fill, fill, fillAll, fillAll, fillOne, fillRange, fillRange, floatValue, floatValue, get, indexOfLargest, intValue, intValue, longValue, longValue, modify, modify, modify, modifyOne, set, set, set, set, set, set, set, set, set, set, set, set, set, shortValue, shortValue, size, visit, visitOneMethods inherited from class org.ojalgo.array.DenseArray
buildMethods inherited from class org.ojalgo.array.BasicArray
aggregateRange, equals, factory, getMathType, hashCode, indexOfLargest, isPrimitive, modifyAll, modifyMatching, modifyMatching, modifyRange, supplyTo, toString, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, dot, elements, nonzeros, select, supplyTo, toList, toRawCopy1DMethods inherited from interface org.ojalgo.structure.Access1D.Aggregatable
aggregateAllMethods inherited from interface org.ojalgo.structure.Access1D.Collectable
collectMethods inherited from interface org.ojalgo.structure.Mutate1D.Fillable
fillCompatible, fillMatching, fillMatching, fillMatching
-
Field Details
-
R032
-
R064
-
Z008
-
Z016
-
Z032
-
Z064
-
myBuffer
-
myFile
-
-
Constructor Details
-
BufferArray
BufferArray(BufferArray.Factory factory, Buffer buffer, AutoCloseable file)
-
-
Method Details
-
add
public final void add(int index, byte addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>- Overrides:
addin classPlainArray<Double>
-
add
public final void add(int index, double addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>
-
add
public final void add(int index, float addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>- Overrides:
addin classPlainArray<Double>
-
add
public final void add(int index, int addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>- Overrides:
addin classPlainArray<Double>
-
add
public final void add(int index, long addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>- Overrides:
addin classPlainArray<Double>
-
add
public final void add(int index, short addend) - Specified by:
addin interfaceMutate1D.Modifiable<Double>- Overrides:
addin classPlainArray<Double>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
get
- Specified by:
getin classPlainArray<Double>
-
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. -
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>
-
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>
-
sortAscending
protected void sortAscending()- Specified by:
sortAscendingin classPlainArray<Double>
-
sortDescending
protected void sortDescending()- Specified by:
sortDescendingin 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>
-