Skip to content

Commit c24a16c

Browse files
add support for accessor arrays
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent ea27785 commit c24a16c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
4141
*
4242
* @example
4343
* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
44-
* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
4544
*
4645
* var x = toAccessorArray( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
4746
* var y = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
4847
*
49-
* cumax( 4, arraylike2object( x ), 2, 1, arraylike2object( y ), 1, 0 );
48+
* cumax( 4, x, 2, 1, y, 1, 0 );
5049
*
5150
* console.log( y );
5251
* // => [ 1.0, 1.0, 2.0, 4.0, 0.0, 0.0, 0.0, 0.0 ]

0 commit comments

Comments
 (0)