File:  [CENS] / python / pyGiNaC / wrappers2 / pyfunc.hpp
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Apr 19 05:49:44 2001 UTC (16 years, 7 months ago) by pearu
Branches: MAIN
CVS tags: HEAD
Trying boost.python cross_module feature


#include <ginac/ginac.h>

//#define PYGINAC_pyfunc

namespace GiNaC {
  const unsigned TINFO_pyfunc = 0x000c1234U;
  
  class pyfunc : public basic {
    GINAC_DECLARE_REGISTERED_CLASS(pyfunc, basic);
  public:
    pyfunc(unsigned ser) : inherited(TINFO_pyfunc) { this->serial = ser; }
    unsigned get_serial(void) const { return this->serial; }
    ex derivative(const symbol & s) const { return _ex0(); }
  private:
    unsigned serial;
  }; 
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>