public class FloatArrayView extends Object implements Cloneable
| Constructor and Description | 
|---|
| FloatArrayView(float[] array)Create a view on the entirety of the given array. | 
| FloatArrayView(float[] array,
              int l,
              int r)Create a view on the given array from l (inclusive) to 
 r (exclusive). | 
| FloatArrayView(int n)Create a view on an array of length n. | 
| Modifier and Type | Method and Description | 
|---|---|
| FloatArrayView | clone() | 
| float | get(int i)Get the ith element of this array view. | 
| float | getFast(int i)Get the ith element of this array view omitting any
 bounds checks. | 
| float[] | getUnderlyingStorage()Get access to the underlying array of this view. | 
| void | set(int i,
   float v)Set the ith element of this array view to the value v. | 
| void | setFast(int i,
       float v)Set the ith element of this array view to the value v. | 
| int | size()Get the size (number of elements) in the view. | 
| FloatArrayView | subView(int l1,
       int r1)Get a subview of this view from l1 (inclusive) to r1 (exclusive). | 
| float[] | toArray()Convert this view to an array. | 
| String | toString() | 
public FloatArrayView(float[] array, int l, int r)
array - the arrayl - start (left) indexr - end (right) indexpublic FloatArrayView(float[] array)
array - the array.public FloatArrayView(int n)
n - the length of the view and underlying array.public FloatArrayView subView(int l1, int r1)
l1 - start (left) indexr1 - end (right) indexpublic float get(int i)
i - the index to getpublic float getFast(int i)
i - the index to getpublic void set(int i, float v)
i - the index to setv - the value to setpublic void setFast(int i, float v)
i - the index to setv - the value to setpublic float[] getUnderlyingStorage()
public int size()
public float[] toArray()
public FloatArrayView clone()