MCPcopy Create free account
hub / github.com/d3/d3-array / fcumsum

Function fcumsum

src/fsum.js:62–69  ·  view source on GitHub ↗
(values, valueof)

Source from the content-addressed store, hash-verified

60}
61
62export function fcumsum(values, valueof) {
63 const adder = new Adder();
64 let index = -1;
65 return Float64Array.from(values, valueof === undefined
66 ? v => adder.add(+v || 0)
67 : v => adder.add(+valueof(v, ++index, values) || 0)
68 );
69}

Callers 2

fcumsum-test.jsFile · 0.90
lastcFunction · 0.90

Calls 1

addMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…