MCPcopy Create free account
hub / github.com/daniel-e/rustml / has_nan

Method has_nan

src/matrix.rs:79–81  ·  view source on GitHub ↗

Returns `true` if the matrix contains at least one element that is NaN.

(&self)

Source from the content-addressed store, hash-verified

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// ------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected