[C++-sig] ANN: PyUblas -- Numpy+Boost.Ublas = happy

Andreas Klöckner lists at informa.tiker.net
Mon Apr 21 01:36:41 CEST 2008


Hi all,

I'm pleased to announce the availability of PyUblas, a software bridge between 
Numpy and Boost.Ublas, for use with Boost.Python.

PyUblas lets you use the "native" matrix library on either side of the 
language "fence". This is achieved without any copying at the language 
boundary. The end result is a very fast and convenient environment for 
writing hybrid numerical codes.

To do its magic, PyUblas defines new Ublas-derived matrix and vector types, 
called numpy_matrix and numpy_vector. These hold their internal data in Numpy 
arrays, and can therefore be passed to and from Python without penalty. 
Variables of these types can be used directly in Ublas's C++ vector and 
matrix expressions, without any copying or conversion, and achieve the same 
speed as Ublas's native types. In addition, PyUblas exposes (copying) 
converters for many of Ublas's own types.

The package also (optionally) wraps Ublas's sparse matrix types for use in 
Python. An add-on module called PyUblasExt supplies additional functionality 
for these types, such as solvers for linear systems and eigenvalue problems.

There's much more material available here:

http://mathema.tician.de/software/pyublas

Enjoy,
Andreas

PS: PyUblas also automatically converts Numpy "array scalars" from Python to 
C++. Ger, you listening? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080420/f7c63bb1/attachment.pgp>


More information about the Cplusplus-sig mailing list