public class ArrayRagged extends Array
Modifier | Constructor and Description |
---|---|
protected |
ArrayRagged(int[] shape) |
Modifier and Type | Method and Description |
---|---|
Array |
copy()
DO NOT USE, throws UnsupportedOperationException
|
protected void |
copyFrom1DJavaArray(IndexIterator iter,
java.lang.Object javaArray) |
protected void |
copyTo1DJavaArray(IndexIterator iter,
java.lang.Object javaArray) |
protected Array |
createView(Index index)
DO NOT USE, throws UnsupportedOperationException
|
boolean |
getBoolean(Index i)
DO NOT USE, throw ForbiddenConversionException
|
boolean |
getBoolean(int index) |
byte |
getByte(Index i)
DO NOT USE, throw ForbiddenConversionException
|
byte |
getByte(int index) |
char |
getChar(Index i)
DO NOT USE, throw ForbiddenConversionException
|
char |
getChar(int index) |
double |
getDouble(Index i)
DO NOT USE, throw ForbiddenConversionException
|
double |
getDouble(int index) |
java.lang.Class |
getElementType()
Get the element class type of this Array
|
float |
getFloat(Index i)
DO NOT USE, throw ForbiddenConversionException
|
float |
getFloat(int index) |
int |
getInt(Index i)
DO NOT USE, throw ForbiddenConversionException
|
int |
getInt(int index) |
long |
getLong(Index i)
DO NOT USE, throw ForbiddenConversionException
|
long |
getLong(int index) |
java.lang.Object |
getObject(Index ima)
Get the array element at index as an Object.
|
java.lang.Object |
getObject(int elem) |
short |
getShort(Index i)
DO NOT USE, throw ForbiddenConversionException
|
short |
getShort(int index) |
java.lang.Object |
getStorage()
Get underlying primitive array storage.
|
void |
setBoolean(Index i,
boolean value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setBoolean(int index,
boolean value) |
void |
setByte(Index i,
byte value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setByte(int index,
byte value) |
void |
setChar(Index i,
char value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setChar(int index,
char value) |
void |
setDouble(Index i,
double value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setDouble(int index,
double value) |
void |
setFloat(Index i,
float value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setFloat(int index,
float value) |
void |
setInt(Index i,
int value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setInt(int index,
int value) |
void |
setLong(Index i,
long value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setLong(int index,
long value) |
void |
setObject(Index ima,
java.lang.Object value)
Set the array element at index to the specified value.
|
void |
setObject(int elem,
java.lang.Object value) |
void |
setShort(Index i,
short value)
DO NOT USE, throw ForbiddenConversionException
|
void |
setShort(int index,
short value) |
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getIndexIteratorFast, getIndexPrivate, getRangeIterator, getRank, getShape, getSize, getSizeBytes, hasNext, isConstant, isUnsigned, makeArray, makeArray, makeArray, makeArray, makeArrayRankPlusOne, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, setUnsigned, shapeToString, slice, toString, transpose
public java.lang.Class getElementType()
Array
getElementType
in class Array
protected Array createView(Index index)
createView
in class Array
index
- use this Indexpublic java.lang.Object getStorage()
Array
getStorage
in class Array
protected void copyFrom1DJavaArray(IndexIterator iter, java.lang.Object javaArray)
copyFrom1DJavaArray
in class Array
protected void copyTo1DJavaArray(IndexIterator iter, java.lang.Object javaArray)
copyTo1DJavaArray
in class Array
public Array copy()
public double getDouble(Index i)
public void setDouble(Index i, double value)
public float getFloat(Index i)
public void setFloat(Index i, float value)
public long getLong(Index i)
public void setLong(Index i, long value)
public int getInt(Index i)
public void setInt(Index i, int value)
public short getShort(Index i)
public void setShort(Index i, short value)
public byte getByte(Index i)
public void setByte(Index i, byte value)
public boolean getBoolean(Index i)
getBoolean
in class Array
i
- Index with current element setindex
cast to boolean if necessary.public void setBoolean(Index i, boolean value)
setBoolean
in class Array
i
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public java.lang.Object getObject(Index ima)
Array
public void setObject(Index ima, java.lang.Object value)
Array
public char getChar(Index i)
public void setChar(Index i, char value)
public boolean getBoolean(int index)
getBoolean
in class Array
public void setBoolean(int index, boolean value)
setBoolean
in class Array