Creates a 2D or 3D Vectorized array of a set size, and provides utilities to set and get values from this array. More...
Public Member Functions | |
VectorizedArray (int nI, int nJ, int nK) | |
Creates an empty 3D array of three provided dimensions. More... | |
VectorizedArray (int nI, int nJ) | |
Creates an empty 2D array in two provided dimensions. More... | |
double | getValueAt (int i, int j, int k) |
Return the value at a specified index in the array. More... | |
void | setValueAt (double value, int i, int j, int k) |
Set a value at a given array position. More... | |
double | getMax () |
Return the maximum value of the array. More... | |
double | getMin () |
Return the minimum value of the array. More... | |
double[][][] | getValues () |
Return the array as a 3D double array. More... | |
Creates a 2D or 3D Vectorized array of a set size, and provides utilities to set and get values from this array.
Creates a 2D or 3D Vectorized array of a set size, and provides utilities to set and get values from this array
utils.VectorizedArray.VectorizedArray | ( | int | nI, |
int | nJ, | ||
int | nK | ||
) |
Creates an empty 3D array of three provided dimensions.
Creates an empty 3D array of three provided dimensions
nI | Array size in I (X) direction |
nJ | Array size in J (Y) direction |
nK | Array size in K (Z) direction |
utils.VectorizedArray.VectorizedArray | ( | int | nI, |
int | nJ | ||
) |
Creates an empty 2D array in two provided dimensions.
Creates an empty 2D array in two provided dimensions
nI | Array size in I (X) direction |
nJ | Array size in J (Y) direction |
double utils.VectorizedArray.getMax | ( | ) |
Return the maximum value of the array.
Return the maximum value of the array
double utils.VectorizedArray.getMin | ( | ) |
Return the minimum value of the array.
Return the minimum value of the array
double utils.VectorizedArray.getValueAt | ( | int | i, |
int | j, | ||
int | k | ||
) |
Return the value at a specified index in the array.
Return the value at a specified index in the array
i | Integer index of the i position for which the value is being sought |
j | Integer index of the j position for which the value is being sought |
k | Integer index of the k position for which the value is being sought |
double [][][] utils.VectorizedArray.getValues | ( | ) |
Return the array as a 3D double array.
Return the array as a 3D double array
void utils.VectorizedArray.setValueAt | ( | double | value, |
int | i, | ||
int | j, | ||
int | k | ||
) |
Set a value at a given array position.
Set a value at a given array position
value | Value to set position to |
i | Integer index of the i position for which the value is to be set |
j | Integer index of the j position for which the value is to be set |
k | Integer index of the k position for which the value is to be set |