The Python Game Book

code games. learn Python.

User Tools

Site Tools


Sidebar

Github:

en:glossary:n:numpy

Numpy

third party, free-libre, open-source python library for mathematical operations, especially array processing.

Numpy is especailly useful for making graphics with matplotlib and for machine learning. pygame support numpy surface arrays.

The fundamental package for scientific computing with Python

install

use conda or pip, or anaconda.

np.arange

>>>import numpy
>>>numpy.arange(0.5, 1.2, 0.1) # start, stop, step (like pythons range function, but with float)
# output:
[0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1]

en/glossary/n/numpy.txt · Last modified: 2020/09/06 17:20 by horst