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

Method constructor

src/compute-engine/tensor/tensors.ts:893–896  ·  view source on GitHub ↗
(ce: ComputeEngine, data: TensorData<'complex128'>)

Source from the content-addressed store, hash-verified

891 if (this.dtype === 'expression') {
892 const cells = this.data as Expression[];
893 if (
894 cells.every((x) => isNumber(x)) &&
895 cells.some((x) => x.isExact === false) &&
896 cells.every((x) => machineModulus(x) !== undefined)
897 ) {
898 const inverseData = this.inexactInverse();
899 if (inverseData === undefined) return undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected