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>
Expand description
Create a masked array
§Errors
Returns ArrayError::ShapeMismatch
if the mask shape doesn’t match the data shape.