Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.lax.clamp

Contents

jax.lax.clamp#

jax.lax.clamp(min,x,max)[source]#

Elementwise clamp.

Returns\(\mathrm{clamp}(x) = \begin{cases}\mathit{min} & \text{if } x < \mathit{min},\\\mathit{max} & \text{if } x > \mathit{max},\\x & \text{otherwise}\end{cases}\).

Parameters:
  • min (ArrayLike)

  • x (ArrayLike)

  • max (ArrayLike)

Return type:

Array

Contents

[8]ページ先頭

©2009-2025 Movatter.jp