Ask Your Question

blurrpp's profile - activity

2023-06-15 21:28:00 +0200 received badge  Notable Question (source)
2017-12-20 11:18:43 +0200 received badge  Popular Question (source)
2014-06-29 20:58:56 +0200 received badge  Popular Question (source)
2014-06-29 20:58:56 +0200 received badge  Notable Question (source)
2012-08-21 18:35:16 +0200 answered a question more complicated data types to/from sage from/to C functions

hi, thank you. Do you have some examples of using more complicated datas in c/cpp programs with sage ?(and how to say sage to compile programs like cpp no c using " attach "foo.pyx" " )

2012-08-16 06:11:01 +0200 asked a question comple data types pasing to/form sage fotm/to C

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

2012-08-16 06:10:07 +0200 asked a question more complicated data types to/from sage from/to C functions

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