public class MultiIndex extends Object implements Serializable
Constructor and Description |
---|
MultiIndex()
Initializes the arrays to size 0.
|
MultiIndex(int... d)
Initializes the variables based on the number of arguments
|
Modifier and Type | Method and Description |
---|---|
int |
getArrayIndex(int... ind)
Gets the needed size for 1D, 2D, and 3D arrays to be stored in a 1D array
|
int |
getArraySize()
Gets the size of the resulting 1D array from the dimension sizes
|
void |
setDimensions(int... d)
Sets the dimension sizes at each index and initializes every element
of the current index to -1.
|
public MultiIndex()
public MultiIndex(int... d)
d
- the list of dimension sizes. Used to determine the array sizes.public final void setDimensions(int... d)
d
- the list of dimension sizespublic int getArraySize()
public int getArrayIndex(int... ind)
ind
- The size of each dimensionJas4pp 1.5 © Java Analysis Studio for Particle Physics