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