scipp.empty_like
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
- Parameters
var (scipp._scipp.core.Variable) – Input variable.
- Return type