declaration of array of struct

14 views
Skip to first unread message

jiaon...@gmail.com

unread,
Jun 9, 2017, 2:27:43 PM6/9/17
to cython-users
Hello, I am wondering how can I declare in .pxd the following

in xxx.h:

    struct
    {
    int i;                    
    int j;                     
    } abc[500];


Thanks for you help!

Hai Nguyen

unread,
Jun 9, 2017, 3:05:50 PM6/9/17
to cython-users
May be

ctypedef struct mystruct:

    int x

    int y

cdef mystruct[500] abc

Hai

Reply all
Reply to author
Forward
0 new messages