Trait NDArrayWhere

Source
pub trait NDArrayWhere<T, L, R>: NDArray<DType = u8> + Debug
where T: CType,
{ type Output: Access<T>; // Required method fn cond( self, then: L, or_else: R, ) -> Result<Array<T, Self::Output, Self::Platform>, Error>; }
Expand description

Conditional selection (boolean logic) methods

Required Associated Types§

Required Methods§

Source

fn cond( self, then: L, or_else: R, ) -> Result<Array<T, Self::Output, Self::Platform>, Error>

Construct a boolean selection operation. The resulting array will return values from then where self is true and from or_else where self is false.

Implementors§