ClikaRT::ops::clamp_
function
clamp_()
Tensor& clamp_(
Tensor& self,
std::optional<ScalarOrTensor> min = std::nullopt,
std::optional<ScalarOrTensor> max = std::nullopt
)
In-place clamp: writes the result through self; same formula, arguments, and error conditions as clamp(). Either bound may be absent (std::nullopt), a one-sided clamp; tensor bounds broadcast against self. A view input writes through its base storage. Returns self under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling.
Declared in ClikaRT/compute/ops.h, line 5437