[Numpy-discussion] lazy evaluation

mark florisson markflorisson88@gmail....
Tue Jun 5 13:02:51 CDT 2012


On 5 June 2012 18:21, Neal Becker <ndbecker2@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@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