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 <gkishan1kyt@gmail.com>
5454
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5555
Gaurav <gaurav70380@gmail.com>
5656
Gautam sharma <gautamkrishnasharma1@gmail.com>
57+
Girish Garg <garggirish2020@gmail.com>
5758
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
5859
Gunj Joshi <gunjjoshi8372@gmail.com>
5960
Gururaj Gurram <gururajgurram1512@gmail.com>
6061
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
61-
Harsh <149176984+hrshya@users.noreply.github.com>
62+
Harsh <harshyadav6078@gmail.com>
6263
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
6364
Harshita Kalani <harshitakalani02@gmail.com>
65+
Hemang Choudhary <coehemang@gmail.com>
6466
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
6567
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
6668
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
@@ -86,6 +88,7 @@ Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
8688
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
8789
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8890
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
91+
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
8992
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
9093
MANI <77221000+Eternity0207@users.noreply.github.com>
9194
Mahfuza Humayra Mohona <mhmohona@gmail.com>
@@ -190,3 +193,4 @@ pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
190193
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
191194
rainn <88160429+AmCodesLame@users.noreply.github.com>
192195
rei2hu <reimu@reimu.ws>
196+
zhanggy <geodaoyu@foxmail.com>

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)