public abstract class BaseTensor extends java.lang.Object implements ITensor
| Modifier and Type | Field and Description |
|---|---|
int[] |
shape
The lengths of each dimension/axis.
|
| Constructor and Description |
|---|
BaseTensor() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
createCoor()
Creates a new coordinate for this tensor.
|
int |
getDimension()
Returns the number of dimensions in the tensor
|
int[] |
getShape()
Returns the internal array that specifies the tensor's shape.
|
boolean |
isShape(int... shape)
Checks to see if the supplied shape is the same as the tensor's shape
|
int |
length(int dimension)
Returns the length of a dimension/axis.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataTypepublic int[] shape
public int[] getShape()
public boolean isShape(int... shape)
public int length(int dimension)
public int[] createCoor()
createCoor in interface ITensorpublic int getDimension()
getDimension in interface ITensor