public interface Access1D<N extends Number> extends Structure1D, Iterable<N>
Modifier and Type | Interface and Description |
---|---|
static interface |
Access1D.Aggregatable<N extends Number>
This interface complements Access1D.Visitable but does not extend it.
|
static interface |
Access1D.Collectable<N extends Number,R extends Mutate1D.Receiver<N>> |
static interface |
Access1D.Elements |
static class |
Access1D.ElementView<N extends Number> |
static interface |
Access1D.IndexOf |
static interface |
Access1D.Sliceable<N extends Number> |
static interface |
Access1D.Visitable<N extends Number> |
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Method and Description |
---|---|
default <NN extends Number,R extends Mutate1D.Receiver<NN>> |
asCollectable1D()
|
static Access1D<Double> |
asPrimitive1D(Access1D<?> access) |
default void |
axpy(double a,
Mutate1D y)
Will calculate y = y + a x, will add "a" times "this" to "y"
|
default double |
dot(Access1D<?> vector)
Will calculate and return the dot product of this 1D-structure and another input 1D-vector.
|
double |
doubleValue(long index) |
default ElementView1D<N,?> |
elements()
Returns an Iterable of ElementView1D.
|
static boolean |
equals(Access1D<?> accessA,
Access1D<?> accessB,
NumberContext context) |
N |
get(long index) |
static int |
hashCode(Access1D<?> access) |
default Iterator<N> |
iterator() |
default ElementView1D<N,?> |
nonzeros() |
default BaseStream<N,? extends BaseStream<N,?>> |
stream(boolean parallel) |
default void |
supplyTo(double[] receiver) |
default double[] |
toRawCopy1D() |
static Access1D<Double> |
wrap(double[] target) |
static <N extends Number> |
wrap(List<? extends N> target) |
static <N extends Number> |
wrap(N[] target) |
static Access1D<Double> |
wrapAccess1D(double[] target)
Deprecated.
v45 Use
wrap(double[]) instead |
static <N extends Number> |
wrapAccess1D(List<? extends N> target)
Deprecated.
v45 Use
wrap(List<? extends N>) instead |
static <N extends Number> |
wrapAccess1D(N[] target)
Deprecated.
v45 Use
#wrap(N[]) instead |
count, loopAll, loopMatching, loopRange, mapper
forEach, spliterator
static boolean equals(Access1D<?> accessA, Access1D<?> accessB, NumberContext context)
static int hashCode(Access1D<?> access)
@Deprecated static Access1D<Double> wrapAccess1D(double[] target)
wrap(double[])
instead@Deprecated static <N extends Number> Access1D<N> wrapAccess1D(List<? extends N> target)
wrap(List<? extends N>)
instead@Deprecated static <N extends Number> Access1D<N> wrapAccess1D(N[] target)
#wrap(N[])
insteaddefault <NN extends Number,R extends Mutate1D.Receiver<NN>> Access1D.Collectable<NN,R> asCollectable1D()
default void axpy(double a, Mutate1D y)
a
- The scaley
- The "vector" to updatedefault double dot(Access1D<?> vector)
vector
- Another 1D-structuredouble doubleValue(long index)
default ElementView1D<N,?> elements()
N get(long index)
default ElementView1D<N,?> nonzeros()
default BaseStream<N,? extends BaseStream<N,?>> stream(boolean parallel)
default void supplyTo(double[] receiver)
default double[] toRawCopy1D()
Copyright © 2018 Optimatika. All rights reserved.