cc.redberry.core.context
Class NameDescriptorForSimpleTensor
- java.lang.Object
-
- cc.redberry.core.context.NameDescriptor
-
- cc.redberry.core.context.NameDescriptorForSimpleTensor
-
public final class NameDescriptorForSimpleTensor extends NameDescriptor
Implementation ofNameDescriptorfor any simple tensor, except Kronecker and metric tensor.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SimpleTensorgetCachedSymbol()java.lang.StringgetName(SimpleIndices indices, OutputFormat format)Returns string name of tensor in specified output format.voidsetCachedInstance(SimpleTensor symbol)-
Methods inherited from class cc.redberry.core.context.NameDescriptor
extractKey, getArgStructureOfIndices, getId, getName, getStructureOfIndices, getStructuresOfIndices, getSymmetries, isField, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName(SimpleIndices indices, OutputFormat format)
Description copied from class:NameDescriptorReturns string name of tensor in specified output format. The first argument can benull.- Specified by:
getNamein classNameDescriptor- Parameters:
indices- indices (in case of metric or Kronecker) and null in other casesformat- output format- Returns:
- string name of tensor
-
setCachedInstance
public void setCachedInstance(SimpleTensor symbol)
-
getCachedSymbol
public SimpleTensor getCachedSymbol()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG