Contributor
Jaysukh Makvana

Add support for Boolean arrays in Stdlib


Mentors
Athan Reines, Pranav Goswami
Organization
stdlib
Technologies
c, javascript, nodejs, Native addons
Topics
Datatypes, Array
Referring the implementation of how complex64 arrays are implemented, I proposed adding support for boolean arrays in stdlib. Unlike complex64 array, boolean array will be backed by uint8Array and integrated throughout stdlib namespaces like array, strided and ndarray. I will be adding 23 methods like copyWithin, every, fill, filter, etc and corresponding constructors. I will be adding implementation for the array masking and indexing using the Boolean array. Some ndarray APIs also be added which return types are boolean like, some, every, none, any and perform dimensionality reduction in ndarray. With successful completion of this project, stdlib will have @stdlib/array/bool package exposing a new typed array constructor, support for BooleanArray instances throughout @stdlib/array/*, ndarrays-API and other integration opportunities.