We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccbaa42 commit aea44c9Copy full SHA for aea44c9
lib/node_modules/@stdlib/ndarray/base/ctor/lib/tojson.js
@@ -57,7 +57,7 @@ function toJSON() {
57
out.strides = this._strides.slice();
58
59
// Flip the signs of negative strides:
60
- for ( i = 0; i < len; i++ ) {
+ for ( i = 0; i < out.strides.length; i++ ) {
61
if ( out.strides[ i ] < 0 ) {
62
out.strides[ i ] *= -1;
63
}
0 commit comments