In this post, I am gonna talk briefly about theoretical concepts of NumPy library and the subsequent post after this one will be about various operations that we can do using NumPy library in Python. I will like to keep this post very short and not include any intermediate or complex programming examples. The term NumPy is short abbreviation for as Numerical Python is undoubtedly one of the popular programming language packages that is widely used for mathematical operations especially arrays and matrices manipulation even though it can be used to perform other high level operations efficiently that a normal python code can't do. NumPy library consists of a mixed code written in Python and C language.
NumPy can be used across myriads of fields which are not limited to:
As mentioned before due to its ability to perform numerical calculation efficiently, NumPy becomes a great choice for simulation in Physics, Gaming, Robotics, Population and Ecosystem.
NumPy is used to perform varieties of image processing tasks like loading/saving the image, resizing the image, concatenate images and so on. This makes it popular package in computer vision and medical imaging.
NumPy has wide range of functions that can make multi-dimensional array operation, linear algebra, statistical operation very easier. It also makes indexing, slicing much more convenient than traditional Python code.
It is also worth mentioning that NumPy serves as a foundational concepts while working with other popular python packages like: pandas, matplotlib, SciPy, PyTorch and so on.
In order to install NumPy, you first need to have python installed in your machine. Then you can head to your Command Prompt or your terminal and run pip install numpy. It will run the latest version of numPyin your machine. To check whether numpy has been installed in your computer or not open your favorite's Python IDE and write a basic code like:
import numpy as np
np.add(2,3)
The output will be 5 as below:
Well, I would like to end this post for here now. From here, we will be dealing with NumPy overview and various mathematical operations in NumPy in further posts. Thanks for now.