Class ReferenceTypeArray<N extends Comparable<N>>
java.lang.Object
org.ojalgo.array.BasicArray<N>
org.ojalgo.array.DenseArray<N>
org.ojalgo.array.PlainArray<N>
org.ojalgo.array.ReferenceTypeArray<N>
- All Implemented Interfaces:
RandomAccess, Access1D<N>, Access1D.Aggregatable<N>, Access1D.Collectable<N,Mutate1D>, Access1D.Visitable<N>, Factory1D.Builder<DenseArray<N>>, Mutate1D, Mutate1D.Fillable<N>, Mutate1D.Modifiable<N>, Mutate1D.Sortable, Structure1D
- Direct Known Subclasses:
ArrayR256, ScalarArray
public abstract class ReferenceTypeArray<N extends Comparable<N>>
extends PlainArray<N>
implements Mutate1D.Sortable
A one- and/or arbitrary-dimensional array of Comparable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReferenceTypeArray.Factory<N extends Comparable<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 PlainArray
CHARACTERISTICS, MAX_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final N[]booleanprotected final voidexchange(int firstA, int firstB, int step, int count) protected final voidprotected final voidfill(int first, int limit, int step, NullaryFunction<?> supplier) voidfillMatching(UnaryFunction<N> function, Access1D<N> arguments) voidfillMatching(Access1D<?> values) Will fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:this(i) = values(i)voidfillMatching(Access1D<N> left, BinaryFunction<N> function, Access1D<N> right) protected final voidprotected final voidfillOne(int index, NullaryFunction<?> supplier) final Nget(int index) inthashCode()protected final voidmodify(int first, int limit, int step, BinaryFunction<N> function, Access1D<N> right) protected final voidmodify(int first, int limit, int step, UnaryFunction<N> function) protected final voidmodify(int first, int limit, int step, Access1D<N> left, BinaryFunction<N> function) (package private) final voidmodify(long extIndex, int intIndex, BinaryFunction<N> function, Access1D<N> right) (package private) final voidmodify(long extIndex, int intIndex, UnaryFunction<N> function) (package private) final voidmodify(long extIndex, int intIndex, Access1D<N> left, BinaryFunction<N> function) protected final voidmodifyOne(int index, UnaryFunction<N> modifier) final voidreset()Reset this mutable structure to some standard (all zeros) initial state.protected final intsearchAscending(N value) final voidset(int index, double value) final voidset(int index, float value) protected final voidset(int index, Comparable<?> value) final Spliterator<N> (package private) final NvalueOf(double value) (package private) final NvalueOf(float value) (package private) final NvalueOf(Comparable<?> number) protected final voidvisit(int first, int limit, int step, VoidFunction<N> visitor) protected voidvisitOne(int index, VoidFunction<N> visitor) Methods inherited from class PlainArray
add, add, add, add, add, 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, indexOfLargest, intValue, intValue, isAbsolute, isSmall, longValue, longValue, modify, modify, modify, modifyOne, set, set, set, set, set, set, set, set, set, set, set, shortValue, shortValue, size, sortAscending, sortDescending, 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, axpy, 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 Mutate1D.Modifiable
addMethods inherited from interface Mutate1D.Sortable
sortAscending, sortDescendingMethods inherited from interface Structure1D
count, size
-
Field Details
-
data
-
-
Constructor Details
-
ReferenceTypeArray
ReferenceTypeArray(ReferenceTypeArray.Factory<N> factory, N[] data)
-
-
Method Details
-
equals
- Overrides:
equalsin classBasicArray<N extends Comparable<N>>
-
fillMatching
Description copied from interface:Mutate1D.FillableWill fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:this(i) = values(i)- Specified by:
fillMatchingin interfaceMutate1D.Fillable<N extends Comparable<N>>
-
fillMatching
- Specified by:
fillMatchingin interfaceMutate1D.Fillable<N extends Comparable<N>>
-
fillMatching
- Specified by:
fillMatchingin interfaceMutate1D.Fillable<N extends Comparable<N>>
-
get
- Specified by:
getin classPlainArray<N extends Comparable<N>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBasicArray<N extends Comparable<N>>
-
reset
-
set
public final void set(int index, double value) - Specified by:
setin interfaceMutate1D- Specified by:
setin classPlainArray<N extends Comparable<N>>
-
set
public final void set(int index, float value) - Specified by:
setin interfaceMutate1D- Overrides:
setin classPlainArray<N extends Comparable<N>>
-
spliterator
-
copyOfData
-
exchange
protected final void exchange(int firstA, int firstB, int step, int count) - Specified by:
exchangein classPlainArray<N extends Comparable<N>>
-
fill
- Specified by:
fillin classPlainArray<N extends Comparable<N>>
-
fill
- Specified by:
fillin classPlainArray<N extends Comparable<N>>
-
fillOne
- Specified by:
fillOnein classPlainArray<N extends Comparable<N>>
-
fillOne
- Specified by:
fillOnein classPlainArray<N extends Comparable<N>>
-
modify
protected final void modify(int first, int limit, int step, Access1D<N> left, BinaryFunction<N> function) - Specified by:
modifyin classPlainArray<N extends Comparable<N>>
-
modify
protected final void modify(int first, int limit, int step, BinaryFunction<N> function, Access1D<N> right) - Specified by:
modifyin classPlainArray<N extends Comparable<N>>
-
modify
- Specified by:
modifyin classPlainArray<N extends Comparable<N>>
-
modifyOne
- Specified by:
modifyOnein classPlainArray<N extends Comparable<N>>
-
searchAscending
- Specified by:
searchAscendingin classPlainArray<N extends Comparable<N>>
-
set
- Specified by:
setin classPlainArray<N extends Comparable<N>>
-
visit
- Specified by:
visitin classPlainArray<N extends Comparable<N>>
-
visitOne
- Specified by:
visitOnein classPlainArray<N extends Comparable<N>>
-
modify
- Specified by:
modifyin classDenseArray<N extends Comparable<N>>
-
modify
- Specified by:
modifyin classDenseArray<N extends Comparable<N>>
-
modify
- Specified by:
modifyin classDenseArray<N extends Comparable<N>>
-
valueOf
-
valueOf
-
valueOf
-