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
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,17 @@
4
4
5
5
<sectionclass="release"id="unreleased">
6
6
7
-
## Unreleased (2025-01-02)
7
+
## Unreleased (2025-01-11)
8
+
9
+
<sectionclass="features">
10
+
11
+
### Features
12
+
13
+
-[`0619690`](https://github.com/stdlib-js/stdlib/commit/0619690c1a69a402ba6315631506302f010d6404) - add C ndarray interface and refactor implementation for `stats/base/scumaxabs`[(#4684)](https://github.com/stdlib-js/stdlib/pull/4684)
14
+
15
+
</section>
16
+
17
+
<!-- /.features -->
8
18
9
19
<sectionclass="bug-fixes">
10
20
@@ -22,8 +32,9 @@
22
32
23
33
<details>
24
34
35
+
-[`0619690`](https://github.com/stdlib-js/stdlib/commit/0619690c1a69a402ba6315631506302f010d6404) - **feat:** add C ndarray interface and refactor implementation for `stats/base/scumaxabs`[(#4684)](https://github.com/stdlib-js/stdlib/pull/4684)_(by Aayush Khanna)_
-[`dbb2756`](https://github.com/stdlib-js/stdlib/commit/dbb27568ed7d5f00d6edc28f189bfd2d09af09ff) - **refactor:** update `stats/base/scumaxabs` native addon from C++ to C [(#4409)](https://github.com/stdlib-js/stdlib/pull/4409)_(by Vivek maurya)_
37
+
-[`dbb2756`](https://github.com/stdlib-js/stdlib/commit/dbb27568ed7d5f00d6edc28f189bfd2d09af09ff) - **refactor:** update `stats/base/scumaxabs` native addon from C++ to C [(#4409)](https://github.com/stdlib-js/stdlib/pull/4409)_(by Vivek Maurya)_
27
38
-[`62364f6`](https://github.com/stdlib-js/stdlib/commit/62364f62ea823a3b52c2ad25660ecd80c71f8f36) - **style:** fix C comment alignment _(by Philipp Burckhardt)_
28
39
-[`9e689ff`](https://github.com/stdlib-js/stdlib/commit/9e689ffcb7c6223afc521f1e574b42f10921cf5e) - **chore:** fix indentation in manifest.json files _(by Philipp Burckhardt)_
The `N` and `stride` parameters determine which elements in `x` and `y` are accessed at runtime. For example, to compute the cumulative maximum absolute value of every other element in `x`,
94
+
The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to compute the cumulative maximum absolute value of every other element in `x`,
@@ -141,7 +141,7 @@ The function has the following additional parameters:
141
141
-**offsetX**: starting index for `x`.
142
142
-**offsetY**: starting index for `y`.
143
143
144
-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying `buffer`, `offsetX` and `offsetY`parameters support indexing semantics based on a starting indices. For example, to calculate the cumulative maximum absolute value of every other value in `x` starting from the second value and to store in the last `N` elements of `y` starting from the last element
144
+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on a starting indices. For example, to calculate the cumulative maximum absolute value of every other element in `x` starting from the second element and to store in the last `N` elements of `y` starting from the last element
var scumaxabs =require( '@stdlib/stats-base-scumaxabs' );
181
180
182
-
var y;
183
-
var x;
184
-
var i;
185
-
186
-
x =newFloat32Array( 10 );
187
-
y =newFloat32Array( x.length );
188
-
for ( i =0; i <x.length; i++ ) {
189
-
x[ i ] =round( (randu()*100.0) -50.0 );
190
-
}
181
+
var x =discreteUniform( 10, -50, 50, {
182
+
'dtype':'float32'
183
+
});
184
+
var y =newFloat32Array( x.length );
191
185
console.log( x );
192
186
console.log( y );
193
187
@@ -199,6 +193,93 @@ console.log( y );
199
193
200
194
<!-- /.examples -->
201
195
196
+
<!-- C interface documentation. -->
197
+
198
+
* * *
199
+
200
+
<sectionclass="c">
201
+
202
+
## C APIs
203
+
204
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
205
+
206
+
<sectionclass="intro">
207
+
208
+
</section>
209
+
210
+
<!-- /.intro -->
211
+
212
+
<!-- C usage documentation. -->
213
+
214
+
<sectionclass="usage">
215
+
216
+
### Usage
217
+
218
+
```c
219
+
#include"stdlib/stats/base/scumaxabs.h"
220
+
```
221
+
222
+
#### stdlib_strided_scumaxabs( N, \*X, strideX, \*Y, strideY )
223
+
224
+
Computes the cumulative maximum absolute value of single-precision floating-point strided array elements.
0 commit comments