Skip to content

Commit 6138a6a

Browse files
committed
fix: implemented suggested changes except in example_index_js
--- 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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - 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 62afd77 commit 6138a6a

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/benchmark/benchmark.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ function createBenchmark( len ) {
5353

5454
xbuf = uniform( len, 0.0, 100.0, options );
5555
x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' );
56-
5756
order = scalar2ndarray( -1.0, options );
5857

5958
return benchmark;

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/repl.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, ord );
3333
> var o = {{alias:@stdlib/ndarray/from-scalar}}( 1.0, { 'dtype': dt } );
3434
> {{alias}}( [ x, o ] )
35-
<ndarray>
36-
> var data = x.data
37-
<Float64Array>[ -4.0, -2.0, 1.0, 3.0 ]
35+
<ndarray>[ -4.0, -2.0, 1.0, 3.0 ]
3836

3937
See Also
4038
--------

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/lib/main.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,10 @@ var strided = require( '@stdlib/blas/ext/base/dsort' ).ndarray;
5858
function dsort( arrays ) {
5959
var order;
6060
var x;
61-
var N;
6261

6362
x = arrays[ 0 ];
6463
order = arrays[ 1 ];
65-
66-
N = numelDimension( x, 0 );
67-
if ( N === 0 ) {
68-
return x;
69-
}
70-
strided( N, ndarraylike2scalar( order ), getData( x ), getStride( x, 0 ), getOffset( x ) ); // eslint-disable-line max-len
64+
strided( numelDimension( x, 0 ), ndarraylike2scalar( order ), getData( x ), getStride( x, 0 ), getOffset( x ) ); // eslint-disable-line max-len
7165
return x;
7266
}
7367

0 commit comments

Comments
 (0)