Skip to content

Commit 022cdfa

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 4e6c618 commit 022cdfa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/rot180

lib/node_modules/@stdlib/ndarray/base/rot180/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ var arr = ndarray2array( y );
103103
y = rot180( x, [ -2, -1 ], false );
104104
arr = ndarray2array( y );
105105
// returns [ [ 6, 5, 4 ], [ 3, 2, 1 ] ]
106+
107+
// Rotating twice returns the original arrangement:
108+
y = rot180( rot180( x, [ 0, 1 ], false ), [ 0, 1 ], false );
109+
console.log( ndarray2array( y ) );
110+
// => [ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
106111
```
107112

108113
</section>

0 commit comments

Comments
 (0)