
On 1/9/2016 4:58 AM, Stefan Otte wrote:
Hey,
one of my new year's resolutions is to get my pull requests accepted (or closed). So here we go...
Here is the update pull request: https://github.com/numpy/numpy/pull/5057 Here is the docstring: https://github.com/sotte/numpy/commit/3d4c5d19a8f15b35df50d945b9c8853b683f7a...
The new `block` function is very similar to matlab's `[A, B; C, D]`.
Pros: - it's very useful (in my experiment) - less friction for people coming from matlab - it's conceptually simple - the implementation is simple - it's documented - it's tested
Cons: - the implementation is not super efficient. Temporary copies are created. However, bmat also does that.
Feedback is very welcome!
Best, Stefan
Without commenting on the implementation, I would find this function *very* useful and convenient in my own work. -gyro