[Haskell-cafe] Data.Complex.magnitude slow?

stefan kersten sk at k-hornz.de
Thu Jul 17 08:57:58 EDT 2008


hi,

i've attached an example program which seems to indicate that the  
magnitude function from Data.Complex is very slow compared to a more  
naive implementation (for Complex Float). on my machine (intel core2  
duo, osx 10.4) the CPU time using the library function is about 6-7  
times as much as when using the other function. any ideas what might  
be going on? any flaws in my measurement code?

thanks,
<sk>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: magnitude.hs
Type: application/octet-stream
Size: 1700 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080717/4fd69aed/magnitude.obj
-------------- next part --------------




More information about the Haskell-Cafe mailing list