Skip to content

docs: use dedicated zero-dimensional tensor constructor in blas/base/ndarray/dscal - #16772

Open
autistic-avenger wants to merge 2 commits into
stdlib-js:developfrom
autistic-avenger:0D_dscal
Open

autistic-avenger wants to merge 2 commits into
stdlib-js:developfrom
autistic-avenger:0D_dscal

Conversation

@autistic-avenger

@autistic-avenger autistic-avenger commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Resolves a part of #16654

Description

What is the purpose of this pull request?

This pull request:

  • updates @stdlib/blas/base/ndarray/dscal to use the dedicated Float64Tensor0D constructor in place of @stdlib/ndarray/from-scalar

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Reference Packages

Did the content of this pull request follow one or more existing packages? Answering is optional.

This pull request followed these packages:

  • @stdlib/ndarray/tensor0d/float64

What carried over from the reference(s)?

  • Replacing from-scalar calls with the dedicated typed zero-dimensional ndarray constructor.

What differed, or what did you have to work out yourself?

  • Used Float64Tensor0D for the float64 scalar ndarray and applied the replacement consistently across the package’s examples, benchmark, documentation, and tests.

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

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

proof reading and pr md writing was done by AI.


@stdlib-js/reviewers

@autistic-avenger
autistic-avenger requested a review from a team November 21, 2026 23:42
@stdlib-bot stdlib-bot added the Good First PR A pull request resolving a Good First Issue. label Nov 21, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Hello! Thank you for your contribution to stdlib.

We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

@stdlib-bot

stdlib-bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

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

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

@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 22, 2026
@kgryte kgryte added Documentation Improvements, additions, or changes to documentation. difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. review: 5 and removed Needs Review A pull request which needs code review. labels Nov 22, 2026
@kgryte

kgryte commented Nov 22, 2026

Copy link
Copy Markdown
Member

@autistic-avenger You need to check the contributing guidelines box in your OP before this PR can be merged.

@autistic-avenger

Copy link
Copy Markdown
Contributor Author

My bad ,I didn't realise it was left unchecked. Updated Please merge. @kgryte

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). difficulty: 1 Low degree of difficulty. Should be straightforward to implement and/or resolve. Documentation Improvements, additions, or changes to documentation. Good First PR A pull request resolving a Good First Issue. review: 5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants