cc.redberry.core.indices
Interface SimpleIndices
-
- All Superinterfaces:
- Indices
public interface SimpleIndices extends Indices
Additional specification for indices of simple tensors (seeSimpleTensor).SimpleIndicespreserves the relative ordering of indices with the same type.- Since:
- 1.0
- See Also:
Indices,IndicesFactory,SimpleIndicesBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description SimpleIndicesapplyIndexMapping(IndexMapping im)This method applies specifiedIndexMappingto thisIndicesobject and returns the resultingIndicesobject.booleanequalsWithSymmetries(SimpleIndices indices)Compares simple indices taking into account possible permutations according to the symmetries.SimpleIndicesgetFree()Returns new instance ofIndices, which contains only free (non contracted) indices from thisIndicesinstance.SimpleIndicesgetInverted()Returns new instance ofIndices, which contains inverted indices, i.e.SimpleIndicesgetLower()Returns lower (covariant) indices.SimpleIndicesgetOfType(IndexType type)Returns indices of the specified type, which are contained in thisIndicesobject.StructureOfIndicesgetStructureOfIndices()Returns the structure of this indices.IndicesSymmetriesgetSymmetries()ReturnsIndicesSymmetriesof thisIndices.SimpleIndicesgetUpper()Returns upper (contravariant) indices.voidsetSymmetries(IndicesSymmetries symmetries)Sets indices symmetries to the specified-
Methods inherited from interface cc.redberry.core.indices.Indices
equals, equalsRegardlessOrder, get, get, getAllIndices, getNamesOfDummies, getPositionsInOrbits, size, size, testConsistentWithException, toArray, toString
-
-
-
-
Method Detail
-
getSymmetries
IndicesSymmetries getSymmetries()
ReturnsIndicesSymmetriesof thisIndices.- Returns:
- symmetries of this indices
-
setSymmetries
void setSymmetries(IndicesSymmetries symmetries)
Sets indices symmetries to the specified- Parameters:
symmetries-IndicesSymmetries
-
getUpper
SimpleIndices getUpper()
Description copied from interface:IndicesReturns upper (contravariant) indices.
-
getLower
SimpleIndices getLower()
Description copied from interface:IndicesReturns lower (covariant) indices.
-
getInverted
SimpleIndices getInverted()
Description copied from interface:IndicesReturns new instance ofIndices, which contains inverted indices, i.e. all upper indices becomes lower, and all lower become upper. The terms of ordering in the result are same as in the initialIndicesobject.- Specified by:
getInvertedin interfaceIndices- Returns:
- indices with inverted states
-
getFree
SimpleIndices getFree()
Description copied from interface:IndicesReturns new instance ofIndices, which contains only free (non contracted) indices from thisIndicesinstance. The returnedIndicesobject keeps the relative order of indices same as in the thisIndices.
-
getOfType
SimpleIndices getOfType(IndexType type)
Description copied from interface:IndicesReturns indices of the specified type, which are contained in thisIndicesobject.
-
applyIndexMapping
SimpleIndices applyIndexMapping(IndexMapping im)
Description copied from interface:IndicesThis method applies specifiedIndexMappingto thisIndicesobject and returns the resultingIndicesobject.- Specified by:
applyIndexMappingin interfaceIndices- Parameters:
im- specifiedIndexMapping- Returns:
- resulting
Indicesobject - See Also:
IndexMapping
-
equalsWithSymmetries
boolean equalsWithSymmetries(SimpleIndices indices)
Compares simple indices taking into account possible permutations according to the symmetries.- Parameters:
indices- indices to compare with this- Returns:
trueif specified indices can be obtained via permutations (specified by symmetries) of this indices.
-
getStructureOfIndices
StructureOfIndices getStructureOfIndices()
Returns the structure of this indices.- Returns:
- structure of this indices
-
-
DataMelt 3.0 © DataMelt by jWork.ORG