nifty8.operators.endomorphic_operator module#

class EndomorphicOperator[source]#

Bases: LinearOperator

Represents a LinearOperator which is endomorphic, i.e. one which has identical domain and target.

draw_sample(from_inverse=False)[source]#

Generates a sample from a Gaussian distribution with zero mean and covariance given by the operator.

May or may not be implemented. Only optional.

Parameters:

from_inverse (bool (default : False)) – if True, the sample is drawn from the inverse of the operator

Returns:

A sample from the Gaussian of given covariance.

Return type:

nifty8.field.Field or nifty8.multi_field.MultiField

get_sqrt()[source]#

Return operator op which obeys self == op.adjoint @ op.

Note that this function is only implemented for operators with real spectrum.

Returns:

Operator which is the square root of self

Return type:

EndomorphicOperator

property sampling_dtype#

Sampling dtype if operator is used as covariance operator.

property target#

returns domain

Returns self.domain, because this is also the target domain for endomorphic operators.

Type:

DomainTuple