Forum: GNU Radio gr.feval_ff

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eric B. (Guest)
on 2006-06-09 02:15
(Received via mailing list)
I've justed added 3 classes (not GR blocks) that allow C++ code to
evaluate functions defined in Python.  This isn't for performance
critical things, but will be useful in certain situations.

It uses SWIG "directors" to perform the magic.

Basically you subclass gr.feval_{dd,cc,ll} in python and define the
"eval" method.  You can then pass instances of this to SWIG wrapped
C++ code and the "right thing happens".

See gnuradio-core/src/lib/general/gr_feval.h for the classes
and gnuradio-core/src/python/gnuradio/gr/ for a trivial
of usage.

This topic is locked and can not be replied to.