public final class TensorField extends SimpleTensor
| Modifier and Type | Field and Description |
|---|---|
protected SimpleIndices[] |
argIndices |
protected Tensor[] |
args |
indices, name| Modifier and Type | Method and Description |
|---|---|
SimpleIndices[][] |
calcIndicesPartition()
Calculates and returns partition of derivative indices.
|
Tensor |
get(int i)
Returns element at i-th position.
|
SimpleIndices[] |
getArgIndices() |
SimpleIndices |
getArgIndices(int i) |
Tensor[] |
getArguments() |
TensorBuilder |
getBuilder()
Creates a builder for this tensor.
|
TensorFactory |
getFactory()
Returns a factory for this tensor.
|
NameDescriptorForTensorField |
getNameDescriptor() |
Tensor[] |
getRange(int from,
int to)
Retrieves several sub-tensors from current tensor.
|
boolean |
isDerivative() |
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. |
equals, getIndices, getName, getStringName, hashprotected Tensor[] args
protected SimpleIndices[] argIndices
public Tensor[] getArguments()
public SimpleIndices[] getArgIndices()
public SimpleIndices getArgIndices(int i)
public boolean isDerivative()
public Tensor get(int i)
Tensorget in class SimpleTensori - positionpublic int size()
Tensorsize in class SimpleTensorpublic Iterator<Tensor> iterator()
Tensoriterator in interface Iterable<Tensor>iterator in class SimpleTensorpublic Tensor[] getRange(int from, int to)
TensorTensor.get(int) method.public NameDescriptorForTensorField getNameDescriptor()
getNameDescriptor in class SimpleTensorpublic SimpleIndices[][] calcIndicesPartition()
result[0][0] --- contains pure field indices (result[0].length == 1), result[i][j] ---
are indices formed by j-th derivative with respect to i-th field argumentpublic String toString(OutputFormat mode)
TensorOutputFormat.toString in class SimpleTensormode - output formatpublic TensorBuilder getBuilder()
TensorTensorBuilder for more
information.getBuilder in class SimpleTensorpublic TensorFactory getFactory()
TensorTensorFactory for more
information.getFactory in class SimpleTensorCopyright © 2014. All Rights Reserved.