public final class TensorWrapper extends Tensor
| Modifier and Type | Method and Description |
|---|---|
Tensor |
get(int i)
Returns element at i-th position.
|
TensorBuilder |
getBuilder()
Creates a builder for this tensor.
|
TensorFactory |
getFactory()
Returns a factory for this tensor.
|
Indices |
getIndices()
Returns indices of this tensor.
|
protected int |
hash()
Hash code of this tensor.
|
int |
size()
Returns the number of elements in this tensor.
|
String |
toString(OutputFormat mode)
Returns a string representation of a tensor according to the specified
OutputFormat. |
static TensorWrapper |
wrap(Tensor tensor) |
public Tensor get(int i)
Tensorpublic int size()
Tensorpublic TensorBuilder getBuilder()
TensorTensorBuilder for more
information.getBuilder in class Tensorpublic TensorFactory getFactory()
TensorTensorFactory for more
information.getFactory in class Tensorpublic static TensorWrapper wrap(Tensor tensor)
public Indices getIndices()
TensorgetIndices in class Tensorprotected int hash()
Tensorpublic String toString(OutputFormat mode)
TensorOutputFormat.Copyright © 2014. All Rights Reserved.