public static class F64Array.Viewer
| Modifier and Type | Method and Description |
|---|---|
F64Array |
get(int... indices)
Returns a subarray with several first indices specified.
|
F64Array |
get(_I any,
int c)
Returns a subarray with index 1 specified to
c. |
void |
set(kotlin.Array[] indices,
F64Array other)
Replaces a subarray with several first indices specified with the values from
other. |
void |
set(kotlin.Array[] indices,
double init)
Fills a subarray with several first indices specified with
init value. |
void |
set(_I any,
F64Array other)
Replaces the whole array with the values from
other. |
void |
set(_I any,
double other)
Replaces the whole array with
other value. |
void |
set(_I any,
int c,
F64Array other)
|
void |
set(_I any,
int c,
double init)
|
public Viewer(@NotNull
F64Array a)
@NotNull public F64Array get(@NotNull int... indices)
Returns a subarray with several first indices specified.
A less-verbose alias to view and chained view calls:
a.Vi0,i1,i2 == a.view(i0).view(i1).view(i2)
For an appropriately sized moreIndices IntArray, the following invariant holds:
aindices+moreIndices == a.Vindices
It should be noted that the former invocation is generally much more efficient.
Viewer method.
public void set(@NotNull
kotlin.Array[] indices,
@NotNull
F64Array other)
Replaces a subarray with several first indices specified with the values from other.
After we call:
a.Vindices = other
the following holds for an appropriately sized moreIndices IntArray:
aindices+moreIndices == othermoreIndices
In-place method for this and copying method for other.
other,
indices,
IntArray,
indices+moreIndices,
moreIndices,
otherpublic void set(@NotNull
kotlin.Array[] indices,
double init)
Fills a subarray with several first indices specified with init value.
After we call:
a.Vindices = init
the following holds for any appropriately sized moreIndices IntArray:
aindices+moreIndices == init
In-place method.
init,
indices,
IntArray,
indices+moreIndices