Skip to content

[RFC]: add blas/ext/base/gwhere #251

@kgryte

Description

@kgryte

The strided array version of array/base/where.

API signature:

gwhere( N, condition, strideC, x, strideX, y, strideY, out, strideOut )
gwhere.ndarray( N, condition, strideC, offsetC, x, strideX, offsetX, y, strideY, offsetY, out, strideOut, offsetOut )

where N is the number of indexed elements for each of condition, x, y, and out.

condition, x, y, and out can be any arbitrary collection.

Follow-on Work

One created and the PR is merged, the following additional packages can be added:

For the above, x, y, and out are strictly typed. condition must be a BooleanArray (which internally gets reinterpreted to a Uint8Array for speed). The C APIs can assume a bool array.

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.estimate: 2-4hrsTask which should take between 2 to 4 hours.priority: NormalNormal priority concern or feature request.🤖 AIAllowed to use AI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions