@@ -80,10 +80,10 @@ tape( 'the function has an arity of 6', opts, function test( t ) {
8080 t . end ( ) ;
8181} ) ;
8282
83- tape ( 'the function scales elements from `x` by `ca ` and adds the result to `y`' , opts , function test ( t ) {
83+ tape ( 'the function scales elements from `x` by `alpha ` and adds the result to `y`' , opts , function test ( t ) {
8484 var expected ;
8585 var viewY ;
86- var ca ;
86+ var alpha ;
8787 var x ;
8888 var y ;
8989
@@ -119,9 +119,9 @@ tape( 'the function scales elements from `x` by `ca` and adds the result to `y`'
119119 0.8 ,
120120 - 0.7
121121 ] ) ;
122- ca = new Complex64 ( 0.4 , - 0.7 ) ;
122+ alpha = new Complex64 ( 0.4 , - 0.7 ) ;
123123
124- caxpy ( 4 , ca , x , 1 , y , 1 ) ;
124+ caxpy ( 4 , alpha , x , 1 , y , 1 ) ;
125125
126126 viewY = new Float32Array ( y . buffer ) ;
127127 expected = new Float32Array ( [
@@ -147,7 +147,7 @@ tape( 'the function scales elements from `x` by `ca` and adds the result to `y`'
147147tape ( 'the function supports a `x` stride' , opts , function test ( t ) {
148148 var expected ;
149149 var viewY ;
150- var ca ;
150+ var alpha ;
151151 var x ;
152152 var y ;
153153
@@ -183,9 +183,9 @@ tape( 'the function supports a `x` stride', opts, function test( t ) {
183183 0.8 ,
184184 - 0.7
185185 ] ) ;
186- ca = new Complex64 ( 0.4 , - 0.7 ) ;
186+ alpha = new Complex64 ( 0.4 , - 0.7 ) ;
187187
188- caxpy ( 4 , ca , x , 2 , y , 1 ) ;
188+ caxpy ( 4 , alpha , x , 2 , y , 1 ) ;
189189
190190 viewY = new Float32Array ( y . buffer ) ;
191191 expected = new Float32Array ( [
@@ -211,7 +211,7 @@ tape( 'the function supports a `x` stride', opts, function test( t ) {
211211tape ( 'the function supports a `y` stride' , opts , function test ( t ) {
212212 var expected ;
213213 var viewY ;
214- var ca ;
214+ var alpha ;
215215 var x ;
216216 var y ;
217217
@@ -247,9 +247,9 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
247247 0.8 , // 4
248248 - 0.7 // 4
249249 ] ) ;
250- ca = new Complex64 ( 0.4 , - 0.7 ) ;
250+ alpha = new Complex64 ( 0.4 , - 0.7 ) ;
251251
252- caxpy ( 4 , ca , x , 1 , y , 2 ) ;
252+ caxpy ( 4 , alpha , x , 1 , y , 2 ) ;
253253
254254 viewY = new Float32Array ( y . buffer ) ;
255255 expected = new Float32Array ( [
@@ -273,16 +273,16 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
273273} ) ;
274274
275275tape ( 'the function returns a reference to the output array' , opts , function test ( t ) {
276+ var alpha ;
276277 var out ;
277- var ca ;
278278 var x ;
279279 var y ;
280280
281281 x = new Complex64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 ] ) ;
282282 y = new Complex64Array ( [ 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 ] ) ;
283- ca = new Complex64 ( 2.0 , 2.0 ) ;
283+ alpha = new Complex64 ( 2.0 , 2.0 ) ;
284284
285- out = caxpy ( x . length , ca , x , 1 , y , 1 ) ;
285+ out = caxpy ( x . length , alpha , x , 1 , y , 1 ) ;
286286
287287 t . strictEqual ( out , y , 'same reference' ) ;
288288 t . end ( ) ;
@@ -291,21 +291,21 @@ tape( 'the function returns a reference to the output array', opts, function tes
291291tape ( 'if provided `alpha` parameter equal to `0`, the function returns the second input array unchanged' , opts , function test ( t ) {
292292 var expected ;
293293 var viewY ;
294- var ca ;
294+ var alpha ;
295295 var x ;
296296 var y ;
297297
298298 x = new Complex64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 ] ) ;
299299 y = new Complex64Array ( [ 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 ] ) ;
300- ca = new Complex64 ( 0.0 , 0.0 ) ;
300+ alpha = new Complex64 ( 0.0 , 0.0 ) ;
301301
302302 viewY = new Float32Array ( y . buffer ) ;
303303 expected = new Float32Array ( [ 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 ] ) ;
304304
305- caxpy ( - 1 , ca , x , 1 , y , 1 ) ;
305+ caxpy ( - 1 , alpha , x , 1 , y , 1 ) ;
306306 t . deepEqual ( viewY , expected , 'returns expected value' ) ;
307307
308- caxpy ( 0 , ca , x , 1 , y , 1 ) ;
308+ caxpy ( 0 , alpha , x , 1 , y , 1 ) ;
309309 t . deepEqual ( viewY , expected , 'returns expected value' ) ;
310310
311311 t . end ( ) ;
@@ -314,21 +314,21 @@ tape( 'if provided `alpha` parameter equal to `0`, the function returns the seco
314314tape ( 'if provided an `N` parameter less than or equal to `0`, the function returns the second input array unchanged' , opts , function test ( t ) {
315315 var expected ;
316316 var viewY ;
317- var ca ;
317+ var alpha ;
318318 var x ;
319319 var y ;
320320
321321 x = new Complex64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 ] ) ;
322322 y = new Complex64Array ( [ 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 ] ) ;
323- ca = new Complex64 ( 2.0 , 2.0 ) ;
323+ alpha = new Complex64 ( 2.0 , 2.0 ) ;
324324
325325 viewY = new Float32Array ( y . buffer ) ;
326326 expected = new Float32Array ( [ 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 , 1.0 ] ) ;
327327
328- caxpy ( - 1 , ca , x , 1 , y , 1 ) ;
328+ caxpy ( - 1 , alpha , x , 1 , y , 1 ) ;
329329 t . deepEqual ( viewY , expected , 'returns expected value' ) ;
330330
331- caxpy ( 0 , ca , x , 1 , y , 1 ) ;
331+ caxpy ( 0 , alpha , x , 1 , y , 1 ) ;
332332 t . deepEqual ( viewY , expected , 'returns expected value' ) ;
333333
334334 t . end ( ) ;
@@ -337,7 +337,7 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
337337tape ( 'the function supports negative `x` strides' , opts , function test ( t ) {
338338 var expected ;
339339 var viewY ;
340- var ca ;
340+ var alpha ;
341341 var x ;
342342 var y ;
343343
@@ -373,9 +373,9 @@ tape( 'the function supports negative `x` strides', opts, function test( t ) {
373373 0.8 ,
374374 - 0.7
375375 ] ) ;
376- ca = new Complex64 ( 0.4 , - 0.7 ) ;
376+ alpha = new Complex64 ( 0.4 , - 0.7 ) ;
377377
378- caxpy ( 4 , ca , x , - 2 , y , 1 ) ;
378+ caxpy ( 4 , alpha , x , - 2 , y , 1 ) ;
379379
380380 viewY = new Float32Array ( y . buffer ) ;
381381 expected = new Float32Array ( [
@@ -401,7 +401,7 @@ tape( 'the function supports negative `x` strides', opts, function test( t ) {
401401tape ( 'the function supports negative `y` strides' , opts , function test ( t ) {
402402 var expected ;
403403 var viewY ;
404- var ca ;
404+ var alpha ;
405405 var x ;
406406 var y ;
407407
@@ -437,9 +437,9 @@ tape( 'the function supports negative `y` strides', opts, function test( t ) {
437437 0.8 , // 1
438438 - 0.7 // 1
439439 ] ) ;
440- ca = new Complex64 ( 0.4 , - 0.7 ) ;
440+ alpha = new Complex64 ( 0.4 , - 0.7 ) ;
441441
442- caxpy ( 4 , ca , x , 2 , y , - 2 ) ;
442+ caxpy ( 4 , alpha , x , 2 , y , - 2 ) ;
443443
444444 viewY = new Float32Array ( y . buffer ) ;
445445 expected = new Float32Array ( [
@@ -465,7 +465,7 @@ tape( 'the function supports negative `y` strides', opts, function test( t ) {
465465tape ( 'the function supports complex access patterns' , opts , function test ( t ) {
466466 var expected ;
467467 var viewY ;
468- var ca ;
468+ var alpha ;
469469 var x ;
470470 var y ;
471471
@@ -501,9 +501,9 @@ tape( 'the function supports complex access patterns', opts, function test( t )
501501 0.8 , // 1
502502 - 0.7 // 1
503503 ] ) ;
504- ca = new Complex64 ( 0.4 , - 0.7 ) ;
504+ alpha = new Complex64 ( 0.4 , - 0.7 ) ;
505505
506- caxpy ( 4 , ca , x , - 1 , y , - 2 ) ;
506+ caxpy ( 4 , alpha , x , - 1 , y , - 2 ) ;
507507
508508 viewY = new Float32Array ( y . buffer ) ;
509509 expected = new Float32Array ( [
@@ -529,11 +529,11 @@ tape( 'the function supports complex access patterns', opts, function test( t )
529529tape ( 'the function supports view offsets' , opts , function test ( t ) {
530530 var expected ;
531531 var viewY ;
532+ var alpha ;
532533 var x0 ;
533534 var y0 ;
534535 var x1 ;
535536 var y1 ;
536- var ca ;
537537
538538 // Initial arrays...
539539 x0 = new Complex64Array ( [
@@ -554,13 +554,13 @@ tape( 'the function supports view offsets', opts, function test( t ) {
554554 ] ) ;
555555
556556 // Define a scalar constant:
557- ca = new Complex64 ( 2.0 , 2.0 ) ;
557+ alpha = new Complex64 ( 2.0 , 2.0 ) ;
558558
559559 // Create offset views...
560560 x1 = new Complex64Array ( x0 . buffer , x0 . BYTES_PER_ELEMENT * 1 ) ; // begin at the 2nd element
561561 y1 = new Complex64Array ( y0 . buffer , y0 . BYTES_PER_ELEMENT * 2 ) ; // begin at the 3rd element
562562
563- caxpy ( 1 , ca , x1 , 1 , y1 , 1 ) ;
563+ caxpy ( 1 , alpha , x1 , 1 , y1 , 1 ) ;
564564
565565 viewY = new Float32Array ( y0 . buffer ) ;
566566 expected = new Float32Array ( [ 1.0 , 1.0 , 1.0 , 1.0 , - 1.0 , 15.0 ] ) ;
0 commit comments