MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / vectorNegate

Function vectorNegate

examples/compile-vector-operations.js:111–113  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

109console.log('=' .repeat(50));
110
111function vectorNegate(a) {
112 return a.map((v) => -v);
113}
114
115const expr4 = ce.parse('v - w');
116console.log('Expression:', expr4.toString());

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected