8000 docs: update examples · stdlib-js/stdlib@c2369c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2369c2

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 a1a33a8 commit c2369c2

File tree

1 file changed

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

1 file changed

+2
-14
lines changed

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@
2727

2828
Examples
2929
--------
30-
> var xbuf = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 0.0, 1.0 ] );
31-
> var dt = 'float64';
32-
> var sh = [ 2, 2 ];
33-
> var sx = [ 2, 1 ];
34-
> var ox = 0;
35-
> var order = 'row-major';
36-
> var x = {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, order );
30+
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 1.0 ], [ 0.0, 1.0 ] ] );
3731
> var y = {{alias}}( x )
3832
<ndarray>
3933
> y.get()
@@ -74,13 +68,7 @@
7468

7569
Examples
7670
--------
77-
> var xbuf = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 0.0, 1.0 ] );
78-
> var dt = 'float64';
79-
> var sh = [ 2, 2 ];
80-
> var sx = [ 2, 1 ];
81-
> var ox = 0;
82-
> var order = 'row-major';
83-
> var x = {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, order );
71+
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1.0, 1.0 ], [ 0.0, 1.0 ] ] );
8472
> var y = {{alias:@stdlib/ndarray/from-scalar}}( 0, { 'dtype': 'int32' } );
8573
> var out = {{alias}}.assign( x, y )
8674
<ndarray>

0 commit comments

Comments
 (0)
0