tmp/tmp3tv2n740/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Copy elements of one matrix or vector into another <a id="linalg.algs.blas1.copy">[[linalg.algs.blas1.copy]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template<in-object InObj, out-object OutObj>
|
| 5 |
+
void copy(InObj x, OutObj y);
|
| 6 |
+
template<class ExecutionPolicy, in-object InObj, out-object OutObj>
|
| 7 |
+
void copy(ExecutionPolicy&& exec, InObj x, OutObj y);
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
[*Note 1*: These functions correspond to the BLAS function
|
| 11 |
+
`xCOPY`. — *end note*]
|
| 12 |
+
|
| 13 |
+
*Constraints:* `x.rank()` equals `y.rank()`.
|
| 14 |
+
|
| 15 |
+
*Mandates:* For all `r` in the range [ 0, `x.rank()`),
|
| 16 |
+
|
| 17 |
+
``` cpp
|
| 18 |
+
compatible-static-extents<InObj, OutObj>(r, r)
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
is `true`.
|
| 22 |
+
|
| 23 |
+
*Preconditions:* `x.extents()` equals `y.extents()`.
|
| 24 |
+
|
| 25 |
+
*Effects:* Assigns each element of x to the corresponding element of y.
|
| 26 |
+
|