ArrayString.D0, ArrayString.D1, ArrayString.D2, ArrayString.D3, ArrayString.D4, ArrayString.D5, ArrayString.D6, ArrayString.D7public class ArrayString extends Array
Array| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
ArrayString.D0 |
Concrete implementation of Array specialized for String, rank 0.
|
static class |
ArrayString.D1 |
Concrete implementation of Array specialized for Strings, rank 1.
|
static class |
ArrayString.D2 |
Concrete implementation of Array specialized for Strings, rank 2.
|
static class |
ArrayString.D3 |
Concrete implementation of Array specialized for Strings, rank 3.
|
static class |
ArrayString.D4 |
Concrete implementation of Array specialized for Strings, rank 4.
|
static class |
ArrayString.D5 |
Concrete implementation of Array specialized for Strings, rank 5.
|
static class |
ArrayString.D6 |
Concrete implementation of Array specialized for Strings, rank 6.
|
static class |
ArrayString.D7 |
Concrete implementation of Array specialized for Strings, rank 7.
|
| 构造器 | 说明 |
|---|---|
ArrayString(int[] dimensions) |
Create a new Array of type long and the given shape. dimensions.length
determines the rank of the new Array.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected void |
copyFrom1DJavaArray(IndexIterator iter,
Object javaArray) |
|
protected void |
copyTo1DJavaArray(IndexIterator iter,
Object javaArray) |
|
protected Array |
createView(Index index) |
create new Array with given indexImpl and same backing store
|
String |
get(Index i) |
get the value at the specified index.
|
boolean |
getBoolean(int index) |
|
boolean |
getBoolean(Index i) |
not legal, throw ForbiddenConversionException
|
byte |
getByte(int index) |
|
byte |
getByte(Index i) |
not legal, throw ForbiddenConversionException
|
char |
getChar(int index) |
|
char |
getChar(Index i) |
not legal, throw ForbiddenConversionException
|
Complex |
getComplex(int index) |
|
Complex |
getComplex(Index i) |
Get the array element at the current element of ima, as a complex.
|
ByteBuffer |
getDataAsByteBuffer() |
This gets the data as a ByteBuffer, in correct order.
|
double |
getDouble(int index) |
|
double |
getDouble(Index i) |
not legal, throw ForbiddenConversionException
|
Class |
getElementType() |
Return the element class type
|
float |
getFloat(int index) |
|
float |
getFloat(Index i) |
not legal, throw ForbiddenConversionException
|
int |
getInt(int index) |
|
int |
getInt(Index i) |
not legal, throw ForbiddenConversionException
|
long |
getLong(int index) |
|
long |
getLong(Index i) |
not legal, throw ForbiddenConversionException
|
Object |
getObject(int index) |
|
Object |
getObject(Index i) |
Get the array element at index as an Object.
|
short |
getShort(int index) |
|
short |
getShort(Index i) |
not legal, throw ForbiddenConversionException
|
Object |
getStorage() |
Get underlying primitive array storage.
|
String |
getString(int index) |
|
String |
getString(Index i) |
Get the array element at the current element of ima, as a string.
|
void |
set(Index i,
String value) |
set the value at the sepcified index.
|
void |
setBoolean(int index,
boolean value) |
|
void |
setBoolean(Index i,
boolean value) |
not legal, throw ForbiddenConversionException
|
void |
setByte(int index,
byte value) |
|
void |
setByte(Index i,
byte value) |
not legal, throw ForbiddenConversionException
|
void |
setChar(int index,
char value) |
|
void |
setChar(Index i,
char value) |
not legal, throw ForbiddenConversionException
|
void |
setComplex(int index,
Complex value) |
|
void |
setComplex(Index i,
Complex value) |
Set the array element at the current element of ima.
|
void |
setDouble(int index,
double value) |
|
void |
setDouble(Index i,
double value) |
not legal, throw ForbiddenConversionException
|
void |
setFloat(int index,
float value) |
|
void |
setFloat(Index i,
float value) |
not legal, throw ForbiddenConversionException
|
void |
setInt(int index,
int value) |
|
void |
setInt(Index i,
int value) |
not legal, throw ForbiddenConversionException
|
void |
setLong(int index,
long value) |
|
void |
setLong(Index i,
long value) |
not legal, throw ForbiddenConversionException
|
void |
setObject(int index,
Object value) |
|
void |
setObject(Index i,
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 index,
short value) |
|
void |
setShort(Index i,
short value) |
not legal, throw ForbiddenConversionException
|
void |
setString(int index,
String value) |
|
void |
setString(Index i,
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, 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, transposeprotected String[] storage
public ArrayString(int[] dimensions)
dimensions - the shape of the Array.protected Array createView(Index index)
createView 在类中 Arrayindex - use this Indexpublic Object getStorage()
ArraygetStorage 在类中 Arrayprotected void copyFrom1DJavaArray(IndexIterator iter, Object javaArray)
copyFrom1DJavaArray 在类中 Arrayprotected void copyTo1DJavaArray(IndexIterator iter, Object javaArray)
copyTo1DJavaArray 在类中 Arraypublic ByteBuffer getDataAsByteBuffer()
ArraygetDataAsByteBuffer 在类中 Arraypublic Class getElementType()
getElementType 在类中 Arraypublic 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 在类中 Arrayi - Index with current element setindex cast to boolean if necessary.public void setBoolean(Index i, boolean value)
setBoolean 在类中 Arrayi - Index with current element setvalue - the new value; cast to underlying data type if necessary.public char getChar(Index i)
public void setChar(Index i, char value)
public String getString(Index i)
Arraypublic void setString(Index i, String value)
Arraypublic Complex getComplex(Index i)
ArraygetComplex 在类中 Arrayi - Index with current element setindex cast to boolean if necessary.public void setComplex(Index i, Complex value)
ArraysetComplex 在类中 Arrayi - Index with current element setvalue - the new value; cast to underlying data type if necessary.public Object getObject(Index i)
Arraypublic void setObject(Index i, Object value)
Arraypublic boolean getBoolean(int index)
getBoolean 在类中 Arraypublic void setBoolean(int index,
boolean value)
setBoolean 在类中 Arraypublic Complex getComplex(int index)
getComplex 在类中 Arraypublic void setComplex(int index,
Complex value)
setComplex 在类中 ArrayCopyright © 2019. All rights reserved.