discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] gr.feval_ff


From: Eric Blossom
Subject: [Discuss-gnuradio] gr.feval_ff
Date: Thu, 8 Jun 2006 15:10:30 -0700
User-agent: Mutt/1.5.9i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]