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/srot/README.md
+107
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,113 @@ console.log( y );
179
179
180
180
<!-- /.examples -->
181
181
182
+
<!-- C interface documentation. -->
183
+
184
+
* * *
185
+
186
+
<sectionclass="c">
187
+
188
+
## C APIs
189
+
190
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
191
+
192
+
<sectionclass="intro">
193
+
194
+
</section>
195
+
196
+
<!-- /.intro -->
197
+
198
+
<!-- C usage documentation. -->
199
+
200
+
<sectionclass="usage">
201
+
202
+
### Usage
203
+
204
+
```c
205
+
#include"stdlib/blas/base/srot.h"
206
+
```
207
+
208
+
#### c_srot( N, \*X, strideX, \*Y, strideY, c, s )
209
+
210
+
Applies a plane rotation.
211
+
212
+
```c
213
+
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f };
214
+
float y[] = { 6.0f, 7.0f, 8.0f, 9.0f, 10.0f };
215
+
216
+
c_drot( 5, x, 1, y, 1, 0.8f, 0.6f );
217
+
```
218
+
219
+
The function accepts the following arguments:
220
+
221
+
- **N**: `[in] CBLAS_INT` number of indexed elements.
222
+
- **X**: `[inout] float*` first input array.
223
+
- **strideX**: `[in] CBLAS_INT` index increment for `X`.
224
+
- **Y**: `[inout] float*` second input array.
225
+
- **strideY**: `[in] CBLAS_INT` index increment for `Y`.
226
+
- **c**: `[in] float` cosine of the angle of rotation.
227
+
- **s**: `[in] float` sine of the angle of rotation.
0 commit comments