Skip to main content

ClikaRT::ops::exponential_

function

exponential_()

Tensor& exponential_(
    Tensor& self,
    double lambd = 1.0,
    StreamOrDevice s = {}
)

In-place exponential fill with rate lambd: overwrites self with draws from p(x) = lambd * exp(-lambd * x) (x >= 0) and returns it under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling.

Parameters

  • self: the tensor to fill; float dtype.
  • lambd: the rate parameter; must be positive; default 1.0.
  • s: stream or device; default = self's.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) on a non-positive lambd.

Declared in ClikaRT/compute/ops.h, line 4013