public class SimpleTensor extends Tensor
| Modifier and Type | Field and Description |
|---|---|
protected SimpleIndices |
indices |
protected int |
name |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
SimpleIndices |
getIndices()
Returns indices of this tensor.
|
int |
getName()
Returns the name (unique identifier) of this tensor.
|
NameDescriptor |
getNameDescriptor() |
String |
getStringName() |
protected int |
hash()
Returns the name (unique identifier) of this tensor
|
Iterator<Tensor> |
iterator()
Return read-only iterator over tensor elements.
|
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. |
protected final SimpleIndices indices
protected final int name
public int getName()
NameDescriptorprotected int hash()
hash in class TensorNameDescriptorpublic SimpleIndices getIndices()
TensorgetIndices in class Tensorpublic Tensor get(int i)
Tensorpublic int size()
Tensorpublic String toString(OutputFormat mode)
TensorOutputFormat.public Iterator<Tensor> iterator()
Tensorpublic TensorBuilder getBuilder()
TensorTensorBuilder for more
information.getBuilder in class Tensorpublic TensorFactory getFactory()
TensorTensorFactory for more
information.getFactory in class Tensorpublic NameDescriptor getNameDescriptor()
public String getStringName()
Copyright © 2014. All Rights Reserved.