tag:blogger.com,1999:blog-8182052149047823344.post283667812404399942..comments2011-05-05T08:13:00.200-07:00Comments on Copy&Paste: ArrayDeluxeManhttp://www.blogger.com/profile/07026996855003154950noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8182052149047823344.post-19365428091522715322010-11-05T06:41:07.811-07:002010-11-05T06:41:07.811-07:00>> xx = zeros([2,2], Float) # Recall 2nd pa...>> xx = zeros([2,2], Float) # Recall 2nd parameter to zeros is the type<br /> >>> print xx<br /> [[0 0]<br /> [0 0]]<br /> >>> xx[0][0] = 5.3<br /> >>> print xx<br /> [[ 5.3 0. ]<br /> [ 0. 0. ]]<br /> >>> xx[1][0] = 4<br /> >>> xx[0][1] = -10<br /> >>> xx[1][1] = 16<br /> >>> print xx<br /> [[ 5.3 -10. ]<br /> [ 4. 16. ]]<br /> >>> print xx[1][0]<br /> 4.0El Ultimo Bastardohttps://www.blogger.com/profile/03480759068011428902noreply@blogger.com