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.
Source code: Complex64.mjs (L11)
real component, full f64 precision
imaginary component, full f64 precision
import { Complex64 } from "wgblas";const z = new Complex64(1.1, 2.2); // 1.1 + 2.2iconsole.log(z.re, z.im); // 1.1 2.2 Copy
import { Complex64 } from "wgblas";const z = new Complex64(1.1, 2.2); // 1.1 + 2.2iconsole.log(z.re, z.im); // 1.1 2.2
Imaginary component (full f64 precision).
Real component (full f64 precision).
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.
See
Source code: Complex64.mjs (L11)