Forum: GNU Radio gr.feval_ff

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2006-06-09 00: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/qa_feval.py for a trivial
example
of usage.

Eric
This topic is locked and can not be replied to.