scipp.broadcast
scipp.broadcast¶
- scipp.broadcast(x, dims, shape)¶
Broadcast a variable.
Note that scipp operations broadcast automatically, so using this function directly is rarely required.
- Parameters
x (scipp._scipp.core.Variable) – Variable to broadcast.
dims (Union[List[str], Tuple[str]]) – List of new dimensions.
shape (Sequence[int]) – New extents in each dimension.
- Returns
New variable with requested dimension labels and shape.
- Return type