You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 578678c
Browse filesBrowse the repository at this point in the historyBrowse files
feat!: add start and end parameter support to blas/ext/base/ndarray/dfill-nan
BREAKING CHANGE: add `start` and `end` support
To maintain previous behavior, provide additional zero-dimensional ndarrays containing the value `0` and the number of elements, respectively.
PR-URL: #14671
Reviewed-by: Athan Reines <kgryte@gmail.com>
Closes: stdlib-js/metr-issue-tracker#1248
@@ -60,6 +68,8 @@ The function has the following parameters:
60
68
61
69
- a one-dimensional input ndarray.
62
70
- a zero-dimensional ndarray containing the scalar constant.
71
+
- a zero-dimensional ndarray containing the starting index (inclusive).
72
+
- a zero-dimensional ndarray containing the ending index (exclusive).
63
73
64
74
</section>
65
75
@@ -70,6 +80,7 @@ The function has the following parameters:
70
80
## Notes
71
81
72
82
- The input ndarray is modified **in-place** (i.e., the input ndarray is **mutated**).
83
+
- If a specified `start` or `end` index is negative, the function resolves the respective index by counting backward from the last element (where `-1` refers to the last element).
0 commit comments