-
-
Notifications
You must be signed in to change notification settings - Fork 805
/
Copy pathrepl.txt
46 lines (36 loc) · 1.18 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
42
43
44
45
{{alias}}( x )
Returns an uninitialized ndarray having the same shape and data type as a
provided input ndarray.
Along with data type, shape, and order, the function infers the "class" of
the returned ndarray from the provided ndarray. For example, if provided a
"base" ndarray, the function returns a base ndarray. If provided a non-base
ndarray, the function returns a non-base ndarray.
In browser environments, the function always returns zero-filled ndarrays.
If the inferred output data type is 'generic', the function always returns a
zero-filled ndarray.
For returned ndarrays whose underlying memory is *not* initialized, memory
contents are unknown and may contain *sensitive* data.
Parameters
----------
x: ndarray
Input array.
Returns
-------
out: ndarray
Output array.
Examples
--------
> var x = {{alias:@stdlib/ndarray/base/zeros}}( 'float64', [ 2, 2 ], 'row-major' )
<ndarray>
> var sh = x.shape
[ 2, 2 ]
> var dt = x.dtype
'float64'
> var y = {{alias}}( x )
<ndarray>
> sh = y.shape
[ 2, 2 ]
> dt = y.dtype
'float64'
See Also
--------