Skip to content

Commit baf6720

Browse files
committed
feat: Lint Fix2
1 parent afb170b commit baf6720

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/smskrange

lib/node_modules/@stdlib/stats/base/ndarray/smskrange/lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
/**
22-
* Compute the range of a one-dimensional single-precision floating-point
22+
* Computes the range of a one-dimensional single-precision floating-point
2323
* ndarray according to a mask.
2424
*
2525
* @module @stdlib/stats/base/ndarray/smskrange
@@ -33,6 +33,7 @@
3333
* var xbuf = new Float32Array( [ 1.0, -2.0, 4.0, 2.0 ] );
3434
* var x = new ndarray( 'float32', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
3535
*
36+
* // cspell:disable-next-line
3637
* var mbuf = new Uint8Array( [ 0, 0, 1, 0 ] );
3738
* var mask = new ndarray( 'uint8', mbuf, [ 4 ], [ 1 ], 0, 'row-major' );
3839
*

lib/node_modules/@stdlib/stats/base/ndarray/smskrange/test/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
223223
var x;
224224
var v;
225225

226-
x = [
226+
x = new Float32Array([
227227
2.0,
228228
1.0, // 0
229229
2.0,
@@ -234,8 +234,8 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
234234
4.0, // 3
235235
5.0,
236236
6.0 // 4
237-
];
238-
mask = [
237+
]);
238+
mask = new Uint8Array([
239239
0,
240240
0, // 0
241241
0,
@@ -246,9 +246,9 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
246246
0, // 3
247247
1,
248248
1 // 4
249-
];
249+
]);
250250

251-
v = smskrange( [ vector( x, 5, 2, 1 ), vector( mask, 5, 2, 1 ) ] );
251+
v = smskrange( [ vector( 'float32', x, 5, 2, 1 ), vector( 'uint8', mask, 5, 2, 1 ) ] );
252252
t.strictEqual( v, 6.0, 'returns expected value' );
253253

254254
t.end();

0 commit comments

Comments
 (0)