public final class Array1D<N extends Number> extends AbstractList<N> implements Access1D<N>, Access1D.Visitable<N>, Access1D.Aggregatable<N>, Access1D.Sliceable<N>, Access1D.Elements, Access1D.IndexOf, Mutate1D.ModifiableReceiver<N>, Mutate1D.Mixable<N>, Mutate1D.Sortable, RandomAccess
Modifier and Type | Class and Description |
---|---|
static class |
Array1D.Factory<N extends Number> |
Access1D.Aggregatable<N extends Number>, Access1D.Collectable<N extends Number,R extends Mutate1D.Receiver<N>>, Access1D.Elements, Access1D.ElementView<N extends Number>, Access1D.IndexOf, Access1D.Sliceable<N extends Number>, Access1D.Visitable<N extends Number>
Mutate1D.Fillable<N extends Number>, Mutate1D.Mixable<N extends Number>, Mutate1D.Modifiable<N extends Number>, Mutate1D.ModifiableReceiver<N extends Number>, Mutate1D.Receiver<N extends Number>, Mutate1D.Sortable
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Field and Description |
---|---|
static Array1D.Factory<BigDecimal> |
BIG |
static Array1D.Factory<ComplexNumber> |
COMPLEX |
static Array1D.Factory<Double> |
DIRECT32 |
static Array1D.Factory<Double> |
DIRECT64 |
long |
length |
static Array1D.Factory<Double> |
PRIMITIVE32 |
static Array1D.Factory<Double> |
PRIMITIVE64 |
static Array1D.Factory<Quaternion> |
QUATERNION |
static Array1D.Factory<RationalNumber> |
RATIONAL |
modCount
Modifier and Type | Method and Description |
---|---|
void |
add(long index,
double addend) |
void |
add(long index,
Number addend) |
N |
aggregateRange(long first,
long limit,
Aggregator aggregator) |
void |
clear() |
boolean |
contains(Object obj) |
Array1D<N> |
copy() |
Array1D<N> |
copy(int... indices)
Creates a copy of this containing only the selected elements, in the specified order.
|
long |
count() |
double |
doubleValue(long index) |
static <N extends Number> |
factory(DenseArray.Factory<N> denseFactory) |
void |
fillAll(N value) |
void |
fillAll(NullaryFunction<N> supplier) |
void |
fillOne(long index,
Access1D<?> values,
long valueIndex) |
void |
fillOne(long index,
N value) |
void |
fillOne(long index,
NullaryFunction<N> supplier) |
void |
fillRange(long first,
long limit,
N value) |
void |
fillRange(long first,
long limit,
NullaryFunction<N> supplier) |
N |
get(int index) |
N |
get(long index) |
int |
indexOf(Object obj) |
long |
indexOfLargest() |
long |
indexOfLargestInRange(long first,
long limit) |
boolean |
isAbsolute(long index) |
boolean |
isAllSmall(double comparedTo) |
boolean |
isEmpty() |
boolean |
isSmall(long index,
double comparedTo) |
double |
mix(long index,
BinaryFunction<N> mixer,
double addend) |
N |
mix(long index,
BinaryFunction<N> mixer,
N addend) |
void |
modifyAll(UnaryFunction<N> modifier) |
void |
modifyAny(Transformation1D<N> modifier) |
void |
modifyMatching(Access1D<N> left,
BinaryFunction<N> function) |
void |
modifyMatching(BinaryFunction<N> function,
Access1D<N> right) |
void |
modifyOne(long index,
UnaryFunction<N> modifier) |
void |
modifyRange(long first,
long limit,
UnaryFunction<N> modifier) |
N |
set(int index,
Number value) |
void |
set(long index,
double value) |
void |
set(long index,
Number value) |
int |
size() |
Array1D<N> |
sliceRange(long first,
long limit) |
void |
sortAscending() |
void |
sortDescending() |
Array1D<N> |
subList(int first,
int limit) |
String |
toString() |
void |
visitAll(VoidFunction<N> visitor) |
void |
visitOne(long index,
VoidFunction<N> visitor) |
void |
visitRange(long first,
long limit,
VoidFunction<N> visitor) |
add, add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange
addAll, containsAll, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asCollectable1D, asPrimitive1D, axpy, byteValue, dot, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap, wrap
aggregateAll
accept, isAcceptable
copyComplexArgument, copyComplexImaginary, copyComplexModulus, copyComplexModulusAndArgument, copyComplexReal, copyComplexRealAndImaginary, reset
fillMatching, fillMatching, fillMatching
index, loopAll, loopMatching, loopRange, mapper
addAll, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public static final Array1D.Factory<BigDecimal> BIG
public static final Array1D.Factory<ComplexNumber> COMPLEX
public static final Array1D.Factory<Double> DIRECT32
public static final Array1D.Factory<Double> DIRECT64
public static final Array1D.Factory<Double> PRIMITIVE32
public static final Array1D.Factory<Double> PRIMITIVE64
public static final Array1D.Factory<Quaternion> QUATERNION
public static final Array1D.Factory<RationalNumber> RATIONAL
public final long length
public static <N extends Number> Array1D.Factory<N> factory(DenseArray.Factory<N> denseFactory)
public N aggregateRange(long first, long limit, Aggregator aggregator)
aggregateRange
in interface Access1D.Aggregatable<N extends Number>
public void clear()
public boolean contains(Object obj)
public Array1D<N> copy(int... indices)
public long count()
count
in interface Structure1D
public double doubleValue(long index)
doubleValue
in interface Access1D<N extends Number>
public void fillAll(N value)
fillAll
in interface Mutate1D.Fillable<N extends Number>
public void fillAll(NullaryFunction<N> supplier)
fillAll
in interface Mutate1D.Fillable<N extends Number>
public void fillOne(long index, Access1D<?> values, long valueIndex)
fillOne
in interface Mutate1D.Fillable<N extends Number>
public void fillOne(long index, N value)
fillOne
in interface Mutate1D.Fillable<N extends Number>
public void fillOne(long index, NullaryFunction<N> supplier)
fillOne
in interface Mutate1D.Fillable<N extends Number>
public void fillRange(long first, long limit, N value)
fillRange
in interface Mutate1D.Fillable<N extends Number>
public void fillRange(long first, long limit, NullaryFunction<N> supplier)
fillRange
in interface Mutate1D.Fillable<N extends Number>
public N get(int index)
public int indexOf(Object obj)
public long indexOfLargest()
indexOfLargest
in interface Access1D.IndexOf
public long indexOfLargestInRange(long first, long limit)
indexOfLargestInRange
in interface Access1D.IndexOf
public boolean isAbsolute(long index)
isAbsolute
in interface Access1D.Elements
Scalar.isAbsolute()
public boolean isAllSmall(double comparedTo)
isAllSmall
in interface Access1D.Elements
NormedVectorSpace.isSmall(double)
public boolean isEmpty()
public boolean isSmall(long index, double comparedTo)
isSmall
in interface Access1D.Elements
NormedVectorSpace.isSmall(double)
public double mix(long index, BinaryFunction<N> mixer, double addend)
mix
in interface Mutate1D.Mixable<N extends Number>
public N mix(long index, BinaryFunction<N> mixer, N addend)
mix
in interface Mutate1D.Mixable<N extends Number>
public void modifyAll(UnaryFunction<N> modifier)
modifyAll
in interface Mutate1D.Modifiable<N extends Number>
public void modifyAny(Transformation1D<N> modifier)
modifyAny
in interface Mutate1D.ModifiableReceiver<N extends Number>
public void modifyMatching(Access1D<N> left, BinaryFunction<N> function)
modifyMatching
in interface Mutate1D.Modifiable<N extends Number>
public void modifyMatching(BinaryFunction<N> function, Access1D<N> right)
modifyMatching
in interface Mutate1D.Modifiable<N extends Number>
public void modifyOne(long index, UnaryFunction<N> modifier)
modifyOne
in interface Mutate1D.Modifiable<N extends Number>
public void modifyRange(long first, long limit, UnaryFunction<N> modifier)
modifyRange
in interface Mutate1D.Modifiable<N extends Number>
public int size()
size
in interface Collection<N extends Number>
size
in interface List<N extends Number>
size
in interface Structure1D
size
in class AbstractCollection<N extends Number>
public Array1D<N> sliceRange(long first, long limit)
sliceRange
in interface Access1D.Sliceable<N extends Number>
public void sortAscending()
sortAscending
in interface Mutate1D.Sortable
public void sortDescending()
sortDescending
in interface Mutate1D.Sortable
public String toString()
toString
in class AbstractCollection<N extends Number>
public void visitAll(VoidFunction<N> visitor)
visitAll
in interface Access1D.Visitable<N extends Number>
public void visitOne(long index, VoidFunction<N> visitor)
visitOne
in interface Access1D.Visitable<N extends Number>
public void visitRange(long first, long limit, VoidFunction<N> visitor)
visitRange
in interface Access1D.Visitable<N extends Number>
Copyright © 2019 Optimatika. All rights reserved.