@Immutable public class ArrayScalar extends Array
| Constructor and Description |
|---|
ArrayScalar(Object value,
boolean isUnsigned) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(Index ima)
Get the array element at the current element of ima, as a boolean.
|
boolean |
getBoolean(int elem) |
byte |
getByte(Index ima)
Get the array element at the current element of ima, as a byte.
|
byte |
getByte(int elem) |
char |
getChar(Index ima)
Get the array element at the current element of ima, as a char.
|
char |
getChar(int elem) |
double |
getDouble(Index ima)
Get the array element at the current element of ima, as a double.
|
double |
getDouble(int elem) |
Class |
getElementType()
Get the element class type of this Array
|
float |
getFloat(Index ima)
Get the array element at the current element of ima, as a float.
|
float |
getFloat(int elem) |
int |
getInt(Index ima)
Get the array element at the current element of ima, as a int.
|
int |
getInt(int elem) |
long |
getLong(Index ima)
Get the array element at the current element of ima, as a long.
|
long |
getLong(int elem) |
Object |
getObject(Index ima)
Get the array element at index as an Object.
|
Object |
getObject(int elem) |
short |
getShort(Index ima)
Get the array element at the current element of ima, as a short.
|
short |
getShort(int elem) |
Object |
getStorage()
Get underlying primitive array storage.
|
void |
setBoolean(Index ima,
boolean value)
Set the array element at the current element of ima.
|
void |
setBoolean(int elem,
boolean value) |
void |
setByte(Index ima,
byte value)
Set the array element at the current element of ima.
|
void |
setByte(int elem,
byte value) |
void |
setChar(Index ima,
char value)
Set the array element at the current element of ima.
|
void |
setChar(int elem,
char value) |
void |
setDouble(Index ima,
double value)
Set the array element at the current element of ima.
|
void |
setDouble(int elem,
double val) |
void |
setFloat(Index ima,
float value)
Set the array element at the current element of ima.
|
void |
setFloat(int elem,
float val) |
void |
setInt(Index ima,
int value)
Set the array element at the current element of ima.
|
void |
setInt(int elem,
int value) |
void |
setLong(Index ima,
long value)
Set the array element at the current element of ima.
|
void |
setLong(int elem,
long value) |
void |
setObject(Index ima,
Object value)
Set the array element at index to the specified value.
|
void |
setObject(int elem,
Object value) |
void |
setShort(Index ima,
short value)
Set the array element at the current element of ima.
|
void |
setShort(int elem,
short value) |
arraycopy, copy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getRangeIterator, getRank, getShape, getSize, getSizeBytes, hasNext, isConstant, isUnsigned, isVlen, makeArray, makeArray, makeArray, makeArrayRankPlusOne, makeFromJavaArray, makeFromJavaArray, makeObjectArray, makeVlenArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, shapeToString, slice, toString, transposepublic ArrayScalar(Object value, boolean isUnsigned)
public boolean getBoolean(Index ima)
ArraygetBoolean in class Arrayima - Index with current element setindex cast to boolean if necessary.public boolean getBoolean(int elem)
getBoolean in class Arraypublic byte getByte(Index ima)
Arraypublic char getChar(Index ima)
Arraypublic double getDouble(Index ima)
Arraypublic Class getElementType()
ArraygetElementType in class Arraypublic float getFloat(Index ima)
Arraypublic int getInt(Index ima)
Arraypublic long getLong(Index ima)
Arraypublic Object getObject(Index ima)
Arraypublic short getShort(Index ima)
Arraypublic Object getStorage()
ArraygetStorage in class Arraypublic void setBoolean(Index ima, boolean value)
ArraysetBoolean in class Arrayima - Index with current element setvalue - the new value; cast to underlying data type if necessary.public void setBoolean(int elem,
boolean value)
setBoolean in class Arraypublic void setByte(Index ima, byte value)
Arraypublic void setChar(Index ima, char value)
Arraypublic void setDouble(Index ima, double value)
Arraypublic void setFloat(Index ima, float value)
Arraypublic void setInt(Index ima, int value)
Arraypublic void setLong(Index ima, long value)
Arraypublic void setObject(Index ima, Object value)
Arraypublic void setShort(Index ima, short value)
Array