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: CHANGELOG.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,25 @@
4
4
5
5
<sectionclass="release"id="unreleased">
6
6
7
-
## Unreleased (2025-05-20)
7
+
## Unreleased (2025-06-14)
8
+
9
+
<sectionclass="features">
10
+
11
+
### Features
12
+
13
+
-[`fe35e83`](https://github.com/stdlib-js/stdlib/commit/fe35e83251890e69ae041104dfcefa9bcfbbd37a) - add C implementation for `math/base/special/minmaxabs`[(#6983)](https://github.com/stdlib-js/stdlib/pull/6983)
14
+
15
+
</section>
16
+
17
+
<!-- /.features -->
8
18
9
19
<sectionclass="commits">
10
20
11
21
### Commits
12
22
13
23
<details>
14
24
25
+
-[`fe35e83`](https://github.com/stdlib-js/stdlib/commit/fe35e83251890e69ae041104dfcefa9bcfbbd37a) - **feat:** add C implementation for `math/base/special/minmaxabs`[(#6983)](https://github.com/stdlib-js/stdlib/pull/6983)_(by Karan Anand)_
15
26
-[`28b8375`](https://github.com/stdlib-js/stdlib/commit/28b837504e216bf5b5175226511777575b4edc2a) - **docs:** remove args parameter to match TS declaration _(by Karan Anand)_
16
27
-[`a9d4530`](https://github.com/stdlib-js/stdlib/commit/a9d4530c9e486f49e6d13b8bd2d3dfaeda41cb06) - **docs:** update example and function description _(by Karan Anand)_
17
28
-[`5b8deb1`](https://github.com/stdlib-js/stdlib/commit/5b8deb1707b3e84534d70d2ac20253de39151947) - **bench:** update random value generation [(#6381)](https://github.com/stdlib-js/stdlib/pull/6381)_(by Harsh)_
Copy file name to clipboardExpand all lines: README.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,100 @@ for ( i = 0; i < 100; i++ ) {
152
152
153
153
<!-- /.examples -->
154
154
155
+
<!-- C interface documentation. -->
156
+
157
+
* * *
158
+
159
+
<sectionclass="c">
160
+
161
+
## C APIs
162
+
163
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
164
+
165
+
<sectionclass="intro">
166
+
167
+
</section>
168
+
169
+
<!-- /.intro -->
170
+
171
+
<!-- C usage documentation. -->
172
+
173
+
<sectionclass="usage">
174
+
175
+
### Usage
176
+
177
+
```c
178
+
#include"stdlib/math/base/special/minmaxabs.h"
179
+
```
180
+
181
+
#### stdlib_base_minmaxabs( x, y, &min, &max )
182
+
183
+
Evaluates the minimum and maximum absolute values in a single pass.
184
+
185
+
```c
186
+
double x = -3.14;
187
+
double y = 2.71;
188
+
189
+
double min;
190
+
double max;
191
+
stdlib_base_minmaxabs( x, y, &min, &max );
192
+
```
193
+
194
+
The function accepts the following arguments:
195
+
196
+
- **x**: `[in] double` first number.
197
+
- **y**: `[in] double` second number.
198
+
- **min**: `[out] double` destination for the minimum absolute value.
199
+
- **max**: `[out] double` destination for the maximum absolute value.
200
+
201
+
```c
202
+
void stdlib_base_minmaxabs( const double x, const double y, double* min, double* max );
203
+
```
204
+
205
+
</section>
206
+
207
+
<!-- /.usage -->
208
+
209
+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
stdlib_base_minmaxabs( x[ i ], y[ i ], &min, &max );
236
+
printf( "x: %lf, y: %lf => min: %lf, max: %lf\n", x[ i ], y[ i ], min, max );
237
+
}
238
+
}
239
+
```
240
+
241
+
</section>
242
+
243
+
<!-- /.examples -->
244
+
245
+
</section>
246
+
247
+
<!-- /.c -->
248
+
155
249
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
0 commit comments