Your search query "linkto%3A%22NumPy%22" didn't return any results. Please change some terms and refer to HelpOnSearching for more information.
(!) Consider performing a full-text search with your search terms.

Clear message

NumPy is a package that defines a multi-dimensional array object and associated fast math functions that operate on it. It also provides simple routines for linear algebra and fft and sophisticated random-number generation. NumPy replaces both Numeric and Numarray. http://www.scipy.org and http://www.numpy.org/

A very complete manual by the principal author of Numpy, Travis Oliphant, is available for free (although donations are accepted). Note that the online documentation via docstring is rather complete and not stripped in any way. Further documentation is available from http://docs.scipy.org/doc/

Many examples of numpy usage can be found at http://wiki.scipy.org/Numpy_Example_List

from numpy import *

from PIL import Image


ar = ones((100,100),float32)

ar = ar * 100

for i in range(0,100):
    ar[i,:] = 100 + (i * 1.5)

im = Image.fromarray(ar,"F")

Unable to edit the page? See the FrontPage for instructions.