Hey Brendan 2008/9/17 Brendan Simons <[EMAIL PROTECTED]>: > I would love a c-types code snippet. I'm not very handy in c. Since > I gather numpy is row-major, I thought I up and down crops very > quickly by moving the start and end pointers of the array. For > cropping left and right, is there a fast c command for "copy while > skipping every nth hundred bytes"?
Not sure which way you decided to go, but here are some code snippets: http://mentat.za.net/hg/graycomatrix and http://mentat.za.net/source/connected_components.tar.bz2 Also take a look at http://scipy.org/Cookbook/Ctypes Good luck! Stéfan _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion