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
36d059e4
Commit
36d059e4
authored
6 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Patches
Plain Diff
cosmetics
parent
fe00fb42
No related branches found
No related tags found
1 merge request
!297
Spherical Convolution operator
Pipeline
#43923
passed
6 years ago
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nifty5/domains/lm_space.py
+7
-0
7 additions, 0 deletions
nifty5/domains/lm_space.py
nifty5/operators/convolution_operators.py
+6
-6
6 additions, 6 deletions
nifty5/operators/convolution_operators.py
with
13 additions
and
6 deletions
nifty5/domains/lm_space.py
+
7
−
0
View file @
36d059e4
...
@@ -106,6 +106,13 @@ class LMSpace(StructuredDomain):
...
@@ -106,6 +106,13 @@ class LMSpace(StructuredDomain):
def
get_conv_kernel_from_func
(
self
,
func
):
def
get_conv_kernel_from_func
(
self
,
func
):
"""
Creates a convolution kernel defined by a function.
"""
Creates a convolution kernel defined by a function.
Parameters
----------
func: function
This function needs to take exactly one argument, which is
colatitude in radians, and return the kernel amplitude at that
colatitude.
Assumes the function to be radially symmetric,
Assumes the function to be radially symmetric,
e.g. only dependant on theta in radians
"""
e.g. only dependant on theta in radians
"""
from
.gl_space
import
GLSpace
from
.gl_space
import
GLSpace
...
...
This diff is collapsed.
Click to expand it.
nifty5/operators/convolution_operators.py
+
6
−
6
View file @
36d059e4
...
@@ -32,12 +32,12 @@ def SphericalFuncConvolutionOperator(domain, func):
...
@@ -32,12 +32,12 @@ def SphericalFuncConvolutionOperator(domain, func):
Parameters
Parameters
----------
----------
domain: DomainTuple
domain: DomainTuple
Domain of the operator. Must have exactly one entry, which is
Domain of the operator. Must have exactly one entry, which is
of type `HPSpace` or `GLSpace`.
of type `HPSpace` or `GLSpace`.
func:
function
func: function
This function needs to take exactly one argument, which is
This function needs to take exactly one argument, which is
colatitude in radians, and return the kernel amplitude at that
colatitude in radians, and return the kernel amplitude at that
colatitude.
colatitude.
"""
"""
if
len
(
domain
)
!=
1
:
if
len
(
domain
)
!=
1
:
raise
ValueError
(
"
need exactly one domain
"
)
raise
ValueError
(
"
need exactly one domain
"
)
...
...
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