|
JMatIO 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmatio.types.MLArray
com.jmatio.types.MLNumericArray<java.lang.Byte>
com.jmatio.types.MLUInt8
public class MLUInt8
Class represents UInt8 (byte) array (matrix)
| Field Summary |
|---|
| Fields inherited from class com.jmatio.types.MLArray |
|---|
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 Summary | |
|---|---|
MLUInt8(java.lang.String name,
byte[][] vals)
Jama [math.nist.gov] style: construct a 2D real matrix from byte[][]
Note: array is converted to Byte[] |
|
MLUInt8(java.lang.String name,
byte[] vals,
int m)
Jama [math.nist.gov] style: construct a matrix from a one-dimensional packed array |
|
MLUInt8(java.lang.String name,
java.lang.Byte[] vals,
int m)
Jama [math.nist.gov] style: construct a 2D real matrix from a one-dimensional packed array |
|
MLUInt8(java.lang.String name,
int[] dims)
Create a array with given name,
and dimensions. |
|
MLUInt8(java.lang.String name,
int[] dims,
int type,
int attributes)
Normally this constructor is used only by MatFileReader and MatFileWriter |
|
| Method Summary | |
|---|---|
protected java.lang.Byte |
_get(java.nio.ByteBuffer buffer,
int index)
Override to accelerate the performance |
java.lang.Byte |
buldFromBytes(byte[] bytes)
|
java.lang.Byte[] |
createArray(int m,
int n)
|
byte[][] |
getArray()
Gets two-dimensional real array. |
byte[] |
getByteArray(java.lang.Byte value)
|
int |
getBytesAllocated()
|
java.lang.Class<java.lang.Byte> |
getStorageClazz()
|
| Methods inherited from class com.jmatio.types.MLNumericArray |
|---|
_set, contentToString, dispose, equals, get, get, getImaginary, getImaginary, getImaginaryByteBuffer, getReal, getReal, getRealByteBuffer, putImaginaryByteBuffer, putRealByteBuffer, set, set, set, setImaginary, setImaginary, setReal, setReal, setReal |
| Methods inherited from class com.jmatio.types.MLArray |
|---|
getDimensions, 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, typeToString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MLUInt8(java.lang.String name,
int[] dims,
int type,
int attributes)
name - - array namedims - - array dimensionstype - - array type: here mxDOUBLE_CLASSattributes - - array flags
public MLUInt8(java.lang.String name,
int[] dims)
MLUInt8 array with given name,
and dimensions.
name - - array namedims - - array dimensions
public MLUInt8(java.lang.String name,
java.lang.Byte[] vals,
int m)
name - - array namevals - - One-dimensional array of doubles, packed by columns (ala Fortran).m - - Number of rows
public MLUInt8(java.lang.String name,
byte[][] vals)
byte[][]
Note: array is converted to Byte[]
name - - array namevals - - two-dimensional array of values
public MLUInt8(java.lang.String name,
byte[] vals,
int m)
name - - array namevals - - One-dimensional array of doubles, packed by columns (ala Fortran).m - - Number of rows| Method Detail |
|---|
public java.lang.Byte[] createArray(int m,
int n)
public byte[][] getArray()
public java.lang.Byte buldFromBytes(byte[] bytes)
public byte[] getByteArray(java.lang.Byte value)
public int getBytesAllocated()
public java.lang.Class<java.lang.Byte> getStorageClazz()
protected java.lang.Byte _get(java.nio.ByteBuffer buffer,
int index)
_get in class MLNumericArray<java.lang.Byte>MLNumericArray._get(java.nio.ByteBuffer, int)
|
JMatIO 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||