Skip to content
GitLab
Menu
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
c068432b
Commit
c068432b
authored
Jan 30, 2019
by
Martin Reinecke
Browse files
Merge branch 'codestyle' into 'NIFTy_5'
code style fixes See merge request ift/nifty-dev!217
parents
0a4ea12b
bb23bd60
Changes
4
Hide whitespace changes
Inline
Side-by-side
demos/polynomial_fit.py
View file @
c068432b
...
@@ -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 @
c068432b
...
@@ -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 @
c068432b
...
@@ -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 @
c068432b
...
@@ -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
Supports
Markdown
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