scipp.empty_like

scipp.empty_like(var)

Constructs a Variable with the same dims, shape, unit and dtype as the input variable, but with uninitialized values. If the input has variances, all variances in the output exist but are uninitialized.

Seealso

scipp.empty() scipp.zeros_like() scipp.ones_like()

Parameters

var (scipp._scipp.core.Variable) – Input variable.

Return type

scipp._scipp.core.Variable