xlnstorch.sbdb

Contents

xlnstorch.sbdb#

xlnstorch.sbdb(z, s, base)#

Computes the Gaussian logarithm for the given inputs z and s.

Parameters:
  • z (torch.Tensor) – The negation of the absolute difference between the two operands in the logarithmic domain.

  • s (torch.Tensor) – The sign difference between the two operands in the logarithmic domain.

  • base (torch.Tensor) – The base of the operands. Required for certain sbdb implementations.

Returns:

The result of the Gaussian logarithm computation.

Return type:

torch.Tensor

Raises:

ValueError – If no default sbdb function is implemented.