public class ArrayInt extends Array
Array| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayInt.D0
Concrete implementation of Array specialized for ints, rank 0.
|
static class |
ArrayInt.D1
Concrete implementation of Array specialized for ints, rank 1.
|
static class |
ArrayInt.D2
Concrete implementation of Array specialized for ints, rank 2.
|
static class |
ArrayInt.D3
Concrete implementation of Array specialized for ints, rank 3.
|
static class |
ArrayInt.D4
Concrete implementation of Array specialized for ints, rank 4.
|
static class |
ArrayInt.D5
Concrete implementation of Array specialized for ints, rank 5.
|
static class |
ArrayInt.D6
Concrete implementation of Array specialized for ints, rank 6.
|
static class |
ArrayInt.D7
Concrete implementation of Array specialized for ints, rank 7.
|
| Constructor and Description |
|---|
ArrayInt(int[] dimensions,
boolean isUnsigned)
Create a new Array of type int and the given shape.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(Index i)
Get the value at the specified index.
|
boolean |
getBoolean(Index i)
not legal, throw ForbiddenConversionException
|
boolean |
getBoolean(int index) |
byte |
getByte(Index i)
Get the array element at the current element of ima, as a byte.
|
byte |
getByte(int index) |
char |
getChar(Index i)
Get the array element at the current element of ima, as a char.
|
char |
getChar(int index) |
ByteBuffer |
getDataAsByteBuffer()
This gets the data as a ByteBuffer, in correct order.
|
ByteBuffer |
getDataAsByteBuffer(ByteOrder order) |
double |
getDouble(Index i)
Get the array element at the current element of ima, as a double.
|
double |
getDouble(int index) |
Class |
getElementType()
Return the element class type
|
float |
getFloat(Index i)
Get the array element at the current element of ima, as a float.
|
float |
getFloat(int index) |
int |
getInt(Index i)
Get the array element at the current element of ima, as a int.
|
int |
getInt(int index) |
long |
getLong(Index i)
Get the array element at the current element of ima, as a long.
|
long |
getLong(int index) |
Object |
getObject(Index i)
Get the array element at index as an Object.
|
Object |
getObject(int index) |
short |
getShort(Index i)
Get the array element at the current element of ima, as a short.
|
short |
getShort(int index) |
Object |
getStorage()
Get underlying primitive array storage.
|
void |
set(Index i,
int value)
Set the value at the specified index.
|
void |
setBoolean(Index i,
boolean value)
not legal, throw ForbiddenConversionException
|
void |
setBoolean(int index,
boolean value) |
void |
setByte(Index i,
byte value)
Set the array element at the current element of ima.
|
void |
setByte(int index,
byte value) |
void |
setChar(Index i,
char value)
Set the array element at the current element of ima.
|
void |
setChar(int index,
char value) |
void |
setDouble(Index i,
double value)
Set the array element at the current element of ima.
|
void |
setDouble(int index,
double value) |
void |
setFloat(Index i,
float value)
Set the array element at the current element of ima.
|
void |
setFloat(int index,
float value) |
void |
setInt(Index i,
int value)
Set the array element at the current element of ima.
|
void |
setInt(int index,
int value) |
void |
setLong(Index i,
long value)
Set the array element at the current element of ima.
|
void |
setLong(int index,
long value) |
void |
setObject(Index i,
Object value)
Set the array element at index to the specified value.
|
void |
setObject(int index,
Object value) |
void |
setShort(Index i,
short value)
Set the array element at the current element of ima.
|
void |
setShort(int index,
short value) |
arraycopy, copy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, 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 ArrayInt(int[] dimensions,
boolean isUnsigned)
dimensions - the shape of the Array.public int get(Index i)
i - the indexpublic boolean getBoolean(Index i)
getBoolean in class Arrayi - Index with current element setindex cast to boolean if necessary.public boolean getBoolean(int index)
getBoolean in class Arraypublic byte getByte(Index i)
Arraypublic char getChar(Index i)
Arraypublic ByteBuffer getDataAsByteBuffer()
ArraygetDataAsByteBuffer in class Arraypublic ByteBuffer getDataAsByteBuffer(ByteOrder order)
getDataAsByteBuffer in class Arraypublic double getDouble(Index i)
Arraypublic Class getElementType()
getElementType in class Arraypublic float getFloat(Index i)
Arraypublic int getInt(Index i)
Arraypublic long getLong(Index i)
Arraypublic Object getObject(Index i)
Arraypublic short getShort(Index i)
Arraypublic Object getStorage()
ArraygetStorage in class Arraypublic void set(Index i, int value)
i - the indexvalue - set to this valuepublic void setBoolean(Index i, boolean value)
setBoolean in class Arrayi - Index with current element setvalue - the new value; cast to underlying data type if necessary.public void setBoolean(int index,
boolean value)
setBoolean in class Arraypublic void setByte(Index i, byte value)
Arraypublic void setChar(Index i, char value)
Arraypublic void setDouble(Index i, double value)
Arraypublic void setFloat(Index i, float value)
Arraypublic void setInt(Index i, int value)
Arraypublic void setLong(Index i, long value)
Arraypublic void setObject(Index i, Object value)
Arraypublic void setShort(Index i, short value)
Array