[SciPy-dev] Bug in blas test

Ilan Schnell ilanschnell@gmail....
Tue Sep 16 13:51:09 CDT 2008


Hello,
I just found a bug in tests for blas.
Line 74 and 75 of scipy/lib/blas/tests/test_blas.py (current trunk):
    f = getattr(fblas,p+'dotc')
    assert_almost_equal(f([3j,-4,3-4j],[2,3j,1]),3-14j)

The result of the dot product of these two vectors is 3-10j,
as can be easily veryfied:
>>> def f(a, b):
...     return sum(x*y for x, y in zip(a, b))
...
>>> f([3j,-4,3-4j],[2,3j,1])
(3-10j)

Is it OK if I fix this in the current trunk?

- Ilan


More information about the Scipy-dev mailing list