Just iterate over non-zero values of y for the second term.

On Wed, Jan 27, 2010 at 12:06 PM, Jake Mannix <jake.man...@gmail.com> wrote:

> x^2 + y.(y-x)
>
> Hmm... how exactly do you do both a dot product and a subtraction on one
> iteration?  I guess if x is dense,
>



-- 
Ted Dunning, CTO
DeepDyve

Reply via email to