Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Li-Xiang-Ideal authored Nov 27, 2023
1 parent 3af6f9a commit 4db5ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mathics/builtin/tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ def eval(self, f, lists, evaluation: Evaluation):
head = None
sparse_to_list = f != SymbolTimes
contain_sparse = False
comtain_list = False
contain_list = False
for _list in lists:
if _list.head.sameQ(SymbolSparseArray):
contain_sparse = True
if _list.head.sameQ(SymbolList):
comtain_list = True
sparse_to_list = sparse_to_list or (contain_sparse and comtain_list)
contain_list = True
sparse_to_list = sparse_to_list or (contain_sparse and contain_list)
if sparse_to_list:
break
if sparse_to_list:
Expand Down

0 comments on commit 4db5ea0

Please sign in to comment.