Skip to main content

select_array

Function select_array 

Source
pub fn select_array<B: Backend, T: Element>(
    pred: &Array<B, bool>,
    on_true: &Array<B, T>,
    on_false: &Array<B, T>,
) -> Array<B, T>
Expand description

select_n(pred, on_false, on_true) with pred a scalar or of the shape of the cases (lax.select on arrays).