Skip to content

Commit fcd6519

Browse files
committed
docs: update examples
--- 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: passed - task: lint_javascript_src status: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent c2369c2 commit fcd6519

File tree

1 file changed

+2
-14
lines changed
  • lib/node_modules/@stdlib/ndarray/count-if/docs

1 file changed

+2
-14
lines changed

lib/node_modules/@stdlib/ndarray/count-if/docs/repl.txt

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@
4141
Examples
4242
--------
4343
> function clbk( v ) { return v > 0.0; };
44-
> var xbuf = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 0.0, 1.0 ] );
45-
> var dt = 'float64';
46-
> var sh = [ 2, 2 ];
47-
> var sx = [ 2, 1 ];
48-
> var ox = 0;
49-
> var order = 'row-major';
50-
> var x = {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, order );
44+
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 1.0 ], [ 0.0, 1.0 ] ] );
5145
> var y = {{alias}}( x, clbk )
5246
<ndarray>
5347
> y.get()
@@ -96,13 +90,7 @@
9690
Examples
9791
--------
9892
> function clbk( v ) { return v > 0.0; };
99-
> var xbuf = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 0.0, 1.0 ] );
100-
> var dt = 'float64';
101-
> var sh = [ 2, 2 ];
102-
> var sx = [ 2, 1 ];
103-
> var ox = 0;
104-
> var order = 'row-major';
105-
> var x = {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, order );
93+
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 1.0 ], [ 0.0, 1.0 ] ] );
10694
> var y = {{alias:@stdlib/ndarray/from-scalar}}( 0, { 'dtype': 'int32' } );
10795
> var out = {{alias}}.assign( x, y, clbk )
10896
<ndarray>

0 commit comments

Comments
 (0)