Skip to content

Implementing typed arrays #13

Closed
Closed
@mateogianolio

Description

Should we use a fixed array type or give the user the ability to choose (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays)?

I'm thinking the best would be to use Float64Array, which is the equivalent of a C double.

Like this:

javascript
var buffer = new ArrayBuffer(length * 8);
var values = new Float64Array(buffer);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions