Skip to content

Commit 4b02cea

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: 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: 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 38a86ef commit 4b02cea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/node_modules/@stdlib/stats/max/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ var x = array( [ -1.0, 2.0, -3.0, 4.0 ], {
6767
'shape': [ 2, 2 ],
6868
'order': 'row-major'
6969
});
70+
var v = ndarray2array( x );
71+
// returns [ [ -1.0, 2.0 ], [ -3.0, 4.0 ] ]
7072

7173
var y = max( x, {
7274
'dims': [ 0 ]
7375
});
7476
// returns <ndarray>
7577

76-
var v = ndarray2array( y );
78+
v = ndarray2array( y );
7779
// returns [ -1.0, 4.0 ]
7880

7981
y = max( x, {
@@ -104,13 +106,16 @@ var x = array( [ -1.0, 2.0, -3.0, 4.0 ], {
104106
'order': 'row-major'
105107
});
106108

109+
var v = ndarray2array( x );
110+
// returns [ [ -1.0, 2.0 ], [ -3.0, 4.0 ] ]
111+
107112
var y = max( x, {
108113
'dims': [ 0 ],
109114
'keepdims': true
110115
});
111116
// returns <ndarray>
112117

113-
var v = ndarray2array( y );
118+
v = ndarray2array( y );
114119
// returns [ [ -1.0, 4.0 ] ]
115120

116121
y = max( x, {

0 commit comments

Comments
 (0)