MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / small_input

Function small_input

nodedb-query/src/simd_agg.rs:545–550  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

543
544 #[test]
545 fn small_input() {
546 let rt = ts_runtime();
547 assert!(((rt.sum_f64)(&[1.0, 2.0, 3.0]) - 6.0).abs() < f64::EPSILON);
548 assert!(((rt.min_f64)(&[3.0, 1.0, 2.0]) - 1.0).abs() < f64::EPSILON);
549 assert!(((rt.max_f64)(&[1.0, 3.0, 2.0]) - 3.0).abs() < f64::EPSILON);
550 }
551}

Callers

nothing calls this directly

Calls 1

ts_runtimeFunction · 0.85

Tested by

no test coverage detected