Trait MaskFill

Source
pub trait MaskFill<A, D>
where D: Dimension,
{ type Output; // Required method fn masked_fill(&self, mask: &Array<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: &Array<bool, D>, value: A) -> Self::Output

Implementations on Foreign Types§

Source§

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

Source§

type Output = ArrayBase<S, D>

Source§

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

Implementors§