Basic Modules

It is the mark of an educated mind to rest satisfied with the degree of precision which the nature of the subject admits and not to seek exactness where only an approximation is possible.

—Aristotle

"Oh no. We're in the hands of engineers!"

—Malcolm, Ian in 'Jurassic Park'

The NumPy distribution contains some basic functionality equivalent to what was available in the Numeric packages previously. This section documents the new interfaces. These are sub-packages of the NumPy namespace. The linalg and fft capabilities are useful but limited. You should install the full SciPy package to access more functionality. The numpy.dual module contains functions that are defined in both SciPy and NumPy. If SciPy defines func, then numpy.dual.func will point to the SciPy version, otherwise it will point to the NumPy version. It must be imported specifically to be used. Table 10.1 shows the functions defined in numpy.dual that are in both NumPy and SciPy.

0 0

Post a comment