tidy3d.plugins.autograd.functions.smooth_min

Contents

tidy3d.plugins.autograd.functions.smooth_min#

class smooth_min[source]#

Bases:

Compute the smooth minimum of an array using temperature parameter tau.

Parameters:
  • x (np.ndarray) – Input array.

  • tau (float = 1.0) – Temperature parameter controlling smoothness. Larger values make the minimum smoother.

  • axis (Union[int, Tuple[int, ...], None] = None) – Axis or axes over which the smooth minimum is computed. By default, the smooth minimum is computed over the entire array.

Returns:

The smooth minimum of the input array.

Return type:

np.ndarray

Inherited Common Usage