[C++-sig] Re: My latest project
David Abrahams
dave at boost-consulting.com
Fri Aug 13 19:14:46 CEST 2004
"Neal D. Becker" <ndbecker2 at verizon.net> writes:
> 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.
1. Why not use the vector_indexing_suite?
2. Why all the ugly macros when you could use function templates?
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list