Array7
public Array7()
Create an empty seven dimensional array. The array will need to be
initialized before use.
Array7
public Array7(float[][][][][][][] array)
Create a seven dimensional array using the specified Java array. The
lower bound(s) of the constructed array will start at zero. An array
index out of range exception will be thrown if the bounds are invalid.
Array7
public Array7(int s0,
int s1,
int s2,
int s3,
int s4,
int s5,
int s6,
boolean isRow)
Create a seven dimenstional array of the specified size, with the lower
index starting at zero. This constructor will throw an array bounds out
of range exception if the array bounds are invalid.
Array7
public Array7(int l0,
int l1,
int l2,
int l3,
int l4,
int l5,
int l6,
int u0,
int u1,
int u2,
int u3,
int u4,
int u5,
int u6,
boolean isRow)
Create a seven dimensional array using the specified lower and upper
bounds (where both bounds are inclusive). This constructor will throw
an array bounds out of range exception if the array bounds are invalid.
Array7
protected Array7(long array,
boolean owner)
Create a seven dimensional array directly using the sidl pointer
and owner flag. This constructor should only be called by the
sidl runtime.
_get
public float _get(int i,
int j,
int k,
int l,
int m,
int n,
int o)
Get the specified array element without bounds checking. If the index
is invalid, then bad things may happen. If you are unsure whether the
index is valid, then use get
instead.
- _get in interface Float.Array
_set
public void _set(int i,
int j,
int k,
int l,
int m,
int n,
int o,
float value)
Set the specified array element without bounds checking. If the index
is invalid, then bad things may happen. If you are unsure whether the
index is valid, then use set
instead.
- _set in interface Float.Array
copy
public void copy(Float.Array7 dest)
Method Copy copies the elements of 'this' to an already existing
array of the same size.
fromArray
public void fromArray(float[][][][][][][] array)
Set the value of the sidl array from the Java array. This method
will copy the Java array values into the sidl array, reallocating
the memory of the sidl array as necessary. The resulting sidl array
will start with a zero lower bound. If the Java array is null, then
the sidl array will be null, as well. Note that multidimensional Java
arrays must not be ragged; that is, all sub-arrays in a particular
dimension must have the same size. Otherwise, some data may be missed
or this method may throw an array index out of bounds exception.
get
public float get(int i,
int j,
int k,
int l,
int m,
int n,
int o)
Get the specified array element with bounds checking. If the index is
invalid, then an array index out of bounds exception will be thrown.
length
public int length(int dim)
Routine gets length of the array in the specified dimension
reallocate
public void reallocate(int l0,
int l1,
int l2,
int l3,
int l4,
int l5,
int l6,
int u0,
int u1,
int u2,
int u3,
int u4,
int u5,
int u6,
boolean isRow)
Reallocate array data using the specifed lower and upper bounds. The
upper bound is inclusive. Previous array data will be freed.
set
public void set(int i,
int j,
int k,
int l,
int m,
int n,
int o,
float value)
Set the specified array element with bounds checking. If the index is
invalid, then an array index out of bounds exception will be thrown.
smartCopy
public Float.Array7 smartCopy()
Method smartCopy returns a a copy of a borrowed array, or
increments the reference count of an array that manages it's
own data. Useful if you wish to keep a copy of an incoming array
toArray
public float[][][][][][][] toArray()
Convert the sidl array into a Java array. This method will copy
the sidl array into the Java array. The resulting Java array will
(obviously) start with a zero lower bound. If the sidl array is
empty (null), then a null Java array will be returned.