Skip to content

Commit f820e9a

Browse files
committed
fix: lint errors
1 parent 7d45592 commit f820e9a

2 files changed

Lines changed: 354 additions & 74 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/test/test.main.js

Lines changed: 242 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,24 @@ tape( 'the function throws if the seventh argument is less than max(1,N^k) for c
8686

8787
function badValue() {
8888
var out = [
89-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
90-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
91-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0
89+
0.0,
90+
0.0,
91+
0.0,
92+
0.0,
93+
0.0,
94+
0.0,
95+
0.0,
96+
0.0,
97+
0.0,
98+
0.0,
99+
0.0,
100+
0.0,
101+
0.0,
102+
0.0,
103+
0.0,
104+
0.0,
105+
0.0,
106+
0.0
92107
];
93108
var x = [ 1.0, 2.0, 3.0 ];
94109
gcartesianPower( 'column-major', 3, 2, x, 1, out, 8 );
@@ -110,20 +125,56 @@ tape( 'the function computes the Cartesian power', function test( t ) {
110125

111126
x = [ 1.0, 2.0 ];
112127
out = [
113-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
114-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
115-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
116-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0
128+
0.0,
129+
0.0,
130+
0.0,
131+
0.0,
132+
0.0,
133+
0.0,
134+
0.0,
135+
0.0,
136+
0.0,
137+
0.0,
138+
0.0,
139+
0.0,
140+
0.0,
141+
0.0,
142+
0.0,
143+
0.0,
144+
0.0,
145+
0.0,
146+
0.0,
147+
0.0,
148+
0.0,
149+
0.0,
150+
0.0,
151+
0.0
117152
];
118153
expected = [
119-
1.0, 1.0, 1.0,
120-
1.0, 1.0, 2.0,
121-
1.0, 2.0, 1.0,
122-
1.0, 2.0, 2.0,
123-
2.0, 1.0, 1.0,
124-
2.0, 1.0, 2.0,
125-
2.0, 2.0, 1.0,
126-
2.0, 2.0, 2.0
154+
1.0,
155+
1.0,
156+
1.0,
157+
1.0,
158+
1.0,
159+
2.0,
160+
1.0,
161+
2.0,
162+
1.0,
163+
1.0,
164+
2.0,
165+
2.0,
166+
2.0,
167+
1.0,
168+
1.0,
169+
2.0,
170+
1.0,
171+
2.0,
172+
2.0,
173+
2.0,
174+
1.0,
175+
2.0,
176+
2.0,
177+
2.0
127178
];
128179

129180
gcartesianPower( 'row-major', x.length, 3, x, 1, out, 3 );
@@ -146,15 +197,56 @@ tape( 'the function computes the Cartesian power', function test( t ) {
146197

147198
x = [ 1.0, 2.0 ];
148199
out = [
149-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
150-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
151-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
152-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0
200+
0.0,
201+
0.0,
202+
0.0,
203+
0.0,
204+
0.0,
205+
0.0,
206+
0.0,
207+
0.0,
208+
0.0,
209+
0.0,
210+
0.0,
211+
0.0,
212+
0.0,
213+
0.0,
214+
0.0,
215+
0.0,
216+
0.0,
217+
0.0,
218+
0.0,
219+
0.0,
220+
0.0,
221+
0.0,
222+
0.0,
223+
0.0
153224
];
154225
expected = [
155-
1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0,
156-
1.0, 1.0, 2.0, 2.0, 1.0, 1.0, 2.0, 2.0,
157-
1.0, 2.0, 1.0, 2.0, 1.0, 2.0, 1.0, 2.0
226+
1.0,
227+
1.0,
228+
1.0,
229+
1.0,
230+
2.0,
231+
2.0,
232+
2.0,
233+
2.0,
234+
1.0,
235+
1.0,
236+
2.0,
237+
2.0,
238+
1.0,
239+
1.0,
240+
2.0,
241+
2.0,
242+
1.0,
243+
2.0,
244+
1.0,
245+
2.0,
246+
1.0,
247+
2.0,
248+
1.0,
249+
2.0
158250
];
159251

160252
gcartesianPower( 'column-major', x.length, 3, x, 1, out, 8 );
@@ -374,16 +466,40 @@ tape( 'the function supports specifying a leading dimension stride for the outpu
374466
// Row-major:
375467
x = [ 1.0, 2.0 ];
376468
out = [
377-
0.0, 0.0, 0.0, 0.0,
378-
0.0, 0.0, 0.0, 0.0,
379-
0.0, 0.0, 0.0, 0.0,
380-
0.0, 0.0, 0.0, 0.0
469+
0.0,
470+
0.0,
471+
0.0,
472+
0.0,
473+
0.0,
474+
0.0,
475+
0.0,
476+
0.0,
477+
0.0,
478+
0.0,
479+
0.0,
480+
0.0,
481+
0.0,
482+
0.0,
483+
0.0,
484+
0.0
381485
];
382486
expected = [
383-
1.0, 1.0, 0.0, 0.0,
384-
1.0, 2.0, 0.0, 0.0,
385-
2.0, 1.0, 0.0, 0.0,
386-
2.0, 2.0, 0.0, 0.0
487+
1.0,
488+
1.0,
489+
0.0,
490+
0.0,
491+
1.0,
492+
2.0,
493+
0.0,
494+
0.0,
495+
2.0,
496+
1.0,
497+
0.0,
498+
0.0,
499+
2.0,
500+
2.0,
501+
0.0,
502+
0.0
387503
];
388504

389505
gcartesianPower( 'row-major', x.length, 2, x, 1, out, 4 );
@@ -392,12 +508,40 @@ tape( 'the function supports specifying a leading dimension stride for the outpu
392508
// Column-major:
393509
x = [ 1.0, 2.0 ];
394510
out = [
395-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
396-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
511+
0.0,
512+
0.0,
513+
0.0,
514+
0.0,
515+
0.0,
516+
0.0,
517+
0.0,
518+
0.0,
519+
0.0,
520+
0.0,
521+
0.0,
522+
0.0,
523+
0.0,
524+
0.0,
525+
0.0,
526+
0.0
397527
];
398528
expected = [
399-
1.0, 1.0, 2.0, 2.0, 0.0, 0.0, 0.0, 0.0,
400-
1.0, 2.0, 1.0, 2.0, 0.0, 0.0, 0.0, 0.0
529+
1.0,
530+
1.0,
531+
2.0,
532+
2.0,
533+
0.0,
534+
0.0,
535+
0.0,
536+
0.0,
537+
1.0,
538+
2.0,
539+
1.0,
540+
2.0,
541+
0.0,
542+
0.0,
543+
0.0,
544+
0.0
401545
];
402546

403547
gcartesianPower( 'column-major', x.length, 2, x, 1, out, 8 );
@@ -414,16 +558,40 @@ tape( 'the function supports specifying a leading dimension stride for the outpu
414558
// Row-major:
415559
x = [ 1.0, 2.0 ];
416560
out = [
417-
0.0, 0.0, 0.0, 0.0,
418-
0.0, 0.0, 0.0, 0.0,
419-
0.0, 0.0, 0.0, 0.0,
420-
0.0, 0.0, 0.0, 0.0
561+
0.0,
562+
0.0,
563+
0.0,
564+
0.0,
565+
0.0,
566+
0.0,
567+
0.0,
568+
0.0,
569+
0.0,
570+
0.0,
571+
0.0,
572+
0.0,
573+
0.0,
574+
0.0,
575+
0.0,
576+
0.0
421577
];
422578
expected = [
423-
1.0, 1.0, 0.0, 0.0,
424-
1.0, 2.0, 0.0, 0.0,
425-
2.0, 1.0, 0.0, 0.0,
426-
2.0, 2.0, 0.0, 0.0
579+
1.0,
580+
1.0,
581+
0.0,
582+
0.0,
583+
1.0,
584+
2.0,
585+
0.0,
586+
0.0,
587+
2.0,
588+
1.0,
589+
0.0,
590+
0.0,
591+
2.0,
592+
2.0,
593+
0.0,
594+
0.0
427595
];
428596

429597
gcartesianPower( 'row-major', x.length, 2, toAccessorArray( x ), 1, toAccessorArray( out ), 4 );
@@ -432,12 +600,40 @@ tape( 'the function supports specifying a leading dimension stride for the outpu
432600
// Column-major:
433601
x = [ 1.0, 2.0 ];
434602
out = [
435-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
436-
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
603+
0.0,
604+
0.0,
605+
0.0,
606+
0.0,
607+
0.0,
608+
0.0,
609+
0.0,
610+
0.0,
611+
0.0,
612+
0.0,
613+
0.0,
614+
0.0,
615+
0.0,
616+
0.0,
617+
0.0,
618+
0.0
437619
];
438620
expected = [
439-
1.0, 1.0, 2.0, 2.0, 0.0, 0.0, 0.0, 0.0,
440-
1.0, 2.0, 1.0, 2.0, 0.0, 0.0, 0.0, 0.0
621+
1.0,
622+
1.0,
623+
2.0,
624+
2.0,
625+
0.0,
626+
0.0,
627+
0.0,
628+
0.0,
629+
1.0,
630+
2.0,
631+
1.0,
632+
2.0,
633+
0.0,
634+
0.0,
635+
0.0,
636+
0.0
441637
];
442638

443639
gcartesianPower( 'column-major', x.length, 2, toAccessorArray( x ), 1, toAccessorArray( out ), 8 );

0 commit comments

Comments
 (0)