User`s manual

1 Calling C and Fortran Programs from MATLAB
1-8
nzmax is an integer that contains the length of ir, pr, and, if it exists, pi. It
is the maximum possible number of nonzero elements in the sparse matrix.
ir points to an integer array of length nzmax containing the row indices of the
corresponding elements in
pr and pi.
jc points to an integer array of length N+1 that contains column index
information. For
j, in the range 0 j N-1, jc[j] is the index in ir and pr
(and
pi if it exists) of the first nonzero entry in the jth column and
jc[j+1] - 1 index of the last nonzero entry. As a result, jc[N] is also equal
to
nnz, the number of nonzero entries in the matrix. If nnz is less than nzmax,
then more nonzero entries can be inserted in the array without allocating
additional storage.
Cell Arrays
Cell arrays are a collection of MATLAB arrays where each mxArray is referred
to as a cell. This allows MATLAB arrays of different types to be stored together.
Cell arrays are stored in a similar manner to numeric matrices, except the data
portion contains a single vector of pointers to
mxArrays. Members of this vector
are called cells. Each cell can be of any supported data type, even another cell
array.
Structures
A 1-by-1 structure is stored in the same manner as a 1-by-n cell array where n
is the number of fields in the structure. Members of the data vector are called
fields. Each field is associated with a name stored in the
mxArray.
Objects
Objects are stored and accessed the same way as structures. In MATLAB,
objects are named structures with registered methods. Outside MATLAB, an
object is a structure that contains storage for an additional classname that
identifies the name of the object.
Multidimensional Arrays
MATLAB arrays of any type can be multidimensional. A vector of integers is
stored where each element is the size of the corresponding dimension. The
storage of the data is the same as matrices.