MCPcopy Create free account
hub / github.com/tensorflow/tfjs / getComplexWithIndex

Function getComplexWithIndex

tfjs-core/src/backends/complex_util.ts:110–115  ·  view source on GitHub ↗
(
    complex: Float32Array, index: number)

Source from the content-addressed store, hash-verified

108 * @param index An index of the target complex value.
109 */
110export function getComplexWithIndex(
111 complex: Float32Array, index: number): {real: number, imag: number} {
112 const real = complex[index * 2];
113 const imag = complex[index * 2 + 1];
114 return {real, imag};
115}
116
117/**
118 * Insert a given complex value into the TypedArray.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…