MCPcopy Create free account
hub / github.com/cogentcore/core / CheckNaNs

Function CheckNaNs

plot/data.go:47–54  ·  view source on GitHub ↗

CheckNaNs returns true if any of the floats are NaN

(fs ...float32)

Source from the content-addressed store, hash-verified

45
46// CheckNaNs returns true if any of the floats are NaN
47func CheckNaNs(fs ...float32) bool {
48 for _, f := range fs {
49 if math32.IsNaN(f) {
50 return true
51 }
52 }
53 return false
54}
55
56//////////////////////////////////////////////////
57// Valuer

Callers 2

CopyXYsFunction · 0.85
CopyXYZsFunction · 0.85

Calls 1

IsNaNFunction · 0.92

Tested by

no test coverage detected