Skip to content

feat: add blas/ext/base/ndarray/dreplicate - #16540

Open
Siddhram wants to merge 2 commits into
stdlib-js:developfrom
Siddhram:feat/add-blas-ext-base-ndarray-dreplicate
Open

Siddhram wants to merge 2 commits into
stdlib-js:developfrom
Siddhram:feat/add-blas-ext-base-ndarray-dreplicate

Conversation

@Siddhram

@Siddhram Siddhram commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Resolves a part of #14404

Description

What is the purpose of this pull request?

This pull request:

  • Adds @stdlib/blas/ext/base/ndarray/dreplicate, an ndarray API wrapper for @stdlib/blas/ext/base/dreplicate, which replicates each element in a one-dimensional double-precision floating-point ndarray a specified number of times.
  • Accepts an array-like object containing an input ndarray, an output ndarray, and a scalar replication count (k), following the conventions of existing @stdlib/blas/ext/base/ndarray packages.
  • Supports ndarray offsets and strides, including non-unit and negative strides.
  • Includes unit tests, benchmarks, TypeScript declarations (index.d.ts and test.ts), REPL documentation, a README, and examples.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

I used AI assistance to research existing ndarray implementations, understand the repository conventions, and generate unit tests and benchmarks. The implementation and documentation were authored manually.


@stdlib-js/reviewers

@Siddhram
Siddhram requested a review from a team November 7, 2026 18:39
@stdlib-bot stdlib-bot added BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Needs Review A pull request which needs code review. labels Nov 7, 2026
@stdlib-bot

stdlib-bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/ext/base/ndarray/dreplicate $\\color{green}138/138$
$\\color{green}+0.00\\%$
$\\color{green}3/3$
$\\color{green}+0.00\\%$
$\\color{green}1/1$
$\\color{green}+0.00\\%$
$\\color{green}138/138$
$\\color{green}+0.00\\%$

The above coverage report was generated for the changes in this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants