Skip to main content

ClikaRT::ops::fill_

function

fill_()

Tensor& fill_(
    Tensor& self,
    ScalarOrTensor value,
    StreamOrDevice s = {}
)

In-place fill: overwrites every element of self with value; same arguments and error conditions as fill(). 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 2252