amplitude_atanh#

hypercoil.functional.activation.amplitude_atanh(input: Tensor) Tensor[source]#

Inverse hyperbolic tangent (hyperbolic arctangent) activation function applied to the amplitude only.

The amplitude (absolute value) of the input is transformed according to

\(\mathrm{arctanh} x\)

while the phase (complex argument) is preserved. This function maps the open unit disc in the complex plane into the entire complex plane: the origin is mapped to itself and the circumference is mapped to infinity.

Dimension:

As this activation function is applied elementwise, it conserves dimension; the output will be of the same shape as the input.

Parameters:
inputTensor

Tensor whose amplitude is to be transformed elementwise by the hyperbolic arctangent function.

Returns:
outTensor

Transformed input tensor.