@Immutable public class ArrayScalar extends Array
| 构造器 | 说明 |
|---|---|
ArrayScalar(Object value) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected void |
copyFrom1DJavaArray(IndexIterator iter,
Object javaArray) |
|
protected void |
copyTo1DJavaArray(IndexIterator iter,
Object javaArray) |
|
protected Array |
createView(Index index) |
create new Array with given Index and the same backing store
|
boolean |
getBoolean(int elem) |
|
boolean |
getBoolean(Index ima) |
Get the array element at the current element of ima, as a boolean.
|
byte |
getByte(int elem) |
|
byte |
getByte(Index ima) |
Get the array element at the current element of ima, as a byte.
|
char |
getChar(int elem) |
|
char |
getChar(Index ima) |
Get the array element at the current element of ima, as a char.
|
Complex |
getComplex(int index) |
|
Complex |
getComplex(Index index) |
Get the array element at the current element of ima, as a complex.
|
double |
getDouble(int elem) |
|
double |
getDouble(Index ima) |
Get the array element at the current element of ima, as a double.
|
Class |
getElementType() |
Get the element class type of this Array
|
float |
getFloat(int elem) |
|
float |
getFloat(Index ima) |
Get the array element at the current element of ima, as a float.
|
int |
getInt(int elem) |
|
int |
getInt(Index ima) |
Get the array element at the current element of ima, as a int.
|
long |
getLong(int elem) |
|
long |
getLong(Index ima) |
Get the array element at the current element of ima, as a long.
|
Object |
getObject(int elem) |
|
Object |
getObject(Index ima) |
Get the array element at index as an Object.
|
short |
getShort(int elem) |
|
short |
getShort(Index ima) |
Get the array element at the current element of ima, as a short.
|
Object |
getStorage() |
Get underlying primitive array storage.
|
String |
getString(int index) |
|
String |
getString(Index index) |
Get the array element at the current element of ima, as a string.
|
void |
setBoolean(int elem,
boolean value) |
|
void |
setBoolean(Index ima,
boolean value) |
Set the array element at the current element of ima.
|
void |
setByte(int elem,
byte value) |
|
void |
setByte(Index ima,
byte value) |
Set the array element at the current element of ima.
|
void |
setChar(int elem,
char value) |
|
void |
setChar(Index ima,
char value) |
Set the array element at the current element of ima.
|
void |
setComplex(int index,
Complex value) |
|
void |
setComplex(Index index,
Complex value) |
Set the array element at the current element of ima.
|
void |
setDouble(int elem,
double val) |
|
void |
setDouble(Index ima,
double value) |
Set the array element at the current element of ima.
|
void |
setFloat(int elem,
float val) |
|
void |
setFloat(Index ima,
float value) |
Set the array element at the current element of ima.
|
void |
setInt(int elem,
int value) |
|
void |
setInt(Index ima,
int value) |
Set the array element at the current element of ima.
|
void |
setLong(int elem,
long value) |
|
void |
setLong(Index ima,
long value) |
Set the array element at the current element of ima.
|
void |
setObject(int elem,
Object value) |
|
void |
setObject(Index ima,
Object value) |
Set the array element at index to the specified value. the value must be
passed wrapped in the appropriate Object (eg Double for double)
|
void |
setShort(int elem,
short value) |
|
void |
setShort(Index ima,
short value) |
Set the array element at the current element of ima.
|
void |
setString(int index,
String value) |
|
void |
setString(Index index,
String value) |
Set the array element at the current element of ima.
|
arraycopy, copy, 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, reshapeVLen, section, section, section, sectionNoReduce, sectionNoReduce, setUnsigned, shapeToString, slice, toString, transposepublic ArrayScalar(Object value)
public Class getElementType()
ArraygetElementType 在类中 Arrayprotected Array createView(Index index)
ArraycreateView 在类中 Arrayindex - use this Indexpublic Object getStorage()
ArraygetStorage 在类中 Arrayprotected void copyFrom1DJavaArray(IndexIterator iter, Object javaArray)
copyFrom1DJavaArray 在类中 Arrayprotected void copyTo1DJavaArray(IndexIterator iter, Object javaArray)
copyTo1DJavaArray 在类中 Arraypublic double getDouble(Index ima)
Arraypublic void setDouble(Index ima, double value)
Arraypublic float getFloat(Index ima)
Arraypublic void setFloat(Index ima, float value)
Arraypublic long getLong(Index ima)
Arraypublic void setLong(Index ima, long value)
Arraypublic int getInt(Index ima)
Arraypublic void setInt(Index ima, int value)
Arraypublic short getShort(Index ima)
Arraypublic void setShort(Index ima, short value)
Arraypublic byte getByte(Index ima)
Arraypublic void setByte(Index ima, byte value)
Arraypublic char getChar(Index ima)
Arraypublic void setChar(Index ima, char value)
Arraypublic boolean getBoolean(Index ima)
ArraygetBoolean 在类中 Arrayima - Index with current element setindex cast to boolean if necessary.public void setBoolean(Index ima, boolean value)
ArraysetBoolean 在类中 Arrayima - Index with current element setvalue - the new value; cast to underlying data type if necessary.public String getString(Index index)
Arraypublic void setString(Index index, String value)
Arraypublic Complex getComplex(Index index)
ArraygetComplex 在类中 Arrayindex - Index with current element setindex cast to boolean if necessary.public void setComplex(Index index, Complex value)
ArraysetComplex 在类中 Arrayindex - Index with current element setvalue - the new value; cast to underlying data type if necessary.public Object getObject(Index ima)
Arraypublic void setObject(Index ima, Object value)
Arraypublic boolean getBoolean(int elem)
getBoolean 在类中 Arraypublic void setBoolean(int elem,
boolean value)
setBoolean 在类中 Arraypublic Complex getComplex(int index)
getComplex 在类中 Arraypublic void setComplex(int index,
Complex value)
setComplex 在类中 ArrayCopyright © 2019. All rights reserved.