Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
4c24729a
Commit
4c24729a
authored
Jan 14, 2020
by
Stephan Seitz
Browse files
Enable Diff wrt to itself
parent
1673ca3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/interpolation_astnodes.py
View file @
4c24729a
...
...
@@ -207,6 +207,8 @@ class InterpolatorAccess(TypedSymbol):
for
i
in
range
(
len
(
self
.
offsets
))])
def
diff
(
self
,
*
symbols
,
**
kwargs
):
if
symbols
==
(
self
,):
return
1
rtn
=
self
.
_diff_interpolation_vec
.
T
*
sp
.
Matrix
(
self
.
offsets
).
diff
(
*
symbols
,
**
kwargs
)
if
rtn
.
shape
==
(
1
,
1
):
rtn
=
rtn
[
0
,
0
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment