cc.redberry.core.context
Class NameAndStructureOfIndices
- java.lang.Object
-
- cc.redberry.core.context.NameAndStructureOfIndices
-
public class NameAndStructureOfIndices extends java.lang.ObjectContainer for the structure of indices (seeStructureOfIndices) of tensor and its string name. Two simple tensors are considered to have different mathematical nature if and only if theirIndicesTypeStructureAndNameare not equal.- Since:
- 1.1
-
-
Constructor Summary
Constructors Constructor and Description NameAndStructureOfIndices(java.lang.String name, StructureOfIndices[] structure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)java.lang.StringgetName()Returns name of tensor.StructureOfIndices[]getStructure()Returns structure of tensor indices.inthashCode()
-
-
-
Constructor Detail
-
NameAndStructureOfIndices
public NameAndStructureOfIndices(java.lang.String name, StructureOfIndices[] structure)- Parameters:
name- name of tensorstructure- structure of tensor indices
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns name of tensor.- Returns:
- name of tensor
-
getStructure
public StructureOfIndices[] getStructure()
Returns structure of tensor indices.- Returns:
- structure of tensor indices
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG