[Numpy-discussion] Generalize hstack/vstack --> stack; Block matrices like in matlab

Nathaniel Smith njs at pobox.com
Tue Oct 28 14:46:24 EDT 2014


On 28 Oct 2014 18:34, "Stefan Otte" <stefan.otte at gmail.com> wrote:
>
> Hey,
>
> In the last weeks I tested `np.asarray(np.bmat(....))` as `stack`
> function and it works quite well. So the question persits:  If `bmat`
> already offers something like `stack` should we even bother
> implementing `stack`? More code leads to more
> bugs and maintenance work. (However, the current implementation is
> only 5 lines and by using `bmat` which would reduce that even more.)

In the long run we're trying to reduce usage of np.matrix and ideally
deprecate it entirely. So yes, providing ndarray equivalents of matrix
functionality (like bmat) is valuable.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20141028/7c8b381b/attachment.html>


More information about the NumPy-Discussion mailing list