User`s guide
Using Class Methods
MWLogicalArray()
Constructing an Initialized Logical Scalar or Array. Use this constructor
syntax to create a
MWLogicalArray scalar or array that represents the
primitive Java type
javatype:
MWLogicalArray(javatype array)
The value of array is set to true if the argument is nonzero, a nd false
otherwise.
The type
javatype canbeanyofthefollowing:
•
double
• float
• long
• int
• short
• byte
• boolean
• Object
Example — Constructing an Initialized Logical Array Object
boolean[][] Adata = {{true, false, false},
{false, true, false}};
MWLogicalArray A = new MWLogicalArray(Adata);
Methods to Create and Destroy an M WLogicalArray
In addition to the MWLogicalArray constructor, you can use the newInstance
and newSparse methods to construct a logical array. These tw o methods offer
better performance than using the class constructor. To destroy the arrays,
use either
dispose or disposeArray.
4-93