public interface Access1D<N extends Number> extends Structure1D
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
Deprecated.
v48 Will be removed
|
static class |
Access1D.ElementView<N extends Number> |
static interface |
Access1D.IndexOf
Deprecated.
v48 Will be removed
|
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.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, 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 byte |
byteValue(long index) |
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) |
default float |
floatValue(long index) |
N |
get(long index) |
static int |
hashCode(Access1D<?> access) |
default int |
intValue(long index) |
default long |
longValue(long index) |
default ElementView1D<N,?> |
nonzeros() |
default short |
shortValue(long index) |
default void |
supplyTo(double[] receiver) |
default double[] |
toRawCopy1D() |
static String |
toString(Access1D<?> access) |
static Access1D<Double> |
wrap(double[] target) |
static <N extends Number> |
wrap(List<? extends N> target) |
static <N extends Number> |
wrap(N[] target) |
count, index, loopAll, loopMatching, loopRange, mapper, size
static boolean equals(Access1D<?> accessA, Access1D<?> accessB, NumberContext context)
static int hashCode(Access1D<?> access)
default <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 byte byteValue(long index)
default double dot(Access1D<?> vector)
vector
- Another 1D-structuredouble doubleValue(long index)
default ElementView1D<N,?> elements()
default float floatValue(long index)
N get(long index)
default int intValue(long index)
default long longValue(long index)
default ElementView1D<N,?> nonzeros()
default short shortValue(long index)
default void supplyTo(double[] receiver)
default double[] toRawCopy1D()
Copyright © 2019 Optimatika. All rights reserved.