R2ToComplex
- class pmrf.stats.R2ToComplex(_is_constant_jacobian: bool = True, _is_constant_log_det: bool = True)
Bases:
AbstractForwardInverseBijector,AbstractInvLogDetJacBijector,AbstractFwdLogDetJacBijectorMaps a real array of shape (…, 2) to a complex array of shape (…).
- forward_and_log_det(x: Array) tuple[Array, Array]
Computes y = x[…, 0] + 1j * x[…, 1] and log|det J(f)(x)| = 0.0.
- inverse_and_log_det(y: Array) tuple[Array, Array]
Computes x = [Re(y), Im(y)] and log|det J(f^{-1})(y)| = 0.0.
- same_as(other: AbstractBijector) bool
Returns True if this bijector is guaranteed to be the same as other.