On Mon, Apr 27, 2009 at 2:46 PM, Robert Bradshaw
<rober...@math.washington.edu> wrote:
>
> On Apr 26, 2009, at 12:21 PM, Ondrej Certik wrote:
>>    cdef struct c_WeakForm "WeakForm":
>>        void add_biform(int i, int j, ...)
>>        void add_biform_surf(int i, int j, ...)
>>        void add_liform(int i, ...)
>>        void add_liform_data(int i, void *data)
>>        void add_liform_surf(int i, ...)
>>    c_WeakForm *new_WeakForm "new WeakForm" (int neq)
>
> Yes, it will certainly get cleaner than this...
>
>> to something like:
>>
>> cdef class WeakForm:
>>        WeakForm(int neq)
>>        void add_biform(int i, int j, ...)
>>        void add_biform_surf(int i, int j, ...)
>>        void add_liform(int i, ...)
>>        void add_liform_data(int i, void *data)
>>        void add_liform_surf(int i, ...)
>
> Are you trying to simultaneously declare a C++ and a Cython class here?

I was just trying to declare the C++ class so that Cython understands
it (e.g. I would still have to define a Cython class myself). When
looking at it again today, it's almost no simplification to how it
works now.

So I don't know -- I would like this to be simpler, so that when I
have ~20 classes to wrap, I don't have to type so much, but I don't
know how to do it.

Ondrej

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

Reply via email to