• Merges real and imaginary Float32Arrays into a single complex Float32Array.

    The memory layout is interleaved as follows: real: [r0, r1, r2] imag: [i0, i1, i2] complex: [r0, i0, r1, i1, r2, i2]

    This is the inverse of splitRealAndImagArrays.

    Parameters

    • real: Float32Array

      The real values of the complex tensor values.

    • imag: Float32Array

      The imag values of the complex tensor values.

    Returns Float32Array

    A complex tensor as a Float32Array with merged values.

Generated using TypeDoc