Skip to content

Commit 821af02

Browse files
committed
fix: lint errors
--- 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 2773989 commit 821af02

File tree

1 file changed

+11
-8
lines changed
  • lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch

1 file changed

+11
-8
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var table = {
4343

4444
var dtypes = [ 'float64', 'float32', 'generic' ];
4545
var policies = {
46-
'output': 'same',
46+
'output': 'same'
4747
};
4848

4949
var nullary = new NullaryStrided1dDispatch( table, [ dtypes ], policies );
@@ -77,21 +77,22 @@ The constructor supports the following options:
7777
Applies a strided function and assigns results to a provided output ndarray.
7878

7979
```javascript
80-
var base = require( '@stdlib/blas/ext/base/gsorthp' );
80+
var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
81+
var dtypes = require( '@stdlib/ndarray/dtypes' );
8182
var ndarray2array = require( '@stdlib/ndarray/to-array' );
8283
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
83-
var dtypes = require( '@stdlib/ndarray/dtypes' );
8484
var ndarray = require( '@stdlib/ndarray/base/ctor' );
85+
var NullaryStrided1dDispatch = require( '@stdlib/ndarray/base/nullary-strided1d-dispatch' );
8586

8687
var odt = dtypes( 'all' );
8788
var policies = {
88-
'output': 'same',
89+
'output': 'same'
8990
};
9091

9192
var table = {
9293
'default': base
9394
};
94-
var nullary = new NullaryStrided1dDispatch( table, [ odt ], policies );
95+
var sorthp = new NullaryStrided1dDispatch( table, [ odt ], policies );
9596

9697
var xbuf = [ -1.0, 2.0, -3.0 ];
9798
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
@@ -100,7 +101,9 @@ var o = scalar2ndarray( 1.0, {
100101
'dtype': 'generic'
101102
});
102103

103-
var out = unary.assign( x, o );
104+
var out = sorthp.assign( x, o, {
105+
'dims': [ 0 ]
106+
});
104107
// returns <ndarray>
105108

106109
var arr = ndarray2array( x );
@@ -159,7 +162,7 @@ var dtypes = require( '@stdlib/ndarray/dtypes' );
159162
var ndarray2array = require( '@stdlib/ndarray/to-array' );
160163
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
161164
var ndarray = require( '@stdlib/ndarray/ctor' );
162-
var NullaryStrided1dDispatch = require( './../lib' );
165+
var NullaryStrided1dDispatch = require( '@stdlib/ndarray/base/nullary-strided1d-dispatch' );
163166
164167
// Define the supported output data types:
165168
var odt = dtypes( 'all' );
@@ -200,7 +203,7 @@ var o = scalar2ndarray( 1.0, {
200203
201204
// Perform operation:
202205
sorthp.assign( x, o, {
203-
'dims': [ 0 ]
206+
'dims': [ 0, 1 ]
204207
});
205208
206209
// Print the results:

0 commit comments

Comments
 (0)