cc.redberry.core.parser
Class ParseTokenSimpleTensor
- java.lang.Object
-
- cc.redberry.core.parser.ParseToken
-
- cc.redberry.core.parser.ParseTokenSimpleTensor
-
- Direct Known Subclasses:
- ParseTokenTensorField
public class ParseTokenSimpleTensor extends ParseToken
AST node for simple tensor.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description SimpleIndicesindicesIndices of simple tensor.java.lang.StringnameString name of simple tensor.-
Fields inherited from class cc.redberry.core.parser.ParseToken
content, parent, tokenType
-
-
Constructor Summary
Constructors Constructor and Description ParseTokenSimpleTensor(SimpleIndices indices, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)SimpleIndicesgetIndices()ReturnsIndicesof the corresponding mathematical expression.NameAndStructureOfIndicesgetIndicesTypeStructureAndName()booleanisKronecker()booleanisKroneckerOrMetric()java.lang.StringtoString()java.lang.StringtoString(OutputFormat mode)TensortoTensor()Converts this AST to tensor.
-
-
-
Field Detail
-
indices
public SimpleIndices indices
Indices of simple tensor.
-
name
public java.lang.String name
String name of simple tensor.
-
-
Constructor Detail
-
ParseTokenSimpleTensor
public ParseTokenSimpleTensor(SimpleIndices indices, java.lang.String name)
- Parameters:
indices- indices of simple tensorname- string name of simple tensor
-
-
Method Detail
-
getIndicesTypeStructureAndName
public NameAndStructureOfIndices getIndicesTypeStructureAndName()
- Returns:
NameAndStructureOfIndices
-
getIndices
public SimpleIndices getIndices()
Description copied from class:ParseTokenReturnsIndicesof the corresponding mathematical expression.- Overrides:
getIndicesin classParseToken- Returns:
Indicesof the corresponding mathematical expression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classParseToken
-
toTensor
public Tensor toTensor()
Description copied from class:ParseTokenConverts this AST to tensor.- Overrides:
toTensorin classParseToken- Returns:
- resulting tensor
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classParseToken
-
isKroneckerOrMetric
public boolean isKroneckerOrMetric()
-
isKronecker
public boolean isKronecker()
-
toString
public java.lang.String toString(OutputFormat mode)
- Overrides:
toStringin classParseToken
-
-
DataMelt 3.0 © DataMelt by jWork.ORG