nifty8.library.light_cone_operator module#
- class LightConeOperator(domain, target, sigx)[source]#
Bases:
Operator
Constructs a Light cone from a set of lightspeed parameters.
The resulting cone is defined as follows
with
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 paramters of the operator and parametrizes the shape of the cone. sigx is the width of the asymptotic Gaussian in x necessary for discretization.
- Parameters:
domain (Domain, tuple of Domain or DomainTuple) – The domain of the input parameters of the light cone, the values of the lightspeed tensor.
target (Domain, tuple of Domain or DomainTuple) – Output space on which the lightcone should be defined. The zeroth axis of this space is interpreted as the time axis.
sigx (float) – Width of the Gaussian for the discretized representation of the cone.
- apply(x)[source]#
Applies the operator to a Field, MultiField or Linearization.
- Parameters:
x (
nifty8.field.Field
,nifty8.multi_field.MultiField
,) – ornifty8.linearization.Linearization
Input on which the operator shall act. Needs to be defined ondomain
. If x`is a :class:`nifty8.linearization.Linearization, apply returns a newnifty8.linearization.Linearization
contining the result of the operator application as well as its Jacobian, evaluated at x.