User`s guide

4 Using MWArra y Classes
When run, the example displays this output:
Class of A is int32
getDimensions. This method returns a one-dimensional int array
containing the size of each dimension of the
MWArray object.
The prototype for the
getDimensions method is a s follows:
public int[] getDimensions()
Input Parameters
None
Example Getting Array Dimensions of an MWArray
int[] dimA = A.getDimensions();
System.out.println("Dimensions of A are " +
dimA[0] + " x " + dimA[1]);
When run, the example displays this output:
Dimensions of A are 3 x 6
isEmpty. This method returns true if the array object contains n o elements,
and
false otherwise.
The prototype for the
isEmpty method is as fo llows:
public boolean isEmpty()
Input Parameters
None
4-42