Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

/* eslint-disable no-new-wrappers, no-undefined, no-empty-function */
/* eslint-disable no-undefined, no-empty-function */

'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
idx = isamax( 4, x, 1, 0 );
t.strictEqual( idx, expected, 'returns expected value' );

x = new Float32Array( [
x = new Float32Array([
0.2, // 1
-0.6, // 2
0.3, // 3
5.0,
5.0
] );
]);
expected = 1;

idx = isamax( 3, x, 1, 0 );
Expand All @@ -86,11 +86,11 @@
var idx;
var x;

x = new Float32Array( [
x = new Float32Array([
1.0,
2.0,
3.0
] );
]);
expected = -1;

idx = isamax( 0, x, 1, 0 );
Expand All @@ -104,11 +104,11 @@
var idx;
var x;

x = new Float32Array( [
x = new Float32Array([
1.0,
2.0,
3.0
] );
]);
expected = 0;

idx = isamax( 1, x, 1, 1 );
Expand All @@ -129,7 +129,7 @@
idx = isamax( 3, x, -1, x.length-4 );
t.strictEqual( idx, 1, 'returns expected value' );

x = new Float32Array( [ 3.0, 999.9, 999.9, -4.0, 999.9, 999.9, 1.0, 999.9, 999.9, 15.0, 999.9, 999.9, 4.0, 999.9, 999.9, 3.0 ] );

Check warning on line 132 in lib/node_modules/@stdlib/blas/base/isamax/test/test.ndarray.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 133. Maximum allowed is 80
idx = isamax( 6, x, -3, x.length-1 );
t.strictEqual( idx, 2, 'returns expected value' );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[
"bottom",
"top"
"bottom",
"top"
]