User`s guide

Guidelines for Working with MWArray Classes
Note Numeric sparse matrices are supported only for type double.
Attempting to construct a sparse numeric matrix with any other type results
in an exception being thrown.
Accessing MWNumericArray Elements
The MWNumericArray class provides m ethods for accessing and modifying
array d ata in the form of
get and set methods. The following table lists the
get and set methods.
Method Usage
gettype(int)
Returns the real part of the element at the
one-based index. Return value is of the
type specified (e.g.,
getDouble returns a
double).
gettype(int[])
Returns the real part of the element at the
one-based index array. Return value is of
the type specified (e.g.,
getDouble returns
a
double).
getImagtype(int)
Returns the im ag in a r y part of the e lement
at the one-based index. Return value is
ofthetypespecified(e.g.,
getImagDouble
returns a double).
getImagtype(int[])
Returns the im ag in a r y part of the e lement
at the one-based index array. Return value
is of the type specified (e.g.,
getDouble
returns a double).
set(int, type)
Replaces the real part of the element at the
one-based i nde x with the supplied value
set(int[], type)
Replaces the real part of the element at the
one-based index array with the supplied
value
4-17