User`s guide
Using Class Methods
• “Methods to Create and Destroy an MWNumericArray” on page 4-63
• “Methods to Get and Set the Real Parts of an MWNumericArray” on page
4-75
• “Methods to Get and Set the Imaginary Parts of an MWNumericArray”
on page 4-79
• “Methods to Copy, Convert, and Compare M WNumericArrays” on page 4-87
• “Methods to Use on Sparse MWNumericArrays” on page 4-90
• “Methods to Return Special Constant Values” on page 4-90
Constructing an MWNumericArray
Use the tables in this section to construct an MWNumericArray fro m a
particular Java data type. See the examples at the end of this section for
more help.
• “Constructing an Empty Scalar” on page 4-59
• “Constructing a Real or Complex Numeric Scalar” on page 4-60
• “Constructing a Real or C omplex Numeric Array” on page 4-61
In addition to using the
MWNumericArray constructor, you can also use
“newSparse” on page 4-66 to constru ct a n
MWNumericArray.Thesetwo
methods provide better performance than the constructor.
Constructing an Empty Scalar. Use either of the following constructors to
create an emp ty scalar
MWNumericArray:
To construct an empty scalar of type
MWClassID.DOUBLE,usethefollowing:
MWNumericArray()
To construct an empty scalar of type classid,usethefollowing:
MWNumericArray(MWClassID classid)
4-59