Commit 4c24729a authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Enable Diff wrt to itself

parent 1673ca3d
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment