aplbrain / aplbrain/npyjs

Support for all numpy dtypes

Open
#43 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
99
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Numpy supports the following dtypes as per [the docs](https://numpy.org/doc/stable/reference/arrays.dtypes.html#specifying-and-constructing-data-types). However `npyjs` only supports the following:

| character | description | supported |
| --- | --- | --- |
| '?' | boolean | NO |
| 'b' | (signed) byte | NO |
| 'B' | unsigned byte | NO |
| 'i' | (signed) integer | YES |
| 'u' | unsigned integer | YES |
| 'f' | floating-point | YES |
| 'c' | complex-floating point | NO |
| 'm' | timedelta | NO |
| 'M' | datetime | NO |
| 'O' | (Python) objects | N/A |
| 'S', 'a' | zero-terminated bytes (not recommended) | NO |
| 'U' | Unicode string | NO |
| 'V' | raw data ([void](https://numpy.org/doc/stable/reference/arrays.scalars.html#numpy.void)) | NO |

Would be great to add these in.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.