lgamma

Contents

lgamma#

class brainunit.lax.lgamma(x, unit_to_scale=None, **kwargs)#

Elementwise log gamma: \(\mathrm{log}(\Gamma(x))\).

Parameters:
  • x (saiunit.Quantity | Array | ndarray | bool | number | bool | int | float | complex) – Input array. Must be dimensionless or scaled via unit_to_scale.

  • unit_to_scale (saiunit.Unit | None) – If provided, x is scaled by this unit before applying the function.

Returns:

result – Always unitless.

Return type:

Array