Repository navigation
docs: use dedicated zero-dimensional tensor constructor in stats/base/ndarray/dztest - #16690
Merged
kgryte merged 2 commits intoNov 18, 2026
Merged
Conversation
…e/ndarray/dztest`
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
reviewed
Nov 18, 2026
Signed-off-by: Athan <kgryte@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves a part of #16654.
Description
This pull request:
@stdlib/stats/base/ndarray/dztestto create its zero-dimensional ndarrays with the dedicatedFloat64Tensor0DandInt8Tensor0Dconstructors instead of@stdlib/ndarray/from-scalar, in the README, REPL help, TypeScript declarations, examples, JSDoc examples, benchmark and tests.{ 'dtype': 'float64' }options objects that were only used byfrom-scalar. Where the same options object also sets the dtype of the input array (examples, benchmark and tests), it stays.Related Issues
This pull request has the following related issues:
Reference Packages
This pull request followed these packages:
blas/ext/base/ndarray/daxpby(3757981)scalar2ndarray( value, opts )withnew Float64Tensor0D( value ), and dropping options objects that are no longer used.int8ndarray, so it usesnew Int8Tensor0D( resolveEnum( 'two-sided' ) ).docs/repl.txt, the alternative is the string'two-sided'in agenericndarray.ndarray/tensor0d/generichas no REPL alias yet, so that one line still usesfrom-scalar.Questions
No.
Other
The unit tests pass (25 of 25), and
examples/index.jsand the README and JSDoc examples run.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written primarily by Claude Code, following the reference commit. I reviewed the diff and ran the tests and examples.
@stdlib-js/reviewers