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
ift
NIFTy
Commits
a990017b
Commit
a990017b
authored
Jul 31, 2019
by
Philipp Arras
Browse files
Add first gradient tests
parent
0d1d2f31
Pipeline
#52908
passed with stages
in 8 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/linearization.py
View file @
a990017b
...
...
@@ -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
...
...
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