Exp

class pmrf.stats.bijectors.Exp(_is_constant_jacobian: bool = False, _is_constant_log_det: bool = False)

Bases: AbstractForwardInverseBijector, AbstractInvLogDetJacBijector, AbstractFwdLogDetJacBijector

Exponential bijector: y = exp(x).

forward_and_log_det(x: Array) → tuple[Array, Array]

Computes y = exp(x) and log|det J(f)(x)| = x.

inverse_and_log_det(y: Array) → tuple[Array, Array]

Computes x = log(y) and log|det J(f^{-1})(y)| = -log(y).

same_as(other: AbstractBijector) → bool

Returns True if this bijector is guaranteed to be the same as other.