[C++-sig] My latest project

Neal D. Becker ndbecker2 at verizon.net
Fri Aug 13 16:43:18 CEST 2004


I'm working on mixing python with c++ algorithms for signal processing
applications.

I've come to the conclusion that wrapping std::vector is a good choice for
containers.

I'm pretty happy now with the basic design, and I'd like to share it.  This
boost-python module wraps (currently) std::vector<double> and
std::vector<complex<double>>.  It implements (currently) basic arithmetic:

vector<T> op vector<T>
vector<T> op T
vector<T> op complex<T>

vector<complex<T>> op vector<complex<T>>
vector<complex<T>> op complex<T>
vector<complex<T>> op vector<T>
vector<complex<T>> op T

"in-place" ops not yet implemented.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mismatch.H
Type: text/x-csrc
Size: 169 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040813/5e5ffd0b/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Scalar.H
Type: text/x-csrc
Size: 198 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040813/5e5ffd0b/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector.cc
Type: text/x-c++src
Size: 6105 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040813/5e5ffd0b/attachment.cc>


More information about the Cplusplus-sig mailing list