MCPcopy Index your code
hub / github.com/plotly/plotly.js / thunk

Function thunk

stackgl_modules/index.js:30667–30685  ·  view source on GitHub ↗
(compile)

Source from the content-addressed store, hash-verified

30665var compile = generateCWiseOp
30666
30667function thunk(compile) {
30668 var CACHED = {};
30669 return function convert_cwise_thunk(array0, scalar1) {
30670 var t0 = array0.dtype,
30671 r0 = array0.order,
30672 type = [t0, r0.join()].join(),
30673 proc = CACHED[type];
30674 if (!proc) {
30675 CACHED[type] = proc = compile([t0, r0]);
30676 }
30677 return proc(
30678 array0.shape.slice(0),
30679 array0.data,
30680 array0.stride,
30681 array0.offset | 0,
30682 scalar1
30683 );
30684 };
30685}
30686
30687function createThunk(proc) {
30688 return thunk(compile.bind(undefined, proc))

Callers 1

createThunkFunction · 0.85

Calls 2

compileFunction · 0.85
procFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…