[SciPy-Dev] numpy.vdot

Pauli Virtanen pav at iki.fi
Fri May 21 04:46:59 EDT 2010


Thu, 20 May 2010 15:26:03 -0700, Ralf Juengling wrote:
> After I learned that numpy.sum accepts an optional dtype argument, I was
> expecting numpy.vdot would also accept it. Any comments as to why it
> does not?

It's in the end implemented via the underlying BLAS library, which does 
not have many functions with variable-precision accumulators. It would in 
principle be possible to implement a dtype= keyword and fall back to .sum
() when BLAS does not support the accumulator type.

-- 
Pauli Virtanen




More information about the SciPy-Dev mailing list