Mask whole 1-d vectors of an array that contain masked values.
(a, axis)
| 8209 | return round(a, decimals, out) |
| 8210 | |
| 8211 | def _mask_propagate(a, axis): |
| 8212 | """ |
| 8213 | Mask whole 1-d vectors of an array that contain masked values. |
| 8214 | """ |
| 8215 | a = array(a, subok=False) |
| 8216 | m = getmask(a) |
| 8217 | if m is nomask or not m.any() or axis is None: |
| 8218 | return a |
| 8219 | a._mask = a._mask.copy() |
| 8220 | axes = normalize_axis_tuple(axis, a.ndim) |
| 8221 | for ax in axes: |
| 8222 | a._mask |= m.any(axis=ax, keepdims=True) |
| 8223 | return a |
| 8224 | |
| 8225 | |
| 8226 | # Include masked dot here to avoid import problems in getting it from |