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

Function fill_f64

nodedb/src/engine/graph/algo/simd.rs:79–83  ·  view source on GitHub ↗

Broadcast fill.

(dst: &mut [f64], val: f64)

Source from the content-addressed store, hash-verified

77pub mod scalar {
78 /// Broadcast fill.
79 pub fn fill_f64(dst: &mut [f64], val: f64) {
80 for d in dst.iter_mut() {
81 *d = val;
82 }
83 }
84
85 /// L1 norm of element-wise difference.
86 pub fn l1_norm_delta(a: &[f64], b: &[f64]) -> f64 {

Callers

nothing calls this directly

Calls 5

fill_f64_innerFunction · 0.85
iter_mutMethod · 0.80
lenMethod · 0.45
addMethod · 0.45
as_mut_ptrMethod · 0.45

Tested by

no test coverage detected