更新时间:2021-07-16 11:16:47
coverpage
NumPy Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. An Introduction to NumPy
The scientific Python stack
The need for NumPy arrays
NumPy in Academia and Industry
Code conventions used in the book
Installation requirements
Summary
Chapter 2. The NumPy ndarray Object
Getting started with numpy.ndarray
Array indexing and slicing
Memory layout of ndarray
Views and copies
Creating arrays
Array data types
Chapter 3. Using NumPy Arrays
Vectorized operations
Universal functions (ufuncs)
Broadcasting and shape manipulation
A boolean mask
Helper functions
Chapter 4. NumPy Core and Libs Submodules
Introducing strides
Structured arrays
Chapter 5. Linear Algebra in NumPy
The matrix class
Linear algebra in NumPy
Decomposition
Polynomial mathematics
Application - regression and curve fitting
Chapter 6. Fourier Analysis in NumPy
Before we start
Signal processing
Fourier analysis
Fourier transform application
Chapter 7. Building and Distributing NumPy Code
Introducing Distutils and setuptools
Preparing the tools
Building the first working distribution
Testing your package
Distributing your application
Chapter 8. Speeding Up NumPy with Cython
The first step toward optimizing code
Setting up Cython
Hello world in Cython
Multithreaded code
NumPy and Cython
Chapter 9. Introduction to the NumPy C-API
The Python and NumPy C-API
The basic structure of an extension module
Creating an array squared function using Python C-API
Creating an array squared function using NumPy C-API
Building and installing the extension module
Chapter 10. Further Reading
pandas
scikit-learn
netCDF4
SciPy