nifty.cl.operators.endomorphic_operator module#
- class EndomorphicOperator[source]#
Bases:
LinearOperatorRepresents a
LinearOperatorwhich is endomorphic, i.e. one which has identical domain and target.- draw_sample(from_inverse=False, device_id=-1)[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
device_id (int) – Device id on which the Field shall be located. Default: -1
- Returns:
A sample from the Gaussian of given covariance.
- Return type:
- 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:
- property sampling_dtype#
Sampling dtype if operator is used as covariance operator.
- property target#
returns
domainReturns self.domain, because this is also the target domain for endomorphic operators.
- Type: