Converts a complex number to a typed array.
// Returns a Float32Array [3, 4]const z = Chalkboard.comp.init(3, 4);const zf32 = Chalkboard.comp.toTypedArray(z); Copy
// Returns a Float32Array [3, 4]const z = Chalkboard.comp.init(3, 4);const zf32 = Chalkboard.comp.toTypedArray(z);
The complex number
Optional
The type of the typed array, which can be "int8", "int16", "int32", "float32", "float64", or "bigint64" (optional, defaults to "float32")
Converts a complex number to a typed array.
Example