[PYTHON MATRIX-SIG] A bug in 1.0a5 (ones, concatenate)
Konrad Hinsen
hinsen@ibs.ibs.fr
Tue, 26 Nov 96 19:14:10 +0100
> This produces a segmentation fault:
>
> concatenate([ones([0,10]),ones([1,10])])
>
> This does not:
>
> concatenate([zeros([0,10]),ones([1,10])])
>
> I'm using Linux, Python 1.4 and 1.0a5 with fixed ellipses.
Same under HP/UX. And there are other operations with empty arrays
that cause crashes.
In case you wonder what the difference between ones() and zeros()
is: zeros() is implemented in C; ones() is implemented in Python
as, essentially, zero()+1. It might be the addition that ultimately
causes the crash.
Konrad.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire | Tel.: +33-4.76.88.99.28
Institut de Biologie Structurale | Fax: +33-4.76.88.54.94
41, av. des Martyrs | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France | Nederlands/Francais
-------------------------------------------------------------------------------
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================