/** * Makes simple tensors symmetric. * * @param tensors string representation of simple tensors * @throws java.lang.IllegalStateException if this tensor is already in use (it's permutation group calculated) */ public static void setAntiSymmetric(String... tensors) { for (String tensor : tensors) setAntiSymmetric(tensor); }
/** * Makes simple tensors antisymmetric. * * @param tensors string representation of simple tensor * @throws java.lang.IllegalStateException if this tensor is already in use (it's permutation group calculated) */ public static void setAntiSymmetric(Object... tensors) { for (Object tensor : tensors) { if (tensor instanceof SimpleTensor) setAntiSymmetric((SimpleTensor) tensor); else if (tensor instanceof String) setAntiSymmetric((String) tensor); else throw new IllegalArgumentException("Not a tensor " + tensor); } }
/** * Makes simple tensor antisymmetric. * * @param tensor string representation of simple tensor * @throws java.lang.IllegalStateException if this tensor is already in use (it's permutation group calculated) */ public static void setAntiSymmetric(String tensor) { setAntiSymmetric(parseSimple(tensor)); }