ArrayChar.D0, ArrayChar.D1, ArrayChar.D2, ArrayChar.D3, ArrayChar.D4, ArrayChar.D5, ArrayChar.D6, ArrayChar.D7public class ArrayChar extends Array
Array| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
ArrayChar.D0 |
Concrete implementation of Array specialized for char, rank 0.
|
static class |
ArrayChar.D1 |
Concrete implementation of Array specialized for char, rank 1.
|
static class |
ArrayChar.D2 |
Concrete implementation of Array specialized for char, rank 2.
|
static class |
ArrayChar.D3 |
Concrete implementation of Array specialized for char, rank 3.
|
static class |
ArrayChar.D4 |
Concrete implementation of Array specialized for char, rank 4.
|
static class |
ArrayChar.D5 |
Concrete implementation of Array specialized for char, rank 5.
|
static class |
ArrayChar.D6 |
Concrete implementation of Array specialized for char, rank 6.
|
static class |
ArrayChar.D7 |
Concrete implementation of Array specialized for char, rank 7.
|
class |
ArrayChar.StringIterator |
rank must be > 0
|
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected char[] |
storage |
| 构造器 | 说明 |
|---|---|
ArrayChar(int[] dimensions) |
Create a new Array of type char and the given shape. dimensions.length
determines the rank of the new Array.
|
ArrayChar(String s) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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
|
char |
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) |
Get the array element at the current element of ima, as a byte.
|
char |
getChar(int index) |
|
char |
getChar(Index i) |
Get the array element at the current element of ima, as a char.
|
Complex |
getComplex(int index) |
|
Complex |
getComplex(Index i) |
not legal, throw ForbiddenConversionException
|
ByteBuffer |
getDataAsByteBuffer() |
Trasfer data to a ByteBuffer.
|
double |
getDouble(int index) |
|
double |
getDouble(Index i) |
Get the array element at the current element of ima, as a double.
|
Class |
getElementType() |
Return the element class type
|
float |
getFloat(int index) |
|
float |
getFloat(Index i) |
Get the array element at the current element of ima, as a float.
|
int |
getInt(int index) |
|
int |
getInt(Index i) |
Get the array element at the current element of ima, as a int.
|
long |
getLong(int index) |
|
long |
getLong(Index i) |
Get the array element at the current element of ima, as a long.
|
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) |
Get the array element at the current element of ima, as a short.
|
Object |
getStorage() |
Get underlying primitive array storage.
|
String |
getString() |
Create a String out of this rank one ArrayChar object.
|
String |
getString(int index) |
Create a String out of this rank two ArrayChar object.
|
String |
getString(Index ima) |
Create a String out of this ArrayChar object.
|
ArrayChar.StringIterator |
getStringIterator() |
Treat this Variable as an array of Strings, and iterate over all the
strings in the array.
|
ArrayObject |
make1DStringArray() |
Make this into the equivilent 1D ArrayObject of Strings.
|
static ArrayChar |
makeFromString(String s,
int max) |
Create an ArrayChar from a String
|
static ArrayChar |
makeFromStringArray(ArrayObject values) |
Create an ArrayChar from an ArrayObject of Strings.
|
static ArrayChar |
makeFromStringArray(ArrayObject values,
int strlen) |
Create an ArrayChar from an ArrayObject of Strings.
|
void |
set(Index i,
char 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) |
Set the array element at the current element of ima.
|
void |
setChar(int index,
char value) |
|
void |
setChar(Index i,
char value) |
Set the array element at the current element of ima.
|
void |
setComplex(int index,
Complex value) |
|
void |
setComplex(Index i,
Complex value) |
not legal, throw ForbiddenConversionException
|
void |
setDouble(int index,
double value) |
|
void |
setDouble(Index i,
double value) |
Set the array element at the current element of ima.
|
void |
setFloat(int index,
float value) |
|
void |
setFloat(Index i,
float value) |
Set the array element at the current element of ima.
|
void |
setInt(int index,
int value) |
|
void |
setInt(Index i,
int value) |
Set the array element at the current element of ima.
|
void |
setLong(int index,
long value) |
|
void |
setLong(Index i,
long value) |
Set the array element at the current element of ima.
|
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) |
Set the array element at the current element of ima.
|
void |
setString(int index,
String val) |
Set the ArrayChar values from the characters in the String.
|
void |
setString(String val) |
Set the ArrayChar values from the characters in the String.
|
void |
setString(Index ima,
String val) |
Set the ArrayChar values from the characters in the String.
|
String |
toString() |
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, transposepublic ArrayChar(int[] dimensions)
dimensions - the shape of the Array.public ArrayChar(String s)
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()
getDataAsByteBuffer 在类中 Arraypublic Class getElementType()
getElementType 在类中 Arraypublic char get(Index i)
public void set(Index i, char value)
public double getDouble(Index i)
Arraypublic void setDouble(Index i, double value)
Arraypublic float getFloat(Index i)
Arraypublic void setFloat(Index i, float value)
Arraypublic long getLong(Index i)
Arraypublic void setLong(Index i, long value)
Arraypublic int getInt(Index i)
Arraypublic void setInt(Index i, int value)
Arraypublic short getShort(Index i)
Arraypublic void setShort(Index i, short value)
Arraypublic byte getByte(Index i)
Arraypublic void setByte(Index i, byte value)
Arraypublic char getChar(Index i)
Arraypublic void setChar(Index i, char value)
Arraypublic 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 Complex getComplex(Index i)
getComplex 在类中 Arrayi - Index with current element setindex cast to boolean if necessary.public void setComplex(Index i, Complex value)
setComplex 在类中 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 String getString()
IllegalArgumentException - if rank != 1public String getString(int index)
getString 在类中 Arrayindex - index into 1D String array, must be < getShape(0). @return
String valueIllegalArgumentException - if rank != 2public String getString(Index ima)
ArrayChar ca;
Index ima = ca.getIndex();
for (int i=0; i
getString 在类中 Arrayima - the Index of where in the Array to start.IllegalArgumentException - if rank != 1public void setString(String val)
val - set characters from this StringIllegalArgumentException - if rank != 2public void setString(int index,
String val)
String[] val = new String[n];
ArrayChar ca;
Index ima = ca.getIndex();
for (int i=0; i
public void setString(Index ima, String val)
String[][] val;
ArrayChar ca;
Index ima = ca.getIndex();
int rank0 = ca.getShape()[0];
int rank1 = ca.getShape()[1];
for (int i=0; i
public 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 在类中 Arraypublic ArrayChar.StringIterator getStringIterator()
public ArrayObject make1DStringArray()
public static ArrayChar makeFromString(String s, int max)
s - Stringmax - maximum lengthpublic static ArrayChar makeFromStringArray(ArrayObject values)
values - ArrayObject of Stringpublic static ArrayChar makeFromStringArray(ArrayObject values, int strlen)
values - ArrayObject of Stringstrlen - string length dimension sizeCopyright © 2019. All rights reserved.