[Numpy-discussion] Generalize hstack/vstack --> stack; Block matrices like in matlab
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:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion