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 c15e7b7 commit 5adeabfCopy full SHA for 5adeabf
1 file changed
lib/node_modules/@stdlib/ndarray/base/to-reversed-dimensions/examples/index.js
@@ -25,17 +25,17 @@ var toReversedDimensions = require( './../lib' );
25
// Create a 3x2 matrix:
26
var x = array( [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] );
27
28
-// Reverse the order of the first axis:
+// Reverse the order of the first dimension:
29
var y = toReversedDimensions( x, [ 0 ] );
30
console.log( ndarray2array( y ) );
31
// => [ [ 5, 6 ], [ 3, 4 ], [ 1, 2 ] ]
32
33
-// Reverse the order of the second axis:
+// Reverse the order of the second dimension:
34
y = toReversedDimensions( x, [ 1 ] );
35
36
// => [ [ 2, 1 ], [ 4, 3 ], [ 6, 5 ] ]
37
38
-// Reverse the order of all axes:
+// Reverse the order of all dimensions:
39
y = toReversedDimensions( x, [ 0, 1 ] );
40
41
// => [ [ 6, 5 ], [ 4, 3 ], [ 2, 1 ] ]
0 commit comments