for (int j = 0; j < metricInds.length; ++j)
if (temp[j] == 0xFFFFFFFF)
temp[j] = createIndex(counter++, getType(metricInds[j]), false);//lower index
IntArrayList _result = nonMetricIndices.clone();
_result.addAll(temp);
Tensor renamed = ApplyIndexMapping.applyIndexMapping(st, new Mapping(indicesArray, _result.toArray()));
//todo bottleneck
for (Tensor existing : combinationArray)
if (TensorUtils.compare1(existing, renamed) != null)
continue combinations;
combinationArray.add(renamed);