User`s guide

4 Using MWArra y Classes
classID. MWNumericArray inherits this method from the MWArray class.
complexity. This method returns the complexity of the
MWNumericArray
object as either MWComplexity.REAL for a real array, or MWComplexity.COMPLEX
for a complex array.
The prototype for the
complexity method is
public MWComplexity complexity()
Input Parameters
None
Example Testing for a Complex Array
Determine whether matrix A is real or complex:
double AReal = 24;
double AImag = 5;
MWNumericArray A = new MWNumericArray(AReal, AImag);
System.out.println("A is a " + A.complexity() + " matrix");
When run, the example displays this output:
A is a complex matrix
getDimensions. MWNumericArray inherits this m ethod from the MWArray
class.
isEmpty.
MWNumericArray inherits this method from the MWArray class.
isFinite. This method tests for finiteness in a machine-independent manner.
This is a static m ethod of the class and does not need to be invoked in
reference to an i nstance of the class.
The prototype for the
isFinite method is as follows:
public static boolean isFinite(double value)
4-72