[SciPy-User] [SciPy-user] lambda functions within matrix

archeryguru2000 archeryguru2000 at gmail.com
Fri Apr 30 11:25:57 EDT 2010



Warren Weckesser-3 wrote:
> 
> 
> In [18]: scipy.fromfunction(lambda i,j: (i==j) & (j<int(M/2+1)), (N,N))
> 
> Warren
> 
> 
_______________________________________________

Thank you very much.  This helped out greatly.

~~archery~~
-- 
View this message in context: http://old.nabble.com/lambda-functions-within-matrix-tp28393844p28413564.html
Sent from the Scipy-User mailing list archive at Nabble.com.




More information about the SciPy-User mailing list