You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/base/scopy/README.md
+134
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,140 @@ console.log( y );
158
158
159
159
<!-- /.examples -->
160
160
161
+
<!-- C interface documentation. -->
162
+
163
+
* * *
164
+
165
+
<sectionclass="c">
166
+
167
+
## C APIs
168
+
169
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
170
+
171
+
<sectionclass="intro">
172
+
173
+
</section>
174
+
175
+
<!-- /.intro -->
176
+
177
+
<!-- C usage documentation. -->
178
+
179
+
<sectionclass="usage">
180
+
181
+
### Usage
182
+
183
+
```c
184
+
#include"stdlib/blas/base/scopy.h"
185
+
```
186
+
187
+
#### c_scopy( N, \*X, strideX, \*Y, strideY )
188
+
189
+
Copies values from `X` into `Y`.
190
+
191
+
```c
192
+
constfloat x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
193
+
float y[] = { 0.0f, 0.0f, 0.0f, 0.0f };
194
+
195
+
c_scopy( 4, x, 1, y, 1 );
196
+
```
197
+
198
+
The function accepts the following arguments:
199
+
200
+
- **N**: `[in] CBLAS_INT` number of indexed elements.
201
+
- **X**: `[in] float*` input array.
202
+
- **strideX**: `[in] CBLAS_INT` index increment for `X`.
203
+
- **Y**: `[out] float*` output array.
204
+
- **strideY**: `[in] CBLAS_INT` index increment for `Y`.
0 commit comments