Skip to content
Snippets Groups Projects
Commit f8d15783 authored by Ivan Kondov's avatar Ivan Kondov
Browse files

changed the default variants, removed expand()

parent 3a23a6e2
No related branches found
No related tags found
No related merge requests found
......@@ -361,7 +361,7 @@ class MPLPDR:
R(Q) (variant='r') """
numeric = {'tool': 'theano', 'modules': None}
def __init__(self, maxorder, system, numeric=None, variant='r', **kwargs):
def __init__(self, maxorder, system, numeric=None, variant='dr', **kwargs):
""" modules supported by tool 'lambdify': math, mpmath, numpy,
numexpr, tensorflow, sympy """
......@@ -391,8 +391,8 @@ class MPLPDR:
distl, distr = tee((f.r for f in self.ff))
symdist = [sp.Symbol(str(dist.func), real=True) for dist in distr]
repld.update(dict(zip(distl, symdist)))
ilnqbe = ((j.xreplace(repld).expand() for j in i) for i in ilnqbv)
ilnpbe = ((j.xreplace(repld).expand() for j in i) for i in ilnpbv)
ilnqbe = ((j.xreplace(repld) for j in i) for i in ilnqbv)
ilnpbe = ((j.xreplace(repld) for j in i) for i in ilnpbv)
# explicit expressions of distance derivatives in r, Q symbols
repldr = dict(zip((f.r for f in self.ff), symdist))
......@@ -516,7 +516,7 @@ class MPLPDV:
implementation; V(r) based cut-offs can be implemented. """
numeric = {'tool': 'theano', 'modules': None}
def __init__(self, maxorder, system, numeric=None, variant='r', **kwargs):
def __init__(self, maxorder, system, numeric=None, variant='dv', **kwargs):
""" modules supported by tool 'lambdify': math, mpmath, numpy,
numexpr, tensorflow, sympy """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment