Skip to content

Commit a355a92

Browse files
committed
Auto-generated commit
1 parent 637c2ee commit a355a92

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`ed2d89f`](https://github.com/stdlib-js/stdlib/commit/ed2d89f2c0c0950bfb6fad6375296173a7aee0b9) - **refactor:** use base assertion utility _(by Athan Reines)_
2526
- [`b9d3f03`](https://github.com/stdlib-js/stdlib/commit/b9d3f03a8fc45fa0f65dc1ded1a5b40125a0a0fb) - **refactor:** use base assertion utility _(by Athan Reines)_
2627
- [`be3e0b9`](https://github.com/stdlib-js/stdlib/commit/be3e0b984eb981caa758172dc7179cbd6a118a2e) - **fix:** treat generic accessor arrays similar to built-in generic arrays _(by Athan Reines)_
2728
- [`4a70790`](https://github.com/stdlib-js/stdlib/commit/4a707903dfef7c2b56216000165706497d19a251) - **style:** add missing spaces _(by Philipp Burckhardt)_

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var strides2offset = require( '@stdlib/ndarray-base-strides2offset' );
3131
var strides2order = require( '@stdlib/ndarray-base-strides2order' );
3232
var numel = require( '@stdlib/ndarray-base-numel' );
3333
var ndarray = require( '@stdlib/ndarray-ctor' );
34+
var isColumnMajor = require( '@stdlib/ndarray-base-assert-is-column-major-string' );
3435
var isDataType = require( '@stdlib/ndarray-base-assert-is-data-type' );
3536
var isOrder = require( '@stdlib/ndarray-base-assert-is-order' );
3637
var isCastingMode = require( '@stdlib/ndarray-base-assert-is-casting-mode' );
@@ -321,7 +322,7 @@ function array() {
321322
}
322323
} else if ( buffer ) {
323324
if ( btype === 'generic' && opts.flatten && isArray( buffer ) ) {
324-
buffer = flatten( buffer, osh || arrayShape( buffer ), order === 'column-major' );
325+
buffer = flatten( buffer, osh || arrayShape( buffer ), isColumnMajor( order ) );
325326
}
326327
if ( buffer.length !== len ) {
327328
throw new RangeError( 'invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.' );

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@stdlib/math-base-special-abs": "^0.2.2",
5555
"@stdlib/ndarray-base-assert-is-allowed-data-type-cast": "^0.2.2",
5656
"@stdlib/ndarray-base-assert-is-casting-mode": "^0.2.2",
57+
"@stdlib/ndarray-base-assert-is-column-major-string": "github:stdlib-js/ndarray-base-assert-is-column-major-string#main",
5758
"@stdlib/ndarray-base-assert-is-data-type": "^0.2.2",
5859
"@stdlib/ndarray-base-assert-is-order": "^0.2.2",
5960
"@stdlib/ndarray-base-assert-is-row-major-string": "github:stdlib-js/ndarray-base-assert-is-row-major-string#main",

0 commit comments

Comments
 (0)