4 Using MWArra y Classes
Row and column index arrays are used to construct the sparse array such that
the following holds true, with space allocated for
nzmax nonzeros:
S(rowIndex(k), columnIndex(k)) = realData(k) + imagData(k)*i
If you assign multiple values to a single rowIndex and colIndex pair, then
the element at that index is assigned the sum of these values.
rows and cols
Number o f rows and columns in the m atrix
nzmax
Maximum number of nonzero elements
classID
MWClassID
representingtheMATLABtypeofthearray. TheonlyclassID
currently supported is MWClassID.DOUBLE.
Valid types for the
realData and imagData parameters are a s follows:
•
double[]
• float[]
• long[]
• int[]
• short[]
• byte[]
• boolean[]
• One-dimensional arrays of any subclass of java.lang.Number
• One-dimensional arrays of java.lang.Boolean
• One-dimensional arrays of java.lang.String
4-68
Komentarze do niniejszej Instrukcji