Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
a990017b
Commit
a990017b
authored
5 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Add first gradient tests
parent
0d1d2f31
No related branches found
No related tags found
1 merge request
!339
Linearizationtests
Pipeline
#52908
passed
5 years ago
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nifty5/linearization.py
+1
-1
1 addition, 1 deletion
nifty5/linearization.py
with
1 addition
and
1 deletion
nifty5/linearization.py
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment