-
public final class F64Array.Viewer
-
-
Method Summary
Modifier and Type Method Description final F64Arrayget(Integer indices)Returns a subarray with several first indices specified. final F64Arrayget(_I any, Integer c)Returns a subarray with index 1 specified to c. final Unitset(Integer indices, F64Array other)Replaces a subarray with several first indices specified with the values from other. final Unitset(Integer indices, Double init)Fills a subarray with several first indices specified with init value. final Unitset(_I any, F64Array other)Replaces the whole array with the values from other. final Unitset(_I any, Double other)Replaces the whole array with other value. final Unitset(_I any, Integer c, F64Array other)Replaces a subarray with index 1 specified to c with the values from other. final Unitset(_I any, Integer c, Double init)Replaces a subarray with index 1 specified to c with the init value. -
-
Constructor Detail
-
Viewer
Viewer(F64Array a)
-
-
Method Detail
-
get
final F64Array get(Integer 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
moreIndicesIntArray, the following invariant holds: aindices + moreIndices == a.VmoreIndicesIt should be noted that the former invocation is generally much more efficient.
Viewer method.
-
get
final F64Array get(_I any, Integer c)
Returns a subarray with index 1 specified to c.
A less-verbose alias to view: a.V_I, c == a.view(c, 1)
Viewer method.
-
set
final Unit set(Integer indices, 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
moreIndicesIntArray: aindices + moreIndices == othermoreIndicesIn-place method for this and copying method for other.
-
set
final Unit set(Integer 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
moreIndicesIntArray: aindices + moreIndices == initIn-place method.
-
set
final Unit set(_I any, F64Array other)
Replaces the whole array with the values from other.
A less-verbose alias to copyTo.
In-place method for this and copying method for other.
-
set
final Unit set(_I any, Integer c, F64Array other)
Replaces a subarray with index 1 specified to c with the values from other.
A less-verbose alias to view: a.V_I, c == a.view(c, 1)
In-place method for this and copying method for other.
-
-
-
-