M - int array type, ex. int[], int[][], int[][][], ...public class MatlabInt32Array<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
MatlabInt32 |
getElementAtIndices(int row,
int column,
int... pages)
Gets the element at the specified
row, column, and pages. |
MatlabInt32 |
getElementAtLinearIndex(int index)
Gets the element at
index treating this array as a MATLAB column vector. |
static <T> MatlabInt32Array<T> |
getInstance(T real,
T imaginary) |
int |
getLengthOfDimension(int dimension)
Returns the length of the dimension specified by
dimension. |
int |
getNumberOfDimensions()
Returns the number of dimensions of the array.
|
int |
getNumberOfElements()
The number of elements in the array.
|
int |
hashCode() |
boolean |
isReal()
Returns
true if the array has no imaginary values, false otherwise. |
T |
toImaginaryArray()
Returns an array that holds the imaginary values from the MATLAB array.
|
T |
toRealArray()
Returns an array that holds the real values from the MATLAB array.
|
String |
toString()
Returns a brief description of this array.
|
public static <T> MatlabInt32Array<T> getInstance(T real, T imaginary)
public MatlabInt32 getElementAtLinearIndex(int index)
index treating this array as a MATLAB column vector. This is equivalent to indexing
into a MATLAB array with just one subscript.indexArrayIndexOutOfBoundsException - if index is out of boundspublic MatlabInt32 getElementAtIndices(int row, int column, int... pages)
row, column, and pages.row, column, and pagesIllegalArgumentException - if number of indices does not equal this array's number of dimensionsArrayIndexOutOfBoundsException - if the indices are out of boundpublic boolean isReal()
true if the array has no imaginary values, false otherwise. Equivalent to the MATLAB
isreal function.public T toRealArray()
public T toImaginaryArray()
0 as all of its base elements.public int getNumberOfElements()
numel function.public int getLengthOfDimension(int dimension)
dimension. Dimensions use 0-based indexing. So the
first dimension, which is dimension 0, is the row length. The second dimension is the column length. The third
dimension and beyond are pages.dimension - dimensionIllegalArgumentException - if dimension is not a dimension of the arraypublic int getNumberOfDimensions()
public String toString()