[Numpy-discussion] lazy evaluation

mark florisson markflorisson88 at gmail.com
Tue Jun 5 14:02:51 EDT 2012


On 5 June 2012 18:21, Neal Becker <ndbecker2 at gmail.com> wrote:
> Would lazy eval be able to eliminate temps in doing operations such as:
>
> np.sum (u != 23)?
>
> That is, now ops involving selecting elements of matrixes are often performed by
> first constructing temp matrixes, and the operating on them.
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

Sure, yeah, it's pretty easy to generate a loop with an if statement
and a reduction.



More information about the NumPy-Discussion mailing list