Can I get rid of the loop in this example? And what is the fastest way  
to get v in the example?

ar = array([1,2,3])
for a in ar:
    for b in ar:
        v = a**2+b**2
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to