Returns `true` if the matrix contains at least one element that is NaN.
(&self)
| 77 | |
| 78 | /// Returns `true` if the matrix contains at least one element that is NaN. |
| 79 | fn has_nan(&self) -> bool { |
| 80 | self.data.iter().any(|&x| x.is_nan()) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // ------------------------------------------------------------------ |