Skip to content

Commit 2c9bdf9

Browse files
committed
docs: update example
--- 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 750540d commit 2c9bdf9

File tree

1 file changed

+7
-7
lines changed
  • lib/node_modules/@stdlib/ndarray/base/every-by/docs

1 file changed

+7
-7
lines changed

lib/node_modules/@stdlib/ndarray/base/every-by/docs/repl.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,29 @@
4040
--------
4141
// Define ndarray data and meta data...
4242
> var xbuf = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] );
43-
> var dtype = 'float64';
44-
> var shape = [ 2, 2 ];
43+
> var dt = 'float64';
44+
> var sh = [ 2, 2 ];
4545
> var sx = [ 2, 1 ];
4646
> var ox = 0;
47-
> var order = 'row-major';
47+
> var ord = 'row-major';
4848

4949
// Define a callback...
5050
> function clbk( v ) { return v > 0.0; };
5151

5252
// Using an ndarray...
53-
> var x = {{alias:@stdlib/ndarray/ctor}}( dtype, xbuf, shape, sx, ox, order );
53+
> var x = {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, ord );
5454
> {{alias}}( [ x ], clbk )
5555
true
5656

5757
// Using a minimal ndarray-like object...
5858
> xbuf = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 0.0 ] );
5959
> x = {
60-
... 'dtype': dtype,
60+
... 'dtype': dt,
6161
... 'data': xbuf,
62-
... 'shape': shape,
62+
... 'shape': sh,
6363
... 'strides': sx,
6464
... 'offset': ox,
65-
... 'order': order
65+
... 'order': ord
6666
... };
6767
> {{alias}}( [ x ], clbk )
6868
false

0 commit comments

Comments
 (0)