Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a355a92

Browse filesBrowse files
committed
Auto-generated commit
1 parent 637c2ee commit a355a92
Copy full SHA for a355a92

File tree

5 files changed

+8
-5
lines changed
Filter options

5 files changed

+8
-5
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: dist/index.js
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.js.map

Copy file name to clipboardExpand all lines: dist/index.js.map
+3-3Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/main.js

Copy file name to clipboardExpand all lines: lib/main.js
+2-1Lines changed: 2 additions & 1 deletion
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

Copy file name to clipboardExpand all lines: package.json
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.