Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/modules/vector_space_morphism.py: Do not fail if sage.symbol…
Browse files Browse the repository at this point in the history
… is not present
  • Loading branch information
Matthias Koeppe committed Sep 30, 2021
1 parent 52915b6 commit 1b0a5ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/modules/vector_space_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,10 @@ def linear_transformation(arg0, arg1=None, arg2=None, side='left'):
from sage.modules.module import is_VectorSpace
from sage.modules.free_module import VectorSpace
from sage.categories.homset import Hom
from sage.symbolic.ring import SR
from sage.modules.vector_callable_symbolic_dense import Vector_callable_symbolic_dense
try:
from sage.modules.vector_callable_symbolic_dense import Vector_callable_symbolic_dense
except ImportError:
Vector_callable_symbolic_dense = ()

if not side in ['left', 'right']:
raise ValueError("side must be 'left' or 'right', not {0}".format(side))
Expand Down Expand Up @@ -734,6 +736,7 @@ def linear_transformation(arg0, arg1=None, arg2=None, side='left'):
elif isinstance(arg2, (list, tuple)):
pass
elif isinstance(arg2, Vector_callable_symbolic_dense):
from sage.symbolic.ring import SR
args = arg2.parent().base_ring()._arguments
exprs = arg2.change_ring(SR)
m = len(args)
Expand Down

0 comments on commit 1b0a5ab

Please sign in to comment.