Skip to content

Commit 51879fe

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 5adeabf commit 51879fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/to-reversed-dimensions

lib/node_modules/@stdlib/ndarray/base/to-reversed-dimensions/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ var toReversedDimensions = require( '@stdlib/ndarray/base/to-reversed-dimensions
8787
// Create a 3x2 matrix:
8888
var x = array( [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] );
8989

90-
// Reverse the order of the first axis:
90+
// Reverse the order of the first dimension:
9191
var y = toReversedDimensions( x, [ 0 ] );
9292
var arr = ndarray2array( y );
9393
// returns [ [ 5, 6 ], [ 3, 4 ], [ 1, 2 ] ]
9494

95-
// Reverse the order of the second axis:
95+
// Reverse the order of the second dimension:
9696
y = toReversedDimensions( x, [ 1 ] );
9797
arr = ndarray2array( y );
9898
// returns [ [ 2, 1 ], [ 4, 3 ], [ 6, 5 ] ]
9999

100-
// Reverse the order of all axes:
100+
// Reverse the order of all dimensions:
101101
y = toReversedDimensions( x, [ 0, 1 ] );
102102
arr = ndarray2array( y );
103103
// returns [ [ 6, 5 ], [ 4, 3 ], [ 2, 1 ] ]

0 commit comments

Comments
 (0)