Commit a990017b authored by Philipp Arras's avatar Philipp Arras
Browse files

Add first gradient tests

parent 0d1d2f31
...@@ -319,7 +319,7 @@ class Linearization(object): ...@@ -319,7 +319,7 @@ class Linearization(object):
def sinc(self): def sinc(self):
tmp = self._val.sinc() tmp = self._val.sinc()
tmp2 = (self._val.cos()-tmp)/self._val tmp2 = ((np.pi*self._val).cos()-tmp)/self._val
ind = self._val.local_data == 0 ind = self._val.local_data == 0
loc = tmp2.local_data.copy() loc = tmp2.local_data.copy()
loc[ind] = 0 loc[ind] = 0
......
Supports Markdown
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