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
38 lines (29 loc) · 1.24 KB
/
repl.txt
File metadata and controls
38 lines (29 loc) · 1.24 KB
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
{{alias}}( x )
Reinterprets a double-precision complex floating-point ndarray as a real-
valued double-precision floating-point ndarray containing interleaved real
and imaginary components.
The returned ndarray is a view on the input ndarray data buffer.
The returned ndarray has an additional trailing dimension of size two whose
elements correspond to the real and imaginary components, respectively, of
each complex-valued element in the input ndarray.
The returned ndarray is a "base" ndarray, and, thus, the returned ndarray
does not perform bounds checking or afford any of the guarantees of the
non-base ndarray constructor. The primary intent of this function is to
reinterpret an ndarray-like object within internal implementations and to
do so with minimal overhead.
Parameters
----------
x: ndarray
Input ndarray.
Returns
-------
out: ndarray
Double-precision floating-point ndarray view.
Examples
--------
> var dt = 'complex128';
> var x = {{alias:@stdlib/ndarray/base/zeros}}( dt, [ 2, 2 ], 'row-major' );
> var out = {{alias}}( x )
<ndarray>[ [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ], [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ]
See Also
--------