[sage-devel] Re: Interface to c++

2009-04-15 Thread William Stein
2009/4/15 Jörg F. Unger : > > I would like to add a C++ based library including a finite element > software. What would like to "add" this C++ library to? > For that purpose, the interaction with the sparse matrix > types of sage are required. Especially, due to the possibly large size > of the

[sage-devel] Re: Interface to c++

2009-04-15 Thread Robert Bradshaw
On Apr 15, 2009, at 2:51 AM, mabshoff wrote: > On Apr 15, 1:55 am, Burcin Erocal wrote: >> On Wed, 15 Apr 2009 09:38:39 +0100 > > > >> It is possible to call python code from C/C++, pynac has many >> examples >> of this. The functions in sage/symbolic/pynac.pyx are all exported so >> they are

[sage-devel] Re: Interface to c++

2009-04-15 Thread mabshoff
On Apr 15, 1:55 am, Burcin Erocal wrote: > On Wed, 15 Apr 2009 09:38:39 +0100 > It is possible to call python code from C/C++, pynac has many examples > of this. The functions in sage/symbolic/pynac.pyx are all exported so > they are callable from C++. > > You just need to define the functio

[sage-devel] Re: Interface to c++

2009-04-15 Thread Burcin Erocal
On Wed, 15 Apr 2009 09:38:39 +0100 John Cremona wrote: > > I may be wrong but as far as I know you can use your C++ library from > within Sage (via a wrapper) but not vice versa. For example, my eclib > package uses its own sparse matrix code, but I don't think there is > any way I can use Sag

[sage-devel] Re: Interface to c++

2009-04-15 Thread John Cremona
I may be wrong but as far as I know you can use your C++ library from within Sage (via a wrapper) but not vice versa. For example, my eclib package uses its own sparse matrix code, but I don't think there is any way I can use Sage matrix code in eclib. John 2009/4/15 Jörg F. Unger : > > I would