@@ -157,7 +157,7 @@ import ddiff = require( './index' );
157157 ddiff ( x . length , 1 , x , 1 , 1 , p , ( x : number ) : number => x , 1 , a , 1 , out , 1 , w , 1 ) ; // $ExpectError
158158}
159159
160- // The compiler throws an error if the function is provided an eigth argument which is not a number...
160+ // The compiler throws an error if the function is provided an eighth argument which is not a number...
161161{
162162 const x = new Float64Array ( 10 ) ;
163163 const p = new Float64Array ( 1 ) ;
@@ -210,7 +210,7 @@ import ddiff = require( './index' );
210210 ddiff ( x . length , 1 , x , 1 , 1 , p , 1 , 1 , a , ( x : number ) : number => x , out , 1 , w , 1 ) ; // $ExpectError
211211}
212212
213- // The compiler throws an error if the function is provided an eleventth argument which is not a Float64Array...
213+ // The compiler throws an error if the function is provided an eleventh argument which is not a Float64Array...
214214{
215215 const x = new Float64Array ( 10 ) ;
216216 const p = new Float64Array ( 1 ) ;
@@ -227,7 +227,7 @@ import ddiff = require( './index' );
227227 ddiff ( x . length , 1 , x , 1 , 1 , p , 1 , 1 , a , 1 , ( x : number ) : number => x , 1 , w , 1 ) ; // $ExpectError
228228}
229229
230- // The compiler throws an error if the function is provided a twelveth argument which is not a number...
230+ // The compiler throws an error if the function is provided a twelfth argument which is not a number...
231231{
232232 const x = new Float64Array ( 10 ) ;
233233 const p = new Float64Array ( 1 ) ;
@@ -406,7 +406,7 @@ import ddiff = require( './index' );
406406 ddiff . ndarray ( x . length , 1 , x , 1 , ( x : number ) : number => x , 1 , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
407407}
408408
409- // The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a Float64Array ...
409+ // The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number ...
410410{
411411 const x = new Float64Array ( 10 ) ;
412412 const p = new Float64Array ( 1 ) ;
@@ -417,14 +417,14 @@ import ddiff = require( './index' );
417417 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , '10' , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
418418 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , true , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
419419 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , false , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
420- ddiff . ndarray ( x . length , 1 , x , 1 , 1 , null , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
420+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , null , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
421421 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , undefined , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
422422 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , [ ] , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
423423 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , { } , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
424424 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , ( x : number ) : number => x , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
425425}
426426
427- // The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number ...
427+ // The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a Float64Array ...
428428{
429429 const x = new Float64Array ( 10 ) ;
430430 const a = new Float64Array ( 1 ) ;
@@ -441,7 +441,7 @@ import ddiff = require( './index' );
441441 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , ( x : number ) : number => x , 1 , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
442442}
443443
444- // The compiler throws an error if the `ndarray` method is provided an eigth argument which is not a number...
444+ // The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number...
445445{
446446 const x = new Float64Array ( 10 ) ;
447447 const p = new Float64Array ( 1 ) ;
@@ -459,22 +459,22 @@ import ddiff = require( './index' );
459459 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , ( x : number ) : number => x , 0 , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
460460}
461461
462- // The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a Float64Array ...
462+ // The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number ...
463463{
464464 const x = new Float64Array ( 10 ) ;
465465 const p = new Float64Array ( 1 ) ;
466466 const a = new Float64Array ( 1 ) ;
467467 const out = new Float64Array ( 11 ) ;
468468 const w = new Float64Array ( 11 ) ;
469469
470- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , '10' , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
471- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , true , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
472- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , false , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
473- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , null , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
474- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , undefined , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
475- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , [ ] , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
476- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , { } , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
477- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , ( x : number ) : number => x , 1 , a , 0 , 1 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
470+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , '10' , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
471+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , true , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
472+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , false , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
473+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , null , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
474+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , undefined , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
475+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , [ ] , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
476+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , { } , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
477+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , ( x : number ) : number => x , 1 , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
478478}
479479
480480// The compiler throws an error if the `ndarray` method is provided a tenth argument which is not a number...
@@ -495,24 +495,24 @@ import ddiff = require( './index' );
495495 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , ( x : number ) : number => x , a , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
496496}
497497
498- // The compiler throws an error if the `ndarray` method is provided an eleventth argument which is not a Float64Array...
498+ // The compiler throws an error if the `ndarray` method is provided an eleventh argument which is not a Float64Array...
499499{
500500 const x = new Float64Array ( 10 ) ;
501501 const p = new Float64Array ( 1 ) ;
502502 const out = new Float64Array ( 11 ) ;
503503 const w = new Float64Array ( 9 ) ;
504504
505- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , '10' , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
506- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , true , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
507- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , false , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
508- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , null , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
509- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , undefined , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
510- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , [ ] , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
511- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , { } , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
512- ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , ( x : number ) : number => x , 1 , 0 , out , 0 , 1 , w , 1 , 0 ) ; // $ExpectError
505+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , '10' , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
506+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , true , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
507+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , false , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
508+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , null , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
509+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , undefined , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
510+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , [ ] , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
511+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , { } , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
512+ ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , ( x : number ) : number => x , 1 , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
513513}
514514
515- // The compiler throws an error if the `ndarray` method is provided a twelveth argument which is not a number...
515+ // The compiler throws an error if the `ndarray` method is provided a twelfth argument which is not a number...
516516{
517517 const x = new Float64Array ( 10 ) ;
518518 const p = new Float64Array ( 1 ) ;
@@ -530,7 +530,7 @@ import ddiff = require( './index' );
530530 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , a , ( x : number ) : number => x , 0 , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
531531}
532532
533- // The compiler throws an error if the `ndarray` method is provided a thirteenth argument which is not a Float64Array ...
533+ // The compiler throws an error if the `ndarray` method is provided a thirteenth argument which is not a number ...
534534{
535535 const x = new Float64Array ( 10 ) ;
536536 const p = new Float64Array ( 1 ) ;
@@ -548,7 +548,7 @@ import ddiff = require( './index' );
548548 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , a , 1 , ( x : number ) : number => x , out , 1 , 0 , w , 1 , 0 ) ; // $ExpectError
549549}
550550
551- // The compiler throws an error if the `ndarray` method is provided a fourteenth argument which is not a number ...
551+ // The compiler throws an error if the `ndarray` method is provided a fourteenth argument which is not a Float64Array ...
552552{
553553 const x = new Float64Array ( 10 ) ;
554554 const p = new Float64Array ( 1 ) ;
@@ -601,7 +601,7 @@ import ddiff = require( './index' );
601601 ddiff . ndarray ( x . length , 1 , x , 1 , 0 , 1 , p , 1 , 0 , 1 , a , 1 , 0 , out , 1 , ( x : number ) : number => x , w , 1 , 0 ) ; // $ExpectError
602602}
603603
604- // The compiler throws an error if the `ndarray` method is provided a seventeenth argument which is not a number ...
604+ // The compiler throws an error if the `ndarray` method is provided a seventeenth argument which is not a Float64Array ...
605605{
606606 const x = new Float64Array ( 10 ) ;
607607 const p = new Float64Array ( 1 ) ;
0 commit comments