Skip to content
Snippets Groups Projects
Commit a990017b authored by Philipp Arras's avatar Philipp Arras
Browse files

Add first gradient tests

parent 0d1d2f31
No related branches found
No related tags found
1 merge request!339Linearizationtests
Pipeline #52908 passed
......@@ -319,7 +319,7 @@ class Linearization(object):
def sinc(self):
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
loc = tmp2.local_data.copy()
loc[ind] = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment