public class MLUInt8 extends MLNumericArray<Byte>
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 |
|---|
MLUInt8(String name,
byte[][] vals)
Jama [math.nist.gov] style:
construct a 2D real matrix from
byte[][]
Note: array is converted to Byte[] |
MLUInt8(String name,
byte[] vals,
int m)
Jama [math.nist.gov] style:
construct a matrix from a one-dimensional packed array
|
MLUInt8(String name,
Byte[] vals,
int m)
Jama [math.nist.gov] style:
construct a 2D real matrix from a one-dimensional packed array
|
MLUInt8(String name,
int[] dims)
Create a
array with given name,
and dimensions. |
MLUInt8(String name,
int[] dims,
int type,
int attributes)
Normally this constructor is used only by MatFileReader and MatFileWriter
|
| Modifier and Type | Method and Description |
|---|---|
Byte |
buldFromBytes(byte[] bytes) |
Byte[] |
createArray(int m,
int n) |
protected Byte |
get(ByteBuffer buffer,
int index)
Override to accelerate the performance
|
byte[][] |
getArray()
Gets two-dimensional real array.
|
byte[] |
getByteArray(Byte value) |
int |
getBytesAllocated() |
Class<Byte> |
getStorageClazz() |
allocate, contentToString, dispose, equals, get, get, getImaginary, getImaginary, getImaginaryByteBuffer, getReal, getReal, getRealByteBuffer, putImaginaryByteBuffer, putRealByteBuffer, set, set, set, set, setImaginary, setImaginary, setReal, setReal, 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 MLUInt8(String name, int[] dims, int type, int attributes)
name - - array namedims - - array dimensionstype - - array type: here mxDOUBLE_CLASSattributes - - array flagspublic MLUInt8(String name, int[] dims)
MLUInt8 array with given name,
and dimensions.name - - array namedims - - array dimensionspublic MLUInt8(String name, Byte[] vals, int m)
name - - array namevals - - One-dimensional array of doubles, packed by columns (ala Fortran).m - - Number of rowspublic MLUInt8(String name, byte[][] vals)
byte[][]
Note: array is converted to Byte[]name - - array namevals - - two-dimensional array of valuespublic Byte[] createArray(int m, int n)
public byte[][] getArray()
public Byte buldFromBytes(byte[] bytes)
public byte[] getByteArray(Byte value)
public int getBytesAllocated()
protected Byte get(ByteBuffer buffer, int index)
get in class MLNumericArray<Byte>MLNumericArray.get(java.nio.ByteBuffer, int)Copyright © 2016. All rights reserved.