wgblas
    Preparing search index...

    Function mergeDoubleDoubleExact

    • mergeDoubleDouble, but exact for values the GPU passed through unchanged: where the (hi, lo) pair is bit-identical to the split of before[i], the element comes back as before[i] itself rather than hi + lo — the split keeps only ~48 of a double's 53 significant bits, so re-merging would round it. before holds, per output position, the value the routine started from: the output's own input for an in/out operand, or the moved source value for dcopy/dswap. So elements a routine leaves alone (stride gaps, the unreferenced triangle) and pure copies come back bit-identical, as BLAS requires. Values the split can't represent (beyond f32's exponent range) are never restored: they merge to what the GPU computed.

      Parameters

      • hi: Float32Array<ArrayBufferLike>
      • lo: Float32Array<ArrayBufferLike>
      • before: Float64Array<ArrayBufferLike>

        same layout as the output

      Returns Float64Array<ArrayBufferLike>