<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 24 January 2014 23:09, Dinesh Vadhia <span dir="ltr"><<a href="mailto:dineshbvadhia@hotmail.com" target="_blank">dineshbvadhia@hotmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>



<div style="padding-left:10px;padding-right:10px;padding-top:15px" bgcolor="#ffffff" text="#000000" name="Compose message area">
<div><font face="Garamond">Francesc: <font face="Garamond">Thanks. I looked at numexpr a few years back but it didn't 
support array slicing/indexing.  Has that changed?</font></font></div></div></blockquote><div><br></div><div>No, but you can do it yourself. <br><br></div><div>big_array = np.empty(20000)<br></div><div>piece = big_array[30:-50]<br>

</div><div>ne.evaluate('sqrt(piece)')<br><br></div><div>Here, creating "piece" does not increase memory use, as slicing shares the original data (well, actually, it adds a mere 80 bytes, the overhead of an array).<br>

</div><div><br></div></div></div></div>