def diff_f(expr, deriv_order, dims, fd_order, side=None, **kwargs): return Derivative(expr, *as_tuple(dims), deriv_order=deriv_order, fd_order=fd_order, side=side, **kwargs)
def diff(self, *symbols, **assumptions): """ Like ``sympy.diff``, but return a ``devito.Derivative`` instead of a ``sympy.Derivative``. """ from devito.finite_differences.derivative import Derivative return Derivative(self, *symbols, **assumptions)
def deriv_function(expr, deriv_order, dims, fd_order, side=centered, **kwargs): return Derivative(expr, *as_tuple(dims), deriv_order=deriv_order, fd_order=fd_order, side=side, **kwargs)