Skip to content

Commit be4ce52

Browse files
committed
docs: update examples to use explicit dtype
--- 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: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - 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 ---
1 parent 322eefc commit be4ce52

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/node_modules/@stdlib/stats/base/ndarray/minsorted/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ var ndarray2array = require( '@stdlib/ndarray/to-array' );
8282
var minsorted = require( '@stdlib/stats/base/ndarray/minsorted' );
8383

8484
// Create a sorted data buffer:
85-
var xbuf = linspace( -5.0, 5.0, 10 );
85+
var xbuf = linspace( -5.0, 5.0, 10, {
86+
'dtype': 'generic'
87+
});
8688

8789
// Wrap in an ndarray:
8890
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );

lib/node_modules/@stdlib/stats/base/ndarray/minsorted/examples/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818

1919
'use strict';
2020

21-
var linspace = require( '@stdlib/array/base/linspace' );
21+
var linspace = require( '@stdlib/array/linspace' );
2222
var ndarray = require( '@stdlib/ndarray/base/ctor' );
2323
var ndarray2array = require( '@stdlib/ndarray/to-array' );
2424
var minsorted = require( './../lib' );
2525

2626
// Create a sorted data buffer:
27-
var xbuf = linspace( -5.0, 5.0, 10 );
27+
var xbuf = linspace( -5.0, 5.0, 10, {
28+
'dtype': 'generic'
29+
});
2830

2931
// Create an ndarray:
3032
var x = new ndarray( 'generic', xbuf, [ 10 ], [ 1 ], 0, 'row-major' );

0 commit comments

Comments
 (0)