LANGUAGE MFLOPS w/ doubles python w/ for loop 0.01 python w/ matrix of PyObjects 0.1 Octave 1.2 0.2 gcc 2.7.0 w/ -g 1.0 MAtlab (tm) 4.2 1.5 python w/ matrix of raw numbers 1.5 python w/ raw matrix and tricks 2.6 gcc 2.6 w/ -O4 2.6 gcc 2.7 w/ -O4 6.8
a**b == pow(a,b) # guido's blessed a[1,2,3] == a[(1,2,3)] # guido's blessed 1+2j == complex(1,2) # not blessed yet a[1:3, :4,6] == a[slice(1,3), slice(None, 4), 6] # not blessed yet a[1:3, 2:4] # multidimentional slices in general a[.., 3] # variable number of slices before comma a[3, .., 4] # variable number of slices inbetween 0: and :-1