From f779a44a616bf459b11f1b3ef1e40de487df7e9c Mon Sep 17 00:00:00 2001 From: Li Xiang <54926635+Li-Xiang-Ideal@users.noreply.github.com> Date: Thu, 16 Nov 2023 18:36:29 +0800 Subject: [PATCH] Update tensors.py --- mathics/builtin/tensors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mathics/builtin/tensors.py b/mathics/builtin/tensors.py index 3dd702a13..53fc79286 100644 --- a/mathics/builtin/tensors.py +++ b/mathics/builtin/tensors.py @@ -19,6 +19,9 @@ """ +from sympy.combinatorics import Permutation +from sympy.utilities.iterables import permutations + from mathics.core.atoms import Integer, String from mathics.core.attributes import A_FLAT, A_ONE_IDENTITY, A_PROTECTED from mathics.core.builtin import BinaryOperator, Builtin @@ -29,8 +32,6 @@ from mathics.core.symbols import Atom, Symbol, SymbolFalse, SymbolTrue from mathics.core.systemsymbols import SymbolRule, SymbolSparseArray from mathics.eval.parts import get_part -from sympy.combinatorics import Permutation -from sympy.utilities.iterables import permutations def get_default_distance(p):