[Numpy-discussion] Linear algebra functions on empty arrays

Sebastian Berg sebastian at sipsolutions.net
Mon Sep 15 05:48:48 EDT 2014


Hey all,

for https://github.com/numpy/numpy/pull/3861/files I would like to allow
0-sized dimensions for generalized ufuncs, meaning that the gufunc has
to be able to handle this, but also that it *can* handle it at all.
However lapack does not support this, so it needs some explicit fixing.
Also some of the linalg functions currently explicitly allow and others
explicitly disallow empty arrays.

For example the QR and eigvals does not allow it, but on the other hand
solve explicitly does (most probably never did, simply because lapack
does not). So I am wondering if there is some convention for this, or
what convention we should implement.

Regards,

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140915/43e18ecb/attachment.sig>


More information about the NumPy-Discussion mailing list