T - type of numberpublic abstract class MLNumericArray<T extends Number> extends MLArray implements ByteStorageSupport<T>
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 |
|---|
MLNumericArray(String name,
int[] dims,
int type,
int attributes)
Normally this constructor is used only by MatFileReader and MatFileWriter
|
MLNumericArray(String name,
int type,
T[] vals,
int m)
Jama [math.nist.gov] style:
construct a 2D real matrix from a one-dimensional packed array
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocate() |
String |
contentToString() |
void |
dispose() |
boolean |
equals(Object o) |
protected T |
get(ByteBuffer buffer,
int index) |
T |
get(int index) |
T |
get(int m,
int n)
Does the same as
getReal. |
T |
getImaginary(int index) |
T |
getImaginary(int m,
int n)
Gets single imaginary array element of A(m,n).
|
ByteBuffer |
getImaginaryByteBuffer() |
T |
getReal(int index) |
T |
getReal(int m,
int n)
Gets single real array element of A(m,n).
|
ByteBuffer |
getRealByteBuffer() |
void |
putImaginaryByteBuffer(ByteBuffer buff) |
void |
putRealByteBuffer(ByteBuffer buff) |
protected void |
set(ByteBuffer buffer,
T value,
int index) |
void |
set(T[] vector) |
void |
set(T value,
int index)
Does the same as
setReal. |
void |
set(T value,
int m,
int n)
Does the same as
setReal. |
void |
setImaginary(T value,
int index)
Sets single real array element.
|
void |
setImaginary(T value,
int m,
int n)
Sets single imaginary array element.
|
void |
setReal(T[] vector)
Sets real part of matrix
|
void |
setReal(T value,
int index)
Sets single real array element.
|
void |
setReal(T value,
int m,
int n)
Sets single real array element.
|
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, typeToStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuldFromBytes, getByteArray, getBytesAllocated, getStorageClazzpublic MLNumericArray(String name, int[] dims, int type, int attributes)
name - - array namedims - - array dimensionstype - - array typeattributes - - array flagspublic MLNumericArray(String name, int type, T[] vals, int m)
name - - array nametype - - array typevals - - One-dimensional array of doubles, packed by columns (ala Fortran).m - - Number of rowsprotected void allocate()
public T getReal(int m, int n)
m - - row indexn - - column indexpublic T getReal(int index)
index - indexpublic void setReal(T value, int m, int n)
value - - element valuem - - row indexn - - column indexpublic void setReal(T value, int index)
value - - element valueindex - - column-packed vector indexpublic void setReal(T[] vector)
vector - - column-packed vector of elementspublic void setImaginary(T value, int m, int n)
value - - element valuem - - row indexn - - column indexpublic void setImaginary(T value, int index)
value - - element valueindex - - column-packed vector indexpublic T getImaginary(int m, int n)
m - - row indexn - - column indexpublic T getImaginary(int index)
index - indexpublic void set(T value, int m, int n)
setReal.value - - element valuem - - row indexn - - column indexpublic void set(T value, int index)
setReal.value - - element valueindex - - column-packed vector indexpublic T get(int m, int n)
getReal.m - - row indexn - - column indexpublic T get(int index)
index - indexpublic void set(T[] vector)
vector - vectorprotected T get(ByteBuffer buffer, int index)
protected void set(ByteBuffer buffer, T value, int index)
public void putImaginaryByteBuffer(ByteBuffer buff)
public ByteBuffer getImaginaryByteBuffer()
public void putRealByteBuffer(ByteBuffer buff)
public ByteBuffer getRealByteBuffer()
public String contentToString()
contentToString in class MLArrayCopyright © 2016. All rights reserved.