/** * Attaches symmetris to simple tensor. * * @param tensor string representation of simple tensor * @param permutations permutations * @throws java.lang.IllegalStateException if this tensor is already in use (it's permutation group calculated) * @throws java.lang.IllegalArgumentException if degree of some permutation differs from the size of indices * of specified tensor */ public static void addSymmetries(String tensor, Permutation... permutations) { addSymmetries(parseSimple(tensor), permutations); }