public final class Array1D<N extends Number> extends AbstractList<N> implements Access1D<N>, Access1D.Elements, Access1D.IndexOf, Access1D.Sliceable<N>, Access1D.Visitable<N>, Access1D.Aggregatable<N>, Mutate1D.Receiver<N>, Mutate1D.BiModifiable<N>, Mutate1D.Modifiable<N>, Mutate1D.Mixable<N>, Mutate1D.Sortable, RandomAccess, Serializable
| 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.BiModifiable<N extends Number>, Mutate1D.Fillable<N extends Number>, Mutate1D.Mixable<N extends Number>, Mutate1D.Modifiable<N extends Number>, Mutate1D.Receiver<N extends Number>, Mutate1D.SortableStructure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, 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 |
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() |
Spliterator<N> |
spliterator() |
Array1D<N> |
subList(int first,
int limit) |
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, removeRangeaddAll, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasCollectable1D, asPrimitive1D, axpy, dot, elements, equals, hashCode, iterator, nonzeros, stream, supplyTo, toRawCopy1D, wrap, wrap, wrap, wrapAccess1D, wrapAccess1D, wrapAccess1DaggregateAllaccept, isAcceptablefillMatching, fillMatching, fillMatchingloopAll, loopMatching, loopRange, mapperaddAll, containsAll, remove, removeAll, replaceAll, retainAll, sort, toArray, toArrayparallelStream, removeIf, streampublic 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 Structure1Dpublic 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.IndexOfpublic long indexOfLargestInRange(long first,
long limit)
indexOfLargestInRange in interface Access1D.IndexOfpublic boolean isAbsolute(long index)
isAbsolute in interface Access1D.ElementsScalar.isAbsolute()public boolean isAllSmall(double comparedTo)
isAllSmall in interface Access1D.ElementsNormedVectorSpace.isSmall(double)public boolean isEmpty()
public boolean isSmall(long index,
double comparedTo)
isSmall in interface Access1D.ElementsNormedVectorSpace.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 modifyMatching(Access1D<N> left, BinaryFunction<N> function)
modifyMatching in interface Mutate1D.BiModifiable<N extends Number>public void modifyMatching(BinaryFunction<N> function, Access1D<N> right)
modifyMatching in interface Mutate1D.BiModifiable<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()
public Array1D<N> sliceRange(long first, long limit)
sliceRange in interface Access1D.Sliceable<N extends Number>public void sortAscending()
sortAscending in interface Mutate1D.Sortablepublic void sortDescending()
sortDescending in interface Mutate1D.Sortablepublic Spliterator<N> spliterator()
spliterator in interface Iterable<N extends Number>spliterator in interface Collection<N extends Number>spliterator in interface List<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 © 2018 Optimatika. All rights reserved.