Skip to content

docs: use dedicated zero-dimensional tensor constructor in blas/ext/base/ndarray/capx - #17041

Open
iUjjwalRaj wants to merge 1 commit into
stdlib-js:developfrom
iUjjwalRaj:docs/tensor0d-capx-16654
Open

iUjjwalRaj wants to merge 1 commit into
stdlib-js:developfrom
iUjjwalRaj:docs/tensor0d-capx-16654

Conversation

@iUjjwalRaj

Copy link
Copy Markdown
Contributor

Resolves a part of #16654.

Description

What is the purpose of this pull request?

This pull request:

  • replaces scalar2ndarray zero-dimensional ndarray creation with @stdlib/ndarray/tensor0d/complex64 (Complex64Tensor0D) across README.md, docs/repl.txt, docs/types/index.d.ts, docs/types/test.ts, examples/index.js, lib/index.js, lib/main.js, benchmark/benchmark.js, and test/test.js in blas/ext/base/ndarray/capx

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:

  • blas/ext/base/ndarray/caxpby (37c95c00)

What carried over from the reference(s)?

  • Complex64Tensor0D constructor usage across tests, benchmarks, examples, documentation, and TypeScript declarations, plus REPL {{alias:@stdlib/ndarray/tensor0d/complex64}} usage

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

  • adjusted the argument count for capx (alpha only) and kept the @stdlib/types/complex Complex64 import in docs/types/index.d.ts where it is used by the type signature
  • ran package unit tests (12/12 assertions passed), examples, Markdown lint, REPL help lint, ESLint across JS/examples/tests/benchmarks, TypeScript declaration/test lints, EditorConfig lint, and license header checks locally

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.".

I used AI assistance to identify this unclaimed package, migrate scalar2ndarray usages to Complex64Tensor0D across the 9 package files following blas/ext/base/ndarray/caxpby, and verify tests and linters locally.


@stdlib-js/reviewers

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown_pkg_readmes
    status: passed
  - task: lint_markdown_docs
    status: na
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: passed
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: passed
  - task: lint_javascript_tests
    status: passed
  - task: lint_javascript_benchmarks
    status: passed
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: passed
  - task: lint_typescript_tests
    status: passed
  - task: lint_license_headers
    status: passed
---
@iUjjwalRaj
iUjjwalRaj requested review from a team and a balanced review from Copilot December 1, 2026 07:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@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. Good First PR A pull request resolving a Good First Issue. labels Dec 1, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/ext/base/ndarray/capx $\\color{green}116/116$
$\\color{green}+100.00\\%$
$\\color{green}3/3$
$\\color{green}+100.00\\%$
$\\color{green}1/1$
$\\color{green}+100.00\\%$
$\\color{green}116/116$
$\\color{green}+100.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). Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants