Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
bb23bd60
Commit
bb23bd60
authored
Jan 30, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style fixes
parent
0a4ea12b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
demos/polynomial_fit.py
demos/polynomial_fit.py
+2
-1
nifty5/extra.py
nifty5/extra.py
+0
-1
nifty5/library/light_cone_operator.py
nifty5/library/light_cone_operator.py
+6
-6
nifty5/operators/exp_transform.py
nifty5/operators/exp_transform.py
+2
-2
No files found.
demos/polynomial_fit.py
View file @
bb23bd60
...
@@ -44,7 +44,8 @@ def polynomial(coefficients, sampling_points):
...
@@ -44,7 +44,8 @@ def polynomial(coefficients, sampling_points):
class
PolynomialResponse
(
ift
.
LinearOperator
):
class
PolynomialResponse
(
ift
.
LinearOperator
):
"""Calculates values of a polynomial parameterized by input at sampling points.
"""Calculates values of a polynomial parameterized by input at sampling
points.
Parameters
Parameters
----------
----------
...
...
nifty5/extra.py
View file @
bb23bd60
...
@@ -171,4 +171,3 @@ def check_jacobian_consistency(op, loc, tol=1e-8, ntries=100):
...
@@ -171,4 +171,3 @@ def check_jacobian_consistency(op, loc, tol=1e-8, ntries=100):
else
:
else
:
raise
ValueError
(
"gradient and value seem inconsistent"
)
raise
ValueError
(
"gradient and value seem inconsistent"
)
loc
=
locnext
loc
=
locnext
nifty5/library/light_cone_operator.py
View file @
bb23bd60
...
@@ -97,24 +97,24 @@ def _cone_arrays(c, domain, sigx, want_gradient):
...
@@ -97,24 +97,24 @@ def _cone_arrays(c, domain, sigx, want_gradient):
class
LightConeOperator
(
Operator
):
class
LightConeOperator
(
Operator
):
'''Constructs a Light cone from a set of lightspeed parameters.
'''Constructs a Light cone from a set of lightspeed parameters.
The resulting cone is defined as follows
The resulting cone is defined as follows
.. math::
.. math::
\\
exp
\\
left(-
\\
frac{1}{2}
\\
Re
\\
left(
\\
Delta
\\
right)^2
\\
right)
\\
exp
\\
left(-
\\
frac{1}{2}
\\
Re
\\
left(
\\
Delta
\\
right)^2
\\
right)
with
with
.. math::
.. math::
\\
Delta =
\\
sqrt{-
\\
left(t^2 -
\\
frac{x^
\\
dagger C^{-1} x}
\\
Delta =
\\
sqrt{-
\\
left(t^2 -
\\
frac{x^
\\
dagger C^{-1} x}
{
\\
sigma_x^2}
\\
right)}
{
\\
sigma_x^2}
\\
right)}
where t and x are the coordinates of the target space. Note that axis zero
where t and x are the coordinates of the target space. Note that axis zero
of the space is interpreted as the time axis. C denotes the input
of the space is interpreted as the time axis. C denotes the input
paramters of the operator and parametrizes the shape of the cone.
paramters of the operator and parametrizes the shape of the cone.
sigx is the width of the asymptotic Gaussian in x necessary for
sigx is the width of the asymptotic Gaussian in x necessary for
discretization.
discretization.
Parameters
Parameters
----------
----------
domain : Domain, tuple of Domain or DomainTuple
domain : Domain, tuple of Domain or DomainTuple
...
...
nifty5/operators/exp_transform.py
View file @
bb23bd60
...
@@ -31,8 +31,8 @@ class ExpTransform(LinearOperator):
...
@@ -31,8 +31,8 @@ class ExpTransform(LinearOperator):
This operator creates a log-space subject to the degrees of freedom and
This operator creates a log-space subject to the degrees of freedom and
and its target-domain.
and its target-domain.
Then it transforms between this log-space and its target, which is defined
in
Then it transforms between this log-space and its target, which is defined
normal units.
in
normal units.
FIXME Write something on t_0 of domain space
FIXME Write something on t_0 of domain space
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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