mask_array

Function mask_array 

Source
pub fn mask_array<A, S, D>(
    data: ArrayBase<S, D>,
    mask: Option<Array<bool, D>>,
    fill_value: Option<A>,
) -> Result<MaskedArray<A, S, D>, ArrayError>
where A: Clone + PartialEq, S: Data<Elem = A> + Clone + RawDataClone, D: Dimension,
Expand description

Create a masked array

§Errors

Returns ArrayError::ShapeMismatch if the mask shape doesn’t match the data shape.