Skip to content

Commit 738dcba

Browse files
committed
docs: fix dtypes in 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: 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 4e1eaac commit 738dcba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ var ndarray2array = require( '@stdlib/ndarray/to-array' );
8787
var mskmax = require( '@stdlib/stats/base/ndarray/mskmax' );
8888

8989
var xbuf = uniform( 10, -50.0, 50.0, {
90-
'dtype': 'float64'
90+
'dtype': 'generic'
9191
});
9292
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
9393
console.log( ndarray2array( x ) );
9494

9595
var maskbuf = bernoulli( xbuf.length, 0.2, {
9696
'dtype': 'uint8'
9797
});
98-
var mask = new ndarray( 'generic', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
98+
var mask = new ndarray( 'uint8', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
9999
console.log( ndarray2array( mask ) );
100100

101101
var v = mskmax( [ x, mask ] );

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ var ndarray2array = require( '@stdlib/ndarray/to-array' );
2525
var mskmax = require( './../lib' );
2626

2727
var xbuf = uniform( 10, -50.0, 50.0, {
28-
'dtype': 'float64'
28+
'dtype': 'generic'
2929
});
3030
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
3131
console.log( ndarray2array( x ) );
3232

3333
var maskbuf = bernoulli( xbuf.length, 0.2, {
3434
'dtype': 'uint8'
3535
});
36-
var mask = new ndarray( 'generic', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
36+
var mask = new ndarray( 'uint8', maskbuf, [ maskbuf.length ], [ 1 ], 0, 'row-major' );
3737
console.log( ndarray2array( mask ) );
3838

3939
var v = mskmax( [ x, mask ] );

0 commit comments

Comments
 (0)