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
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 (2024-12-23)
7
+
## Unreleased (2024-12-25)
8
+
9
+
<sectionclass="features">
10
+
11
+
### Features
12
+
13
+
-[`6ec8074`](https://github.com/stdlib-js/stdlib/commit/6ec8074bd6e6c406a743cb8a18a7eb220efa7423) - add C ndarray interface and refactor implementation for `stats/base/dcumax`[(#4137)](https://github.com/stdlib-js/stdlib/pull/4137)
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
+
-[`6ec8074`](https://github.com/stdlib-js/stdlib/commit/6ec8074bd6e6c406a743cb8a18a7eb220efa7423) - **feat:** add C ndarray interface and refactor implementation for `stats/base/dcumax`[(#4137)](https://github.com/stdlib-js/stdlib/pull/4137)_(by Aayush Khanna, Athan Reines)_
15
26
-[`62364f6`](https://github.com/stdlib-js/stdlib/commit/62364f62ea823a3b52c2ad25660ecd80c71f8f36) - **style:** fix C comment alignment _(by Philipp Burckhardt)_
16
27
-[`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
17
28
-[`267321a`](https://github.com/stdlib-js/stdlib/commit/267321a4e77cf14de5e85b36fa223a973eb605bc) - **refactor:** update `stats/base/dcumax` native addon from C++ to C [(#4072)](https://github.com/stdlib-js/stdlib/pull/4072)_(by Aayush Khanna)_
The `N` and `stride` parameters determine which elements in `x` and `y` are accessed at runtime. For example, to compute the cumulative maximum 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 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 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, the offset parameters support indexing semantics based on a starting indices. For example, to calculate the cumulative maximum 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 dcumax =require( '@stdlib/stats-base-dcumax' );
181
180
182
-
var y;
183
-
var x;
184
-
var i;
185
-
186
-
x =newFloat64Array( 10 );
187
-
y =newFloat64Array( x.length );
188
-
for ( i =0; i <x.length; i++ ) {
189
-
x[ i ] =round( randu()*100.0 );
190
-
}
181
+
var x =discreteUniform( 10, -50, 50, {
182
+
'dtype':'float64'
183
+
});
191
184
console.log( x );
185
+
186
+
var y =newFloat64Array( x.length );
192
187
console.log( y );
193
188
194
189
dcumax( x.length, x, 1, y, -1 );
@@ -199,6 +194,132 @@ console.log( y );
199
194
200
195
<!-- /.examples -->
201
196
197
+
<!-- C interface documentation. -->
198
+
199
+
* * *
200
+
201
+
<sectionclass="c">
202
+
203
+
## C APIs
204
+
205
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
206
+
207
+
<sectionclass="intro">
208
+
209
+
</section>
210
+
211
+
<!-- /.intro -->
212
+
213
+
<!-- C usage documentation. -->
214
+
215
+
<sectionclass="usage">
216
+
217
+
### Usage
218
+
219
+
```c
220
+
#include"stdlib/stats/base/dcumax.h"
221
+
```
222
+
223
+
#### stdlib_strided_dcumax( N, \*X, strideX, \*Y, strideY )
224
+
225
+
Computes the cumulative maximum of double-precision floating-point strided array elements.
0 commit comments