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

Commit

Permalink
Merge #32593
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 11, 2021
2 parents af06e5b + acca6c2 commit 907b57c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ from sage.rings.complex_double import CDF
from sage.rings.real_mpfr import RealField
from sage.rings.complex_mpfr import ComplexField
from sage.rings.finite_rings.integer_mod_ring import IntegerModRing
from sage.misc.derivative import multi_derivative
import sage.rings.abc
from sage.arith.numerical_approx cimport digits_to_bits
from copy import copy
Expand Down Expand Up @@ -15124,6 +15123,7 @@ cdef class Matrix(Matrix1):
sage: v.derivative(x,x)
(0, 0, 2)
"""
from sage.misc.derivative import multi_derivative
return multi_derivative(self, args)

def exp(self):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/modules/free_module_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ from sage.rings.infinity import Infinity, AnInfinity
from sage.rings.integer_ring import ZZ
from sage.rings.real_double import RDF
from sage.rings.complex_double import CDF
from sage.misc.derivative import multi_derivative

from sage.rings.ring cimport Ring
from sage.rings.integer cimport Integer, smallInteger
Expand Down Expand Up @@ -3968,6 +3967,7 @@ cdef class FreeModuleElement(Vector): # abstract base class
sage: v.derivative(x,x)
(0, 0, 2)
"""
from sage.misc.derivative import multi_derivative
return multi_derivative(self, args)
diff = derivative
Expand Down
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 907b57c

Please sign in to comment.