forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
34 lines (26 loc) · 859 Bytes
/
repl.txt
File metadata and controls
34 lines (26 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{alias}}( x[, options] )
Returns a new ndarray where the order of elements of an input ndarray along
a specified dimension is reversed.
Parameters
----------
x: ndarray
Input array.
options: object (optional)
Function options.
options.dim: integer (optional)
Index of dimension along which to reverse elements. If provided an
integer less than zero, the dimension index is resolved relative to the
last dimension, with the last dimension corresponding to the value `-1`.
Default: `-1`.
Returns
-------
out: ndarray
Output array.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] )
<ndarray>[ [ 1, 2 ], [ 3, 4 ] ]
> var y = {{alias}}( x )
<ndarray>[ [ 2, 1 ], [ 4, 3 ] ]
See Also
--------