wgblas
    Preparing search index...

    Class Complex64

    A single 64-bit (f64) complex number: a real and an imaginary component. Same shape as Complex32, with one deliberate difference: no f32 rounding — a plain JS number already is an f64, so re/im are kept at their full native double precision.

    Index
    • Parameters

      • re: number

        real component, full f64 precision

      • im: number

        imaginary component, full f64 precision

        import { Complex64 } from "wgblas";

        const z = new Complex64(1.1, 2.2); // 1.1 + 2.2i
        console.log(z.re, z.im); // 1.1 2.2

      Returns Complex64

    im: number

    Imaginary component (full f64 precision).

    re: number

    Real component (full f64 precision).