Skip to main content

move_bdim

Function move_bdim 

Source
pub fn move_bdim(cx: &mut dyn BatchCx, x: &Batched, to: usize) -> Result<Atom>
Expand description

Returns x with its batch dimension at to, broadcasting it if it is unbatched.

ยงErrors

Returns an error if to is out of range.