public class MLSparse extends MLNumericArray<Double>
attributes, dims, mtFLAG_COMPLEX, mtFLAG_GLOBAL, mtFLAG_LOGICAL, mtFLAG_TYPE, mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxOBJECT_CLASS, mxOPAQUE_CLASS, mxSINGLE_CLASS, mxSPARSE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, mxUNKNOWN_CLASS, name, type| Constructor and Description |
|---|
MLSparse(String name,
int[] dims,
int attributes,
int nzmax) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocate() |
Double |
buldFromBytes(byte[] bytes) |
String |
contentToString() |
Double[] |
exportImaginary()
Returns the imaginary part (PI) array.
|
Double[] |
exportReal()
Returns the real part (PR) array.
|
byte[] |
getByteArray(Double value) |
int |
getBytesAllocated() |
Double |
getImaginary(int index) |
Double |
getImaginary(int m,
int n)
Gets single imaginary array element of A(m,n).
|
int[] |
getIR()
Gets row indices
ir points to an integer array of length nzmax containing the row indices of
the corresponding elements in pr and pi.
|
int[] |
getJC()
Gets column indices.
|
int |
getMaxNZ()
Gets maximum number of non-zero values
|
Double |
getReal(int index) |
Double |
getReal(int m,
int n)
Gets single real array element of A(m,n).
|
Class<Double> |
getStorageClazz() |
void |
setImaginary(Double value,
int index)
Sets single real array element.
|
void |
setImaginary(Double value,
int m,
int n)
Sets single imaginary array element.
|
void |
setReal(Double value,
int index)
Sets single real array element.
|
void |
setReal(Double value,
int m,
int n)
Sets single real array element.
|
dispose, equals, get, get, get, getImaginaryByteBuffer, getRealByteBuffer, putImaginaryByteBuffer, putRealByteBuffer, set, set, set, set, setRealgetDimensions, getFlags, getIndex, getM, getN, getName, getNameToByteArray, getNDimensions, getSize, getType, isCell, isChar, isComplex, isDouble, isEmpty, isFunctionObject, isInt16, isInt32, isInt64, isInt8, isLogical, isObject, isOpaque, isSingle, isSparse, isStruct, isUint16, isUint32, isUint64, isUint8, isUnknown, toString, typeToStringpublic MLSparse(String name, int[] dims, int attributes, int nzmax)
name - namedims - dimsattributes - attributesnzmax - nzmaxprotected void allocate()
allocate in class MLNumericArray<Double>public int getMaxNZ()
public int[] getIR()
public int[] getJC()
public Double getReal(int m, int n)
MLNumericArraygetReal in class MLNumericArray<Double>m - - row indexn - - column indexpublic Double getReal(int index)
getReal in class MLNumericArray<Double>index - indexpublic void setReal(Double value, int m, int n)
MLNumericArraysetReal in class MLNumericArray<Double>value - valuem - mn - npublic void setReal(Double value, int index)
MLNumericArraysetReal in class MLNumericArray<Double>value - valueindex - indexpublic void setImaginary(Double value, int m, int n)
MLNumericArraysetImaginary in class MLNumericArray<Double>value - valuem - mn - npublic void setImaginary(Double value, int index)
MLNumericArraysetImaginary in class MLNumericArray<Double>value - imaginary valueindex - indexpublic Double getImaginary(int m, int n)
MLNumericArraygetImaginary in class MLNumericArray<Double>m - - row indexn - - column indexpublic Double getImaginary(int index)
getImaginary in class MLNumericArray<Double>index - indexpublic Double[] exportReal()
public Double[] exportImaginary()
public String contentToString()
contentToString in class MLNumericArray<Double>public int getBytesAllocated()
public Double buldFromBytes(byte[] bytes)
public byte[] getByteArray(Double value)
Copyright © 2018. All rights reserved.