Skip to content

Commit 2e566d2

Browse files
committed
Auto-generated commit
1 parent 924df6a commit 2e566d2

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-02-02)
7+
## Unreleased (2025-02-03)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`66a14d0`](https://github.com/stdlib-js/stdlib/commit/66a14d098c441ecec3909ef07737cf5d698d0456) - **docs:** minor changes in docs of `stats/base/max` [(#5043)](https://github.com/stdlib-js/stdlib/pull/5043) _(by Aayush Khanna)_
2526
- [`7793d43`](https://github.com/stdlib-js/stdlib/commit/7793d4347d1e97f221b05522e724dd26ebb96ca7) - **feat:** add support for accessor arrays and refactor `stats/base/max` [(#5008)](https://github.com/stdlib-js/stdlib/pull/5008) _(by Aayush Khanna)_
2627
- [`e0799e5`](https://github.com/stdlib-js/stdlib/commit/e0799e5da799e74ff3369f652f4380aeb8dfe7fc) - **refactor:** update paths _(by Athan Reines)_
2728

benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var options = {
4545
* @returns {Function} benchmark function
4646
*/
4747
function createBenchmark( len ) {
48-
var x = uniform( len, -100, 100, options );
48+
var x = uniform( len, -10, 10, options );
4949
return benchmark;
5050

5151
function benchmark( b ) {

benchmark/benchmark.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var options = {
4545
* @returns {Function} benchmark function
4646
*/
4747
function createBenchmark( len ) {
48-
var x = uniform( len, -100, 100, options );
48+
var x = uniform( len, -10, 10, options );
4949
return benchmark;
5050

5151
function benchmark( b ) {

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' );
3636
* @param {Array<Function>} x.accessors - array element accessors
3737
* @param {integer} strideX - stride length
3838
* @param {NonNegativeInteger} offsetX - starting index
39-
* @returns {number} sum
39+
* @returns {number} maximum value
4040
*
4141
* @example
4242
* var toAccessorArray = require( '@stdlib/array-base-to-accessor-array' );

lib/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,16 @@
2727
* var max = require( '@stdlib/stats-base-max' );
2828
*
2929
* var x = [ 1.0, -2.0, 2.0 ];
30-
* var N = x.length;
3130
*
32-
* var v = max( N, x, 1 );
31+
* var v = max( x.length, x, 1 );
3332
* // returns 2.0
3433
*
3534
* @example
36-
* var floor = require( '@stdlib/math-base-special-floor' );
3735
* var max = require( '@stdlib/stats-base-max' );
3836
*
3937
* var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ];
40-
* var N = floor( x.length / 2 );
4138
*
42-
* var v = max.ndarray( N, x, 2, 1 );
39+
* var v = max.ndarray( 4, x, 2, 1 );
4340
* // returns 4.0
4441
*/
4542

@@ -59,4 +56,4 @@ setReadOnly( main, 'ndarray', ndarray );
5956

6057
module.exports = main;
6158

62-
// exports: { "ndarray": "max.ndarray" }
59+
// exports: { "ndarray": "main.ndarray" }

0 commit comments

Comments
 (0)