On Jul 22, 2009, at 10:55 AM, Ethan Van Andel wrote:

> Robert,
>
> Should those double complex declarations give any speedup?

Yes, lots (compared to using Python complex objects). The are complex  
analogues of int, double, float, etc.

> Are they declaring the numpy complex type or something else?

No. They are compatible with the numpy types, but also support  
conversion to/from Python objects, and arithmetic.

> Slightly unrelated, how are self.something variables handled? It seems
> like you can't cdef them, so are they then always going to be slow? If
> you cdef a variable and then set a self.variable equal to it, does
> that help anything?

That all depends on what self is. If self is a cdef class, it can  
have cdef members.

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to