public class Tensor_S64 extends Tensor<Tensor_S64>
| Modifier and Type | Field and Description |
|---|---|
long[] |
d |
startIndex, strides, subtensorshape| Constructor and Description |
|---|
Tensor_S64() |
Tensor_S64(int... shape) |
| Modifier and Type | Method and Description |
|---|---|
Tensor_S64 |
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
|
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 double getDouble(int... coordinate)
TensorgetDouble in class Tensor<Tensor_S64>coordinate - Coordinate of the element which is to be readpublic java.lang.Object getData()
TensorgetData in class Tensor<Tensor_S64>public void setData(java.lang.Object data)
TensorsetData in class Tensor<Tensor_S64>protected void innerArrayGrow(int N)
TensorinnerArrayGrow in class Tensor<Tensor_S64>N - Desired minimum length of inner arrayprotected int innerArrayLength()
TensorinnerArrayLength in class Tensor<Tensor_S64>public Tensor_S64 create(int... shape)
Tensorcreate in class Tensor<Tensor_S64>shape - Shape of the new tensorpublic void zero()
Tensorzero in class Tensor<Tensor_S64>public java.lang.Class getDataType()
ITensorClass of primitive data type used to store tensor