tmp/tmp_d2vy4fv/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Multiply the elements of an object in place by a scalar <a id="linalg.algs.blas1.scal">[[linalg.algs.blas1.scal]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template<class Scalar, inout-object InOutObj>
|
| 5 |
+
void scale(Scalar alpha, InOutObj x);
|
| 6 |
+
template<class ExecutionPolicy, class Scalar, inout-object InOutObj>
|
| 7 |
+
void scale(ExecutionPolicy&& exec, Scalar alpha, InOutObj x);
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
[*Note 1*: These functions correspond to the BLAS function
|
| 11 |
+
`xSCAL`. — *end note*]
|
| 12 |
+
|
| 13 |
+
*Effects:* Overwrites x with the result of computing the elementwise
|
| 14 |
+
multiplication α x, where the scalar α is `alpha`.
|
| 15 |
+
|