<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Dec 7, 2014 at 11:31 PM, Pierre Haessig <span dir="ltr"><<a href="mailto:pierre.haessig@crans.org" target="_blank">pierre.haessig@crans.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Instead of putting this function in stride_tricks (which is quite<br>
hidden), could it be added instead as a boolean flag to the existing<br>
`reshape` method ? Something like:<br>
<br>
x.reshape(y.shape, broadcast=True)<br>
<br>
What other people think ?<br></blockquote><div><br></div><div>I agree that it would be nice to expose this more directly, but I see two (small) downsides to putting this in reshape:<br></div><div>1. This would one of those flags that changes a method to an entirely different mode -- there's not much the way of shared logic with reshape.</div><div>2. reshape is written in C (like all ndarray methods, I believe), so implementing this there will be a little trickier than adding a new function.</div><div><br></div><div>Cheers,</div><div>Stephan</div></div></div></div>