File:  [CENS] / python / pyGiNaC / wrappers3 / pyfunc.hpp
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Apr 24 09:01:59 2001 UTC (16 years, 7 months ago) by pearu
Branches: MAIN
CVS tags: HEAD
Impl. function, etc. for 3rd way. It looks promising.


#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;
  };

  const pyfunc & ex_to_pyfunc(const ex &);
}

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