cc.redberry.core.parser
Class ParseTokenTensorField
- java.lang.Object
-
- cc.redberry.core.parser.ParseToken
-
- cc.redberry.core.parser.ParseTokenSimpleTensor
-
- cc.redberry.core.parser.ParseTokenTensorField
-
public class ParseTokenTensorField extends ParseTokenSimpleTensor
AST node for tensor field.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description SimpleIndices[]argumentsIndicesIndices of arguments.-
Fields inherited from class cc.redberry.core.parser.ParseTokenSimpleTensor
indices, name
-
Fields inherited from class cc.redberry.core.parser.ParseToken
content, parent, tokenType
-
-
Constructor Summary
Constructors Constructor and Description ParseTokenTensorField(SimpleIndices indices, java.lang.String name, ParseToken[] content, SimpleIndices[] argumentsIndices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description NameAndStructureOfIndicesgetIndicesTypeStructureAndName()java.lang.StringtoString()TensortoTensor()Converts this AST to tensor.-
Methods inherited from class cc.redberry.core.parser.ParseTokenSimpleTensor
equals, getIndices, isKronecker, isKroneckerOrMetric, toString
-
-
-
-
Field Detail
-
argumentsIndices
public SimpleIndices[] argumentsIndices
Indices of arguments.
-
-
Constructor Detail
-
ParseTokenTensorField
public ParseTokenTensorField(SimpleIndices indices, java.lang.String name, ParseToken[] content, SimpleIndices[] argumentsIndices)
- Parameters:
indices- indices of fieldname- string name of fieldcontent- child nodesargumentsIndices- indices of arguments.
-
-
Method Detail
-
getIndicesTypeStructureAndName
public NameAndStructureOfIndices getIndicesTypeStructureAndName()
- Overrides:
getIndicesTypeStructureAndNamein classParseTokenSimpleTensor- Returns:
NameAndStructureOfIndices
-
toString
public java.lang.String toString()
- Overrides:
toStringin classParseTokenSimpleTensor
-
toTensor
public Tensor toTensor()
Description copied from class:ParseTokenConverts this AST to tensor.- Overrides:
toTensorin classParseTokenSimpleTensor- Returns:
- resulting tensor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG