MCPcopy Create free account
hub / github.com/elftausend/graplot / negative

Function negative

src/eval.rs:186–194  ·  view source on GitHub ↗
(arr: &[f64])

Source from the content-addressed store, hash-verified

184
185
186pub fn negative(arr: &[f64]) -> bool {
187 let negative = true;
188 for value in arr {
189 if value.is_sign_positive() {
190 return false;
191 }
192 }
193 negative
194}
195
196#[test]
197fn test_negative() {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected