comple data types pasing to/form sage fotm/to C

asked 2012-08-16 06:11:01 +0100

blurrpp gravatar image

Hi. Its easy to pass simple format data like double, int between sage and C programs.

int add_one(int i) { return i+1; }

than

cdef extern from "file": int add_one(int n)

but what if i want to pass list, tuples etc ( simple int * doesnt work ;) ) Does anybody know how to do that, or if thher is samoe manual (in this what i found are only simple examples ) Thank You in advance Luke

edit retag flag offensive close merge delete

Comments

you should have a look at the Cython website

vdelecroix gravatar imagevdelecroix ( 2016-01-05 03:00:59 +0100 )edit