Skip to content

Commit ea27785

Browse files
add support for accessor arrays
1 parent 6a61af4 commit ea27785

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

lib/node_modules/@stdlib/stats/base/cumax/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ console.log( y );
163163

164164
<section class="related">
165165

166+
* * *
167+
168+
## See Also
169+
170+
- <span class="package-name">[`@stdlib/stats/base/cumin`][@stdlib/stats/base/cumin]</span><span class="delimiter">: </span><span class="description">calculate the cumulative minimum of a strided array.</span>
171+
- <span class="package-name">[`@stdlib/stats/strided/dcumax`][@stdlib/stats/strided/dcumax]</span><span class="delimiter">: </span><span class="description">calculate the cumulative maximum of double-precision floating-point strided array elements.</span>
172+
- <span class="package-name">[`@stdlib/stats/base/scumax`][@stdlib/stats/base/scumax]</span><span class="delimiter">: </span><span class="description">calculate the cumulative maximum of single-precision floating-point strided array elements.</span>
173+
166174
</section>
167175

168176
<!-- /.related -->
@@ -177,6 +185,12 @@ console.log( y );
177185

178186
<!-- <related-links> -->
179187

188+
[@stdlib/stats/base/cumin]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/cumin
189+
190+
[@stdlib/stats/strided/dcumax]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/strided/dcumax
191+
192+
[@stdlib/stats/base/scumax]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/scumax
193+
180194
<!-- </related-links> -->
181195

182196
</section>

lib/node_modules/@stdlib/stats/base/cumax/lib/accessors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
4747
* var y = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
4848
*
4949
* cumax( 4, arraylike2object( x ), 2, 1, arraylike2object( y ), 1, 0 );
50-
* // y => [ 1.0, 1.0, 2.0, 4.0, 0.0, 0.0, 0.0, 0.0 ]
50+
*
51+
* console.log( y );
52+
* // => [ 1.0, 1.0, 2.0, 4.0, 0.0, 0.0, 0.0, 0.0 ]
5153
*/
5254
function cumax( N, x, strideX, offsetX, y, strideY, offsetY ) {
5355
var xbuf;

0 commit comments

Comments
 (0)