-
-
Notifications
You must be signed in to change notification settings - Fork 0
[RFC]: add blas/ext/base/gwhere #251
Copy link
Copy link
Closed
stdlib-js/stdlib
#11345Labels
FeatureTask to add a new feature.Task to add a new feature.difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.Low degree of difficulty. Should be straightforward to implement and/or resolve.estimate: 2-4hrsTask which should take between 2 to 4 hours.Task which should take between 2 to 4 hours.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.🤖 AIAllowed to use AI.Allowed to use AI.
Metadata
Metadata
Assignees
Labels
FeatureTask to add a new feature.Task to add a new feature.difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.Low degree of difficulty. Should be straightforward to implement and/or resolve.estimate: 2-4hrsTask which should take between 2 to 4 hours.Task which should take between 2 to 4 hours.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.🤖 AIAllowed to use AI.Allowed to use AI.
The strided array version of
array/base/where.API signature:
where
Nis the number of indexed elements for each ofcondition,x,y, andout.condition,x,y, andoutcan be any arbitrary collection.Follow-on Work
One created and the PR is merged, the following additional packages can be added:
blas/ext/base/dwhere#422blas/ext/base/swhere#423blas/ext/base/zwhere#424blas/ext/base/cwhere#425For the above,
x,y, andoutare strictly typed.conditionmust be aBooleanArray(which internally gets reinterpreted to aUint8Arrayfor speed). The C APIs can assume aboolarray.