Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
109
console.log(
'='
.repeat(50));
110
111
function
vectorNegate(a) {
112
return
a.map((v) => -v);
113
}
114
115
const
expr4 = ce.parse(
'v - w'
);
116
console.log(
'Expression:'
, expr4.toString());
Callers
nothing calls this directly
Calls
1
map
Method · 0.65
Tested by
no test coverage detected