@@ -142,7 +142,7 @@ tape( 'the function returns invalid indices and leaves the input array unchanged
142142
143143 info = dgebal ( 'row-major' , 'both' , 0 , A , 2 , out , scale ) ;
144144
145- expectedOut = new Float64Array ( [ 0.0 , - 1.0 ] ) ;
145+ expectedOut = new Int32Array ( [ 0 , - 1 ] ) ;
146146
147147 t . strictEqual ( info , 0 , 'returns expected value' ) ;
148148 t . deepEqual ( out , expectedOut , 'returns expected value' ) ;
@@ -166,7 +166,7 @@ tape( 'the function returns expected values for job = none (row-major)', functio
166166 out = new Int32Array ( 2 ) ;
167167 scale = new Float64Array ( 3 ) ;
168168
169- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
169+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
170170 expectedScale = new Float64Array ( [ 1.0 , 1.0 , 1.0 ] ) ;
171171 expectedA = new Float64Array ( [
172172 1.0 , 2.0 , 3.0 ,
@@ -199,7 +199,7 @@ tape( 'the function returns expected values for job = none (column-major)', func
199199 out = new Int32Array ( 2 ) ;
200200 scale = new Float64Array ( 3 ) ;
201201
202- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
202+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
203203 expectedScale = new Float64Array ( [ 1.0 , 1.0 , 1.0 ] ) ;
204204 expectedA = new Float64Array ( [
205205 1.0 , 4.0 , 7.0 ,
@@ -232,7 +232,7 @@ tape( 'the function returns expected values for job = permute (row-major)', func
232232 out = new Int32Array ( 2 ) ;
233233 scale = new Float64Array ( 3 ) ;
234234
235- expectedOut = new Float64Array ( [ 0.0 , 1.0 ] ) ;
235+ expectedOut = new Int32Array ( [ 0 , 1 ] ) ;
236236 expectedScale = new Float64Array ( [ 1.0 , 1.0 , 1.0 ] ) ;
237237 expectedA = new Float64Array ( [
238238 1.0 , 2.0 , 0.0 ,
@@ -265,7 +265,7 @@ tape( 'the function returns expected values for job = permute (column-major)', f
265265 out = new Int32Array ( 2 ) ;
266266 scale = new Float64Array ( 3 ) ;
267267
268- expectedOut = new Float64Array ( [ 0.0 , 1.0 ] ) ;
268+ expectedOut = new Int32Array ( [ 0 , 1 ] ) ;
269269 expectedScale = new Float64Array ( [ 1.0 , 1.0 , 1.0 ] ) ;
270270 expectedA = new Float64Array ( [
271271 1.0 , 3.0 , 0.0 ,
@@ -298,7 +298,7 @@ tape( 'the function returns expected values for job = scale (row-major)', functi
298298 out = new Int32Array ( 2 ) ;
299299 scale = new Float64Array ( 3 ) ;
300300
301- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
301+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
302302 expectedScale = new Float64Array ( [ 1.0 , 0.125 , 0.125 ] ) ;
303303 expectedA = new Float64Array ( [
304304 16.0 , 2.0 , 2.0 ,
@@ -331,7 +331,7 @@ tape( 'the function returns expected values for job = scale (column-major)', fun
331331 out = new Int32Array ( 2 ) ;
332332 scale = new Float64Array ( 3 ) ;
333333
334- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
334+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
335335 expectedScale = new Float64Array ( [ 1.0 , 0.125 , 0.125 ] ) ;
336336 expectedA = new Float64Array ( [
337337 16.0 , 2.0 , 2.0 ,
@@ -364,7 +364,7 @@ tape( 'the function returns expected values for job = both (row-major)', functio
364364 out = new Int32Array ( 2 ) ;
365365 scale = new Float64Array ( 3 ) ;
366366
367- expectedOut = new Float64Array ( [ 0.0 , 1.0 ] ) ;
367+ expectedOut = new Int32Array ( [ 0 , 1 ] ) ;
368368 expectedScale = new Float64Array ( [ 0.125 , 1.0 , 1.0 ] ) ;
369369 expectedA = new Float64Array ( [
370370 1.0 , 16.0 , 0.0 ,
@@ -397,7 +397,7 @@ tape( 'the function returns expected values for job = both (column-major)', func
397397 out = new Int32Array ( 2 ) ;
398398 scale = new Float64Array ( 3 ) ;
399399
400- expectedOut = new Float64Array ( [ 0.0 , 1.0 ] ) ;
400+ expectedOut = new Int32Array ( [ 0 , 1 ] ) ;
401401 expectedScale = new Float64Array ( [ 0.125 , 1.0 , 1.0 ] ) ;
402402 expectedA = new Float64Array ( [
403403 1.0 , 12.5 , 0.0 ,
@@ -430,7 +430,7 @@ tape( 'the function returns expected values for job = both with complex input (r
430430 out = new Int32Array ( 2 ) ;
431431 scale = new Float64Array ( 3 ) ;
432432
433- expectedOut = new Float64Array ( [ 0.0 , 0. 0 ] ) ;
433+ expectedOut = new Int32Array ( [ 0 , 0 ] ) ;
434434 expectedScale = new Float64Array ( [ 0.0 , 1.0 , 2.0 ] ) ;
435435 expectedA = new Float64Array ( [
436436 1.0 , 1.0 , 0.0 ,
@@ -463,7 +463,7 @@ tape( 'the function returns expected values for job = both with complex input (c
463463 out = new Int32Array ( 2 ) ;
464464 scale = new Float64Array ( 3 ) ;
465465
466- expectedOut = new Float64Array ( [ 0.0 , 0. 0 ] ) ;
466+ expectedOut = new Int32Array ( [ 0 , 0 ] ) ;
467467 expectedScale = new Float64Array ( [ 0.0 , 1.0 , 2.0 ] ) ;
468468 expectedA = new Float64Array ( [
469469 1.0 , 0.0 , 0.0 ,
@@ -496,7 +496,7 @@ tape( 'the function returns expected values for job = both with complex input (r
496496 out = new Int32Array ( 2 ) ;
497497 scale = new Float64Array ( 3 ) ;
498498
499- expectedOut = new Float64Array ( [ 1.0 , 2.0 ] ) ;
499+ expectedOut = new Int32Array ( [ 1 , 2 ] ) ;
500500 expectedScale = new Float64Array ( [ 1.0 , 0.5 , 1.0 ] ) ;
501501 expectedA = new Float64Array ( [
502502 4.0 , 1.5 , 5.0 ,
@@ -529,7 +529,7 @@ tape( 'the function returns expected values for job = both with complex input (c
529529 out = new Int32Array ( 2 ) ;
530530 scale = new Float64Array ( 3 ) ;
531531
532- expectedOut = new Float64Array ( [ 1.0 , 2.0 ] ) ;
532+ expectedOut = new Int32Array ( [ 1 , 2 ] ) ;
533533 expectedScale = new Float64Array ( [ 1.0 , 0.5 , 1.0 ] ) ;
534534 expectedA = new Float64Array ( [
535535 4.0 , 0.0 , 0.0 ,
@@ -562,7 +562,7 @@ tape( 'the function returns expected values for job = scale with zero norm (row-
562562 out = new Int32Array ( 2 ) ;
563563 scale = new Float64Array ( 3 ) ;
564564
565- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
565+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
566566 expectedScale = new Float64Array ( [ 1.0 , 1.0 , 1.0 ] ) ;
567567 expectedA = new Float64Array ( [
568568 1.0 , 0.0 , 4.0 ,
@@ -595,7 +595,7 @@ tape( 'the function returns expected values for job = scale with zero norm (colu
595595 out = new Int32Array ( 2 ) ;
596596 scale = new Float64Array ( 3 ) ;
597597
598- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
598+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
599599 expectedScale = new Float64Array ( [ 1.0 , 1.0 , 1.0 ] ) ;
600600 expectedA = new Float64Array ( [
601601 1.0 , 2.0 , 3.0 ,
@@ -629,7 +629,7 @@ tape( 'the function returns expected values for job = scale with small values (r
629629 out = new Int32Array ( 2 ) ;
630630 scale = new Float64Array ( 4 ) ;
631631
632- expectedOut = new Float64Array ( [ 0.0 , 3.0 ] ) ;
632+ expectedOut = new Int32Array ( [ 0.0 , 3.0 ] ) ;
633633 expectedScale = new Float64Array ( [ 4096.0 , 128.0 , 128.0 , 1.0 ] ) ;
634634 expectedA = new Float64Array ( [
635635 1.0e-4 , 3.125e-2 , 6.25e-2 , 2.44140625 ,
@@ -664,7 +664,7 @@ tape( 'the function returns expected values for job = scale with small values (c
664664 out = new Int32Array ( 2 ) ;
665665 scale = new Float64Array ( 4 ) ;
666666
667- expectedOut = new Float64Array ( [ 0.0 , 3.0 ] ) ;
667+ expectedOut = new Int32Array ( [ 0.0 , 3.0 ] ) ;
668668 expectedScale = new Float64Array ( [ 4096.0 , 128.0 , 128.0 , 1.0 ] ) ;
669669 expectedA = new Float64Array ( [
670670 1.0e-4 , 6.4e-3 , 9.6e-3 , 1.6384 ,
@@ -698,7 +698,7 @@ tape( 'the function returns expected values for job = both with large values (ro
698698 out = new Int32Array ( 2 ) ;
699699 scale = new Float64Array ( 3 ) ;
700700
701- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
701+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
702702 expectedScale = new Float64Array ( [ 1.0 , 1125899906842624.0 , 1.2676506002282294e30 ] ) ; // eslint-disable-line max-len
703703 expectedA = new Float64Array ( [
704704 1.0e30 , 1.1258999068426240e15 , 1.2676506002282295 ,
@@ -731,7 +731,7 @@ tape( 'the function returns expected values for job = both with large values (co
731731 out = new Int32Array ( 2 ) ;
732732 scale = new Float64Array ( 3 ) ;
733733
734- expectedOut = new Float64Array ( [ 0.0 , 2.0 ] ) ;
734+ expectedOut = new Int32Array ( [ 0 , 2 ] ) ;
735735 expectedScale = new Float64Array ( [ 1.0 , 1125899906842624.0 , 1.2676506002282294e30 ] ) ; // eslint-disable-line max-len
736736 expectedA = new Float64Array ( [
737737 1.0e30 , 8.8817841970012525e14 , 7.8886090522101182e-1 ,
0 commit comments