-
-
Notifications
You must be signed in to change notification settings - Fork 0
[RFC]: add blas/ext/base/greplicate #249
Copy link
Copy link
Closed
stdlib-js/stdlib
#11303Labels
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: <2hrsTask which should take less than 2 hours.Task which should take less than 2 hours.🤖 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: <2hrsTask which should take less than 2 hours.Task which should take less than 2 hours.🤖 AIAllowed to use AI.Allowed to use AI.
This is the strided array equivalent of https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/iter/replicate, where each element is replicated a specified number of times.
API signatures:
where
outis assumed to haveN * kindexed elements.Example output:
Follow-on Work
Once created and the PR is merged, then the following packages can be created:
blas/ext/base/dreplicateblas/ext/base/sreplicateblas/ext/base/zreplicateblas/ext/base/creplicate