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

Method neg

src/compute-engine/tensor/tensor-fields.ts:138–140  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

136 case 'expression':
137 return Array.isArray(x)
138 ? x.map((x) => this.expression(x))
139 : this.expression(x);
140 }
141 throw new Error(`Cannot cast ${x} to ${dtype}`);
142 }
143

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected