[Numpy-discussion] Dot products and casting

Travis Oliphant oliphant.travis at ieee.org
Fri Feb 17 11:23:02 CST 2006


Ed Schofield wrote:

>Hi all,
>
>  
>
>The problem seems to be with the PyArray_ObjectType() calls in
>dotblas_matrixproduct(), which are returning typenum=PyArray_FLOAT, but
>this isn't sufficiently large for a safe cast from the int32 and int64
>arrays.  It seems like PyArray_ObjectType() should be returning
>PyArray_DOUBLE here instead.
>  
>
This sounds like an accurate diagnosis.  I'll have to look at the 
type-evaluation code a bit more to see why a suitable type is not being 
found --- unless someone else gets there first.  I won't have time for 
awhile today.

-Travis






More information about the Numpy-discussion mailing list