Conclusions about efficiency

math.sin is much faster than numpy.sin for scalar expressions
Callbacks to Python are extremely expensive
Python+NumPy is 1.5 times slower than pure Fortran
C and C++ run equally fast
C++ w/MyArray was only 7\% slower than pure F77
Minimize the no of callbacks to Python!

previousnexttable of contents