/** * Returns {@code true} if there is mapping from {@code a} on tensor {@code b} or vice versa. * * @param a tensor * @param b tensor * @return {@code true} if there is mapping from {@code a} on tensor {@code b} or vice versa */ public static boolean anyMappingExists(Tensor a, Tensor b) { return mappingExists(a, b) || mappingExists(b, a); }
if (!IndexMappings.mappingExists(t, toInverse.get(0))) { inverseLhs = (SimpleTensor) t; break;