Package org.ojalgo.array
Class BufferZ032
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.array.BufferArray
BufferArray.BufferConstructor, BufferArray.Factory, BufferArray.MappedFileFactory
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.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
FieldsFields inherited from class org.ojalgo.array.PlainArray
CHARACTERISTICS, MAX_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBufferZ032
(BufferArray.Factory factory, ByteBuffer buffer, AutoCloseable closeable) BufferZ032
(BufferArray.Factory factory, IntBuffer buffer, AutoCloseable closeable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(int index, Comparable<?> addend) byte
byteValue
(int index) protected void
fillOne
(int index, NullaryFunction<?> supplier) float
floatValue
(int index) int
intValue
(int index) void
set
(int index, double value) void
set
(int index, int value) void
set
(int index, long value) short
shortValue
(int index) Methods inherited from class org.ojalgo.array.BufferArray
add, add, add, add, add, add, close, exchange, fill, fill, fillOne, fillOne, get, indexOfLargest, isAbsolute, isSmall, modify, modify, modify, modify, modify, modify, modifyOne, reset, searchAscending, set, sortAscending, sortDescending, visit, visitOne
Methods inherited from class org.ojalgo.array.PlainArray
add, add, add, add, add, add, add, byteValue, count, doubleValue, doubleValue, exchange, fill, fill, fillAll, fillAll, fillRange, fillRange, floatValue, get, indexOfLargest, intValue, longValue, 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, equals, factory, getMathType, hashCode, 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, axpy, 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, fillMatching, fillMatching, fillMatching
-
Field Details
-
myBuffer
-
-
Constructor Details
-
BufferZ032
BufferZ032(BufferArray.Factory factory, ByteBuffer buffer, AutoCloseable closeable) -
BufferZ032
BufferZ032(BufferArray.Factory factory, IntBuffer buffer, AutoCloseable closeable)
-
-
Method Details
-
byteValue
public byte byteValue(int index) -
floatValue
public float floatValue(int index) - Specified by:
floatValue
in interfaceAccess1D<Double>
- Specified by:
floatValue
in classPlainArray<Double>
-
intValue
public int intValue(int index) -
set
public void set(int index, double value) - Specified by:
set
in interfaceMutate1D
- Specified by:
set
in classPlainArray<Double>
-
set
public void set(int index, int value) - Specified by:
set
in interfaceMutate1D
- Overrides:
set
in classPlainArray<Double>
-
set
public void set(int index, long value) - Specified by:
set
in interfaceMutate1D
- Specified by:
set
in classPlainArray<Double>
-
shortValue
public short shortValue(int index) - Specified by:
shortValue
in interfaceAccess1D<Double>
- Overrides:
shortValue
in classPlainArray<Double>
-
add
- Specified by:
add
in classPlainArray<Double>
-
fillOne
- Specified by:
fillOne
in classPlainArray<Double>
-