Skip to content

Commit c978868

Browse files
committed
Auto-generated commit
1 parent cd2b720 commit c978868

File tree

7 files changed

+47
-31
lines changed

7 files changed

+47
-31
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-04-28)
7+
## Unreleased (2025-05-08)
88

99
<section class="bug-fixes">
1010

@@ -23,6 +23,7 @@
2323

2424
<details>
2525

26+
- [`7321e29`](https://github.com/stdlib-js/stdlib/commit/7321e294d995d496b35f24f253055190ae6a78d5) - **refactor:** use base assertion utility _(by Athan Reines)_
2627
- [`25abfc6`](https://github.com/stdlib-js/stdlib/commit/25abfc67b400f646304fa1f10b239a051f6569f6) - **refactor:** support non-built-in shape and strides objects _(by Athan Reines)_
2728
- [`5e2bbef`](https://github.com/stdlib-js/stdlib/commit/5e2bbef14efd5937e23047c01af0e740e6cbd4f6) - **fix:** add missing boolean array support _(by Athan Reines)_
2829
- [`aea44c9`](https://github.com/stdlib-js/stdlib/commit/aea44c9c8699a4d748c0db70d4a60801bfc03c40) - **fix:** update loop limit _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ GK Bishnoi <[email protected]>
5454
GURU PRASAD SHARMA <[email protected]>
5555
5656
Gautam sharma <[email protected]>
57+
Girish Garg <[email protected]>
5758
Golden Kumar <[email protected]>
5859
Gunj Joshi <[email protected]>
5960
Gururaj Gurram <[email protected]>
6061
Haroon Rasheed <[email protected]>
61-
Harsh <[email protected].com>
62+
Harsh <harshyadav6078@gmail.com>
6263
6364
Harshita Kalani <[email protected]>
65+
Hemang Choudhary <[email protected]>
6466
Hemant M Mehta <[email protected]>
6567
Hridyanshu <[email protected]>
6668
Jaimin Godhani <[email protected]>
@@ -86,6 +88,7 @@ Kohantika Nath <[email protected]>
8688
Krishnam Agarwal <[email protected]>
8789
Krishnendu Das <[email protected]>
8890
Kshitij-Dale <[email protected]>
91+
Lalit Narayan Yadav <[email protected]>
8992
Lovelin Dhoni J B <[email protected]>
9093
9194
Mahfuza Humayra Mohona <[email protected]>
@@ -190,3 +193,4 @@ pranav-1720 <[email protected]>
190193
rahulrangers <[email protected]>
191194
192195
196+

dist/index.js

Lines changed: 24 additions & 24 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: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/iget.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var isColumnMajor = require( '@stdlib/ndarray-base-assert-is-column-major-string' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -67,7 +72,7 @@ function iget( idx ) {
6772
shape = this._shape;
6873
strides = this._strides;
6974
ind = this._offset;
70-
if ( this._order === 'column-major' ) {
75+
if ( isColumnMajor( this._order ) ) {
7176
for ( i = 0; i < ndims; i++ ) {
7277
s = idx % shape[ i ];
7378
idx -= s;

lib/iset.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var isColumnMajor = require( '@stdlib/ndarray-base-assert-is-column-major-string' );
24+
25+
2126
// MAIN //
2227

2328
/**
@@ -74,7 +79,7 @@ function iset( idx, v ) {
7479
shape = this._shape;
7580
strides = this._strides;
7681
ind = this._offset;
77-
if ( this._order === 'column-major' ) {
82+
if ( isColumnMajor( this._order ) ) {
7883
for ( i = 0; i < ndims; i++ ) {
7984
s = idx % shape[ i ];
8085
idx -= s;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@stdlib/boolean-ctor": "^0.2.2",
4848
"@stdlib/complex-float64-imag": "^0.1.1",
4949
"@stdlib/complex-float64-real": "^0.1.1",
50+
"@stdlib/ndarray-base-assert-is-column-major-string": "github:stdlib-js/ndarray-base-assert-is-column-major-string#main",
5051
"@stdlib/ndarray-base-bytes-per-element": "^0.2.2",
5152
"@stdlib/ndarray-base-iteration-order": "^0.2.2",
5253
"@stdlib/ndarray-base-minmax-view-buffer-index": "^0.2.2",

0 commit comments

Comments
 (0)