}
private NameDescriptor createDescriptor(final String sname, final IndicesTypeStructure[] indicesTypeStructures, int id) {
if (indicesTypeStructures.length != 1)
return new NameDescriptorImpl(sname, indicesTypeStructures, id);
final IndicesTypeStructure its = indicesTypeStructures[0];
if (its.size() != 2)
return new NameDescriptorImpl(sname, indicesTypeStructures, id);
for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
if (its.typeCount(b) == 2)
if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
descriptor.getSymmetries().add(b, false, 1, 0);
return descriptor;
}