[Numpy-discussion] Using dotblas

Fernando Perez Fernando.Perez at colorado.edu
Thu Jun 17 16:50:06 CDT 2004

Robert Kern wrote:

> Check the last few lines of Numeric.py .

Argh.  Could've saved myself the embarrasment :)

In my meager defense, the README.html file for doblas then needs to be 
updated, since that's what I followed:

# quote

Finally, if you don't know whether dotblas will be available on all the 
machines where you whish to run your code, you can simply use a try-except 
statement like this:

import Numeric
     import dotblas
     Numeric.dot = dotblas.dot
  if we can't find the fast dotblas, just use the normal dot
except ImportError: pass

# /quote

Thanks, though.  I'll clean up my codes


More information about the Numpy-discussion mailing list