MaskFill

Trait MaskFill 

Source
pub trait MaskFill<A, D>
where D: Dimension,
{ type Output; // Required method fn masked_fill( &self, mask: &ArrayBase<OwnedRepr<bool>, D>, value: A, ) -> Self::Output; }
Expand description

This trait is used to fill an array with a value based on a mask. The mask is a boolean array of the same shape as the array.

Required Associated Types§

Required Methods§

Source

fn masked_fill( &self, mask: &ArrayBase<OwnedRepr<bool>, D>, value: A, ) -> Self::Output

Implementations on Foreign Types§

Source§

impl<A, S, D> MaskFill<A, D> for ArrayBase<S, D, A>
where A: Clone, D: Dimension, S: DataMut<Elem = A>, ArrayBase<S, D, A>: Clone,

Source§

type Output = ArrayBase<S, D, A>

Source§

fn masked_fill( &self, mask: &ArrayBase<OwnedRepr<bool>, D>, value: A, ) -> <ArrayBase<S, D, A> as MaskFill<A, D>>::Output

Implementors§