-
-
Notifications
You must be signed in to change notification settings - Fork 804
/
Copy pathrepl.txt
42 lines (33 loc) · 1.08 KB
/
repl.txt
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
34
35
36
37
38
39
40
41
{{alias}}( x, writable )
Returns a view of an input ndarray in which the order of elements along the
second-to-last dimension is reversed.
If provided a zero-dimensional ndarray, as the ndarray has no dimensions to
reverse, the function simply returns a new view of the input ndarray.
If provided a one-dimensional ndarray, as the ndarray has only one
dimension, the function simply returns a new view of the input ndarray.
Parameters
----------
x: ndarray
Input array.
writable: boolean
Boolean indicating whether a returned ndarray should be writable. This
parameter only applies to ndarray constructors which support read-only
instances.
Returns
-------
out: ndarray
Output array view.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] )
<ndarray>
> x.shape
[ 2, 2 ]
> var y = {{alias}}( x, false )
<ndarray>
> y.shape
[ 2, 2 ]
> {{alias:@stdlib/ndarray/to-array}}( y )
[ [ 3, 4 ], [ 1, 2 ] ]
See Also
--------