Numpy
NumPy (or Numpy) is a Linear Algebra Library for python. The main data object is an array (1D or multi-dimensional). This is an important data object for numerical computing since, unlike a list, an array can only consist of values of the same data type. This makes processing functions on arrays extremely fast, as the python interpreter doesn't need to check the data type of each entry before it applies the function.
NumPy arrays are the main way we will use NumPy throughout this page. We'll essentially think of NumPy arrays as either: vectors or matrices. Vectors are strictly 1-D arrays and matrices are 2-D (but note a matrix could consist of only one row or one column).
For a more advanced look at NumPy and Linear Algebra refer to our Python for Linear Algebra page.
Let's get started by working through the menu on the left.
Back to py4math