public class Expression extends Tensor implements Transformation
Expression also implements
Transformation and represents substitutions.ExpressionBuilder,
ExpressionFactoryTransformation.UtilINDENTITY| 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.
|
boolean |
isIdentity()
Returns
true if r.h.s. |
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. |
Tensor |
transform(Tensor t)
Transforms specified tensor and returns the result.
|
Expression |
transpose()
Swaps l.h.s.
|
public Tensor get(int i)
Tensorpublic Indices getIndices()
TensorgetIndices in class Tensorprotected int hash()
Tensorpublic int size()
Tensorpublic String toString(OutputFormat mode)
TensorOutputFormat.public TensorBuilder getBuilder()
TensorTensorBuilder for more
information.getBuilder in class Tensorpublic TensorFactory getFactory()
TensorTensorFactory for more
information.getFactory in class Tensorpublic Tensor transform(Tensor t)
Transformationtransform in interface Transformationt - tensorpublic boolean isIdentity()
true if r.h.s. is equal to l.h.s.true if r.h.s. is equal to l.h.s.public Expression transpose()
Copyright © 2014. All Rights Reserved.