Guidelines for Working with MWArray Classes
Supported Data Types. In the previous table, type represents supported
Java types.
MWNumericArray supports the follow ing Java primitive types:
•
double
• float
• byte
• short
• int
• long
• boolean
The following object types are also supported:
• Subclasses of
java.lang.Number
• Subclasses of java.lang.String
• Subclasses of java.lang.Boolean
In addition to supporting scalar values of the types listed, g eneral
N-dimensional arrays of each type are also supported.
Constructing Different Types of Numeric Arrays
Here are some examples showing how to construct different types of numeric
arrays with the various forms of the
MWNumericArray constructor.
Constructing Complex Arrays
The f ollo wing four statements all construct a complex scalar int32 array
with a value of
1+2i:
MWNumericArray a1 = new MWNumericArray(1, 2);
MWNumericArray a2 = new MWNumericArray(1.0, 2.0,
MWClassID.INT32);
MWNumericArray a3 = new MWNumericArray(new Double(1.0),
4-9
Comments to this Manuals