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
This commit removes the `max-by` symbol from the `@stdlib/stats/base` namespace due to a package migration.
BREAKING CHANGE: remove `max-by`
To migrate, users should access the same symbol via the `@stdlib/stats/strided` namespace.
Ref: #4797
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
* Calculates the maximum value of a strided array via a callback function.
447
-
*
448
-
* ## Notes
449
-
*
450
-
* - The callback function is provided four arguments:
451
-
*
452
-
* - `value`: array element
453
-
* - `aidx`: array index
454
-
* - `sidx`: strided index (offset + aidx*stride)
455
-
* - `array`: input array
456
-
*
457
-
* - The callback function should return a numeric value. If the callback function does not return any value (or equivalently, explicitly returns `undefined`), the value is ignored.
458
-
*
459
-
* @param N - number of indexed elements
460
-
* @param x - input array
461
-
* @param stride - stride length
462
-
* @param clbk - callback
463
-
* @param thisArg - execution context
464
-
* @returns maximum value
465
-
*
466
-
* @example
467
-
* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ];
468
-
*
469
-
* function accessor( v ) {
470
-
* return v * 2.0;
471
-
* }
472
-
*
473
-
* var v = ns.maxBy( x.length, x, 1, accessor );
474
-
* // returns 8.0
475
-
*
476
-
* @example
477
-
* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ];
478
-
*
479
-
* function accessor( v ) {
480
-
* return v * 2.0;
481
-
* }
482
-
*
483
-
* var v = ns.maxBy.ndarray( x.length, x, 1, 0, accessor );
484
-
* // returns 8.0
485
-
*/
486
-
maxBy: typeofmaxBy;
487
-
488
444
/**
489
445
* Computes the maximum absolute value of a strided array.
0 commit comments