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 (25 loc) · 946 Bytes
/
repl.txt
File metadata and controls
34 lines (25 loc) · 946 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}}( arrays )
Multiplies a one-dimensional double-precision complex floating-point ndarray
by a scalar constant.
If provided an empty input ndarray, the function returns the input ndarray
unchanged.
Parameters
----------
arrays: ArrayLikeObject<ndarray>
Array-like object containing the following ndarrays:
- a one-dimensional input ndarray.
- a zero-dimensional ndarray containing a scalar constant.
Returns
-------
out: ndarray
Input ndarray.
Examples
--------
> var x = new {{alias:@stdlib/ndarray/vector/complex128}}( [ 4.0, 2.0, -3.0, 5.0 ] );
> var ca = new {{alias:@stdlib/complex/float64/ctor}}( 2.0, 0.0 );
> var alpha = {{alias:@stdlib/ndarray/from-scalar}}( ca, { 'dtype': 'complex128' } );
> {{alias}}( [ x, alpha ] );
> x
<ndarray>[ <Complex128>[ 8.0, 4.0 ], <Complex128>[ -6.0, 10.0 ] ]
See Also
--------