|
List Info
Thread: ANN: PyUblas -- Numpy+Boost.Ublas = happy
|
|
| ANN: PyUblas -- Numpy+Boost.Ublas =
happy |
  United States |
2008-04-20 18:36:41 |
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://math
ema.tician.de/software/pyublas
Enjoy,
Andreas
PS: PyUblas also automatically converts Numpy "array
scalars" from Python to
C++. Ger, you listening?
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: ANN: PyUblas -- Numpy+Boost.Ublas =
happy |
  United States |
2008-04-21 06:14:55 |
Andreas Klöckner wrote:
Thanks. I pulled from git today, I get:
[nbecker nbecker1 pyublasext]$ python setup.py build
Traceback (most recent call last):
File "setup.py", line 130, in <module>
main()
File "setup.py", line 12, in main
execfile("siteconf.py", conf)
File "siteconf.py", line 62, in <module>
from pytools import flatten
ImportError: No module named pytools
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: ANN: PyUblas -- Numpy+Boost.Ublas =
happy |
  United States |
2008-04-21 06:17:32 |
Andreas Klöckner wrote:
If you could add a configure option to add RPATH into the
link for the .so,
that would be useful (I use boost svn which is in a
non-standard place).
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| PyUblas do_test.py fails |
  United States |
2008-04-21 07:08:39 |
LD_LIBRARY_PATH=/usr/local/src/boost.hg/stage/lib python
./do_test.py
Traceback (most recent call last):
File "./do_test.py", line 1, in <module>
from pyublas._internal import dblmat, dblvec
ImportError: cannot import name dblmat
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: PyUblas do_test.py fails |
  United States |
2008-04-21 10:04:26 |
Hi Neal,
On Montag 21 April 2008, Neal Becker wrote:
> LD_LIBRARY_PATH=/usr/local/src/boost.hg/stage/lib
python ./do_test.py
> Traceback (most recent call last):
> File "./do_test.py", line 1, in
<module>
> from pyublas._internal import dblmat, dblvec
> ImportError: cannot import name dblmat
That test script is stale and should have been deleted long
ago, sorry.
PyUblas's tests are currently part of PyUblasExt. I'll fix
that in one of the
next releases.
Andreas
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: ANN: PyUblas -- Numpy+Boost.Ublas =
happy |
  United States |
2008-04-23 20:35:40 |
On Montag 21 April 2008, Neal Becker wrote:
> Andreas Klöckner wrote:
>
> If you could add a configure option to add RPATH into
the link for the .so,
> that would be useful (I use boost svn which is in a
non-standard place).
Config option --ldflags, new in 0.92.1.
--Andreas
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
| Re: ANN: PyUblas -- Numpy+Boost.Ublas =
happy |
  United States |
2008-04-23 20:35:32 |
On Montag 21 April 2008, Neal Becker wrote:
> Andreas Klöckner wrote:
>
> Thanks. I pulled from git today, I get:
>
> [nbecker nbecker1 pyublasext]$ python setup.py
build
> Traceback (most recent call last):
> File "setup.py", line 130, in
<module>
> main()
> File "setup.py", line 12, in main
> execfile("siteconf.py", conf)
> File "siteconf.py", line 62, in
<module>
> from pytools import flatten
> ImportError: No module named pytools
Argh. Sorry. Fixed in 0.91.2.
--Andreas
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|