
15 May
2006
15 May
'06
3:54 p.m.
Nigel Stewart wrote:
I've been using a wrapper for boost::ublas. That sounds interesting. Is it your own wrapper?
I put some code here: http://nbecker.dyndns.org:8080/uvector.cc
Oh, I see.
Did you consider using a PyArrayObject as the storage for a boost::numeric::ublas::vector? The advantage with that would be all the Numeric/Numarray/Numpy functionality in Python, with a boost::numeric::ublas::vector interface in C++.
No. Any code sample? My goal was to give python an interface to algorithms written in c++. The algs are generic, but to talk to python I have to choose concrete containers. I chose ublas::vector in hopes that would also be convenient for c++. I don't know what using PyArrayObject would imply, do you?