scipp.full_like
scipp.full_like¶
- scipp.full_like(var, value, variance=None)¶
Constructs a
Variable
with values initialized to the specified value with dimensions labels and shape provided by an existing variable.- Seealso
- Parameters
var (scipp._scipp.core.Variable) – Input variable to copy dimensions, sizes, unit and dtype from.
value (Any) – The value to fill the Variable with
variance (Optional[Any]) – Optional, the variance to fill the Variable with. If None or not provided, the variances will not be set.
- Return type