Skip to content

Commit 1c2a455

Browse files
committed
fix: apply suggestions from code review
--- 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: na - task: lint_javascript_src status: passed - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 15987d0 commit 1c2a455

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/examples/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable array-element-newline */
20-
2119
'use strict';
2220

2321
var dsorthp = require( '@stdlib/blas/ext/base/ndarray/dsorthp' );
@@ -69,7 +67,7 @@ var o = scalar2ndarray( 1.0, {
6967

7068
// Perform operation:
7169
sorthp.assign( x, o, {
72-
'dims': [ 0 ]
70+
'dims': [ 0, 1 ]
7371
});
7472

7573
// Print the results:

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
* 'dtype': 'generic'
4949
* });
5050
*
51-
* var out = sorthp.apply( x );
51+
* var out = sorthp.assign( x, o, {
52+
* 'dims': [ 0 ]
53+
* });
5254
* // returns <ndarray>
5355
*
5456
* var arr = ndarray2array( x );

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/lib/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function types2enums( types ) {
116116
* 'dtype': 'generic'
117117
* });
118118
*
119-
* sorthp.apply( x, o );
119+
* sorthp.assign( x, o );
120120
*
121121
* var arr = ndarray2array( x );
122122
* // returns [ -3.0, -1.0, 2.0 ]
@@ -224,7 +224,9 @@ function NullaryStrided1dDispatch( table, odtypes, policies, options ) {
224224
* 'dtype': 'generic'
225225
* });
226226
*
227-
* var out = sorthp.assign( x, o );
227+
* var out = sorthp.assign( x, o, {
228+
* 'dims': [ 0 ]
229+
* });
228230
* // returns <ndarray>
229231
*
230232
* var arr = ndarray2array( x );

0 commit comments

Comments
 (0)