The axpy test checks that the return value of axpy is the same as the return value of nblas.daxpy. These functions actually have return type void so the check is just that undefined === undefined!
The actual thing saxpy/daxpy should do is mutate y in place.
|
deepStrictEqual(axpy('float64', n, alpha, x, 1, y, 1), nblas.daxpy(n, alpha, x, 1, y, 1)); |
The
axpytest checks that the return value ofaxpyis the same as the return value ofnblas.daxpy. These functions actually have return typevoidso the check is just thatundefined === undefined!The actual thing
saxpy/daxpyshould do is mutateyin place.vectorious/src/blas.spec.ts
Line 17 in 3ec2561