| Modifier and Type | Field and Description |
|---|---|
byte[] |
d |
startIndex, strides, subtensorshape| Modifier and Type | Method and Description |
|---|---|
Tensor_U8 |
create(int... shape)
Creates a tensor of the same type with the specified shape
|
java.lang.Object |
getData()
Returns internal array used to store tensor data.
|
java.lang.Class |
getDataType()
Class of primitive data type used to store tensor |
double |
getDouble(int... coordinate)
Accessor function which allows any tensor's element to be read as a double.
|
protected void |
innerArrayGrow(int N)
Re-declare inner array so that it is at least of length N
|
protected int |
innerArrayLength()
Length of inner array as returned by "data.length"
|
void |
setData(java.lang.Object data)
Used to change the internal array in an abstract way
|
static Tensor_U8 |
wrap(byte[] data,
int... shape) |
void |
zero()
Sets all elements in the tensor to the value of zero
|
computeStrides, copy, copyShape, createCoor, createLike, idx, idx, idx, idx, idx, idx, indexToCoor, isSub, length, length, reshape, reshape, reshape, reshape, reshape, reshape, reshape, setTo, stride, subtensorgetDimension, getShape, isShapepublic static Tensor_U8 wrap(byte[] data, int... shape)
public double getDouble(int... coordinate)
Tensorpublic java.lang.Object getData()
Tensorpublic void setData(java.lang.Object data)
Tensorprotected void innerArrayGrow(int N)
TensorinnerArrayGrow in class Tensor<Tensor_U8>N - Desired minimum length of inner arrayprotected int innerArrayLength()
TensorinnerArrayLength in class Tensor<Tensor_U8>public Tensor_U8 create(int... shape)
Tensorpublic void zero()
Tensorpublic java.lang.Class getDataType()
ITensorClass of primitive data type used to store tensor