예제 #1
0
파일: tools.py 프로젝트: pnmoralesh/Devito
 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)
예제 #2
0
 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)
예제 #3
0
 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)