8000 Auto-generated commit · stdlib-js/ndarray-base-for-each@4c82c9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c82c9a

Browse files
committed
Auto-generated commit
1 parent 87220f2 commit 4c82c9a

File tree

7 files changed

+91
-47
lines changed

7 files changed

+91
-47
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2024-07-31)
8+
9+
<section class="bug-fixes">
10+
11+
### Bug Fixes
12+
13+
- [`c57d1d8`](https://github.com/stdlib-js/stdlib/commit/c57d1d880a32cfaff0c57744c81ef641640cddef) - return subscripts from perspective of ndarray view, not buffer
14+
15+
</section>
16+
17+
<!-- /.bug-fixes -->
18+
19+
<section class="commits">
20+
21+
### Commits
22+
23+
<details>
24+
25+
- [`c57d1d8`](https://github.com/stdlib-js/stdlib/commit/c57d1d880a32cfaff0c57744c81ef641640cddef) - **fix:** return subscripts from perspective of ndarray view, not buffer _(by Athan Reines)_
26+
27+
</details>
28+
29+
</section>
30+
31+
<!-- /.commits -->
32+
33+
<section class="contributors">
34+
35+
### Contributors
36+
37+
A total of 1 person contributed to this release. Thank you to this contributor:
38+
39+
- Athan Reines
40+
41+
</section>
42+
43+
<!-- /.contributors -->
44+
45+
</section>
46+
47+
<!-- /.release -->
48+
549
<section class="release" id="v0.1.0">
650

751
## 0.1.0 (2024-07-29)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
250250
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-for-each.svg
251251
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-for-each
252252

253-
[test-image]: https://github.com/stdlib-js/ndarray-base-for-each/actions/workflows/test.yml/badge.svg?branch=v0.1.0
254-
[test-url]: https://github.com/stdlib-js/ndarray-base-for-each/actions/workflows/test.yml?query=branch:v0.1.0
253+
[test-image]: https://github.com/stdlib-js/ndarray-base-for-each/actions/workflows/test.yml/badge.svg?branch=main
254+
[test-url]: https://github.com/stdlib-js/ndarray-base-for-each/actions/workflows/test.yml?query=branch:main
255255

256256
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-for-each/main.svg
257257
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-for-each?branch=main

dist/index.js

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/nd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function forEachnd( x, fcn, thisArg ) {
110110
// Iterate over each element based on the linear **view** index, regardless as to how the data is stored in memory...
111111
for ( i = 0; i < len; i++ ) {
112112
ix = vind2bind( sh, sx, ox, ordx, i, MODE );
113-
idx = ind2sub( sh, sx, ox, ordx, i, MODE );
113+
idx = ind2sub( sh, sx, 0, ordx, i, MODE ); // return subscripts from the perspective of the ndarray view
114114
fcn.call( thisArg, xbuf[ ix ], idx, x.ref );
115115
}
116116
}

lib/nd_accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function forEachnd( x, fcn, thisArg ) {
128128
// Iterate over each element based on the linear **view** index, regardless as to how the data is stored in memory...
129129
for ( i = 0; i < len; i++ ) {
130130
ix = vind2bind( sh, sx, ox, ordx, i, MODE );
131-
idx = ind2sub( sh, sx, ox, ordx, i, MODE );
131+
idx = ind2sub( sh, sx, 0, ordx, i, MODE ); // return subscripts from the perspective of the ndarray view
132132
fcn.call( thisArg, get( xbuf, ix ), idx, x.ref );
133133
}
134134
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/array-base-reverse": "^0.2.1",
40+
"@stdlib/array-base-reverse": "^0.2.2",
4141
"@stdlib/array-base-take-indexed": "^0.2.2",
4242
"@stdlib/array-base-zero-to": "^0.2.1",
4343
"@stdlib/ndarray-base-ind2sub": "^0.2.2",
4444
"@stdlib/ndarray-base-iteration-order": "^0.2.2",
4545
"@stdlib/ndarray-base-ndarraylike2object": "^0.2.2",
46-
"@stdlib/ndarray-base-nullary-loop-interchange-order": "^0.2.1",
46+
"@stdlib/ndarray-base-nullary-loop-interchange-order": "^0.2.2",
4747
"@stdlib/ndarray-base-nullary-tiling-block-size": "^0.2.2",
4848
"@stdlib/ndarray-base-numel": "^0.2.2",
4949
"@stdlib/ndarray-base-vind2bind": "^0.2.2",

0 commit comments

Comments
 (0)
0