Re: [sage-support] Silly Cython question

2017-02-22 Thread John Cremona
On 21 February 2017 at 22:02, Watson Ladd wrote: > > > On Tuesday, February 21, 2017 at 1:07:43 PM UTC-8, Jeroen Demeyer wrote: >> >> On 2017-02-21 22:02, Watson Ladd wrote: >> > I am having trouble figuring out which imports I need to get the >> > right names to appear >>

Re: [sage-support] Silly Cython question

2017-02-21 Thread Watson Ladd
On Tuesday, February 21, 2017 at 1:07:43 PM UTC-8, Jeroen Demeyer wrote: > > On 2017-02-21 22:02, Watson Ladd wrote: > > I am having trouble figuring out which imports I need to get the > > right names to appear > > Use the import_statements() function to determine which import > statements

Re: [sage-support] Silly Cython question

2017-02-21 Thread Jeroen Demeyer
On 2017-02-21 22:02, Watson Ladd wrote: I am having trouble figuring out which imports I need to get the right names to appear Use the import_statements() function to determine which import statements you need. There shouldn't be a difference between Python and Cython regarding import

[sage-support] Silly Cython question

2017-02-21 Thread Watson Ladd
Dear all, I want to convert code that uses calls like M=Matrix(QQ, n, n) and v=vector(QQ, n) to Cython. When I do so I get errors about undeclared names. I am having trouble figuring out which imports I need to get the right names to appear: there is sufficient magic that most of the obvious