Skip to main content

where_

Function where_ 

Source
pub fn where_<B: Backend, T: Element>(
    cond: impl ArrayLike<B, bool>,
    x: impl ArrayLike<B, T>,
    y: impl ArrayLike<B, T>,
) -> Array<B, T>
Expand description

cond ? x : y elementwise, with broadcasting.