Skip to content

Support Float16Array - #49

Merged
rreusser merged 1 commit into
scijs:masterfrom
NAThompson:float16-support
Aug 26, 2026
Merged

Support Float16Array#49
rreusser merged 1 commit into
scijs:masterfrom
NAThompson:float16-support

Conversation

@NAThompson

Copy link
Copy Markdown
Contributor

Without this a Float16Array gets the "generic" dtype, so .get() fails with this.data.get is not a function -- the same breakage BigInt64Array had before 86be8a1.

@NAThompson

Copy link
Copy Markdown
Contributor Author

@mikolalysenko : Hopefully not too annoying to get a PR after 7 years-it is a useful package!

@rreusser

Copy link
Copy Markdown
Member

Maybe add to the docs? https://github.com/scijs/ndarray#arraydtype

Otherwise, looks reasonable to me! I think I'm a maintainer and can help get it published, under a new minor version, I think?

Without this a `Float16Array` gets the "generic" dtype, so `.get()` fails with
`this.data.get is not a function` -- the same breakage `BigInt64Array` had
before 86be8a1.
@NAThompson

Copy link
Copy Markdown
Contributor Author

@rreusser : Added one line to the README.md, LMK if you need anything more.

@rreusser
rreusser merged commit 9db852d into scijs:master Aug 26, 2026
@rreusser

Copy link
Copy Markdown
Member

Published as v1.1.1 (minor bump because it's a backward-compatible API change, and not 1.1.0 because that was already published and then deleted 13 years ago). Thanks again! 馃帀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants