pub fn select<B: Backend, T: Element>(
pred: Bool<B>,
on_true: impl Into<Scalar<B, T>>,
on_false: impl Into<Scalar<B, T>>,
) -> Scalar<B, T>Expand description
if pred { on_true } else { on_false } for scalars (lax.select). Both
operands are computed; use cond to skip work.