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
32 lines (23 loc) · 828 Bytes
/
repl.txt
File metadata and controls
32 lines (23 loc) · 828 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
{{alias}}( arrays )
Multiplies a one-dimensional 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/output ndarray.
- a zero-dimensional ndarray containing a scalar constant `alpha`.
Returns
-------
out: ndarray
Input ndarray.
Examples
--------
> var x = {{alias:@stdlib/ndarray/vector/ctor}}( [ 4.0, 2.0, -3.0, 5.0, -1.0 ], 'generic' );
> var alpha = {{alias:@stdlib/ndarray/from-scalar}}( 5.0, { 'dtype': 'generic' } );
> {{alias}}( [ x, alpha ] );
> x
<ndarray>[ 20.0, 10.0, -15.0, 25.0, -5.0 ]
See Also
--------