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
30 lines (22 loc) · 698 Bytes
/
repl.txt
File metadata and controls
30 lines (22 loc) · 698 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
{{alias}}( x, writable )
Returns an ndarray without singleton dimensions.
The function always returns a new ndarray instance even if the input ndarray
does not contain any singleton dimensions.
Parameters
----------
x: ndarray
Input array.
writable: boolean
Boolean indicating whether a returned array should be writable.
Returns
-------
out: ndarray
Squeezed array.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ], { 'ndmin': 5 } )
<ndarray>[ [ [ [ [1, 2 ], [ 3, 4 ] ] ] ] ]
> var y = {{alias}}( x, false )
<ndarray>[ [ 1, 2 ], [ 3, 4 ] ]
See Also
--------