In this chapter, we will discuss about NumPy Introduction. NumPy, which stands for Numerical Python, is a library consisting of multidimensional array objects and a collection of routines for processing those arrays. Using NumPy, mathematical and logical operations on arrays can be performed. This topic explains the basics of NumPy such as its architecture and environment. It also discusses the various array functions, types of indexing, etc. An introduction to Matplotlib is also provided. All this is explained with the help of examples for better understanding.
NumPy Audience
This topic has been prepared for those who want to learn about the basics and various functions of NumPy. It is specifically useful for algorithm developers. After completing this tutorial, you will find yourself at a moderate level of expertise from where you can take yourself to higher levels of expertise.
NumPy Introduction
NumPy is a Python package. It stands for ‘Numerical Python. It is a library consisting of multidimensional array objects and a collection of routines for processing of array.
Numeric, the ancestor of NumPy, was developed by Jim Hugunin. Another package Numarray was also developed, having some additional functionalities. In 2005, Travis Oliphant created the NumPy package by incorporating the features of Numarray into the Numeric package. There are many contributors to this open-source project.
Operations using NumPy
Using NumPy, a developer can perform the following operations ā
- Mathematical and logical operations on arrays.
- Fourier transforms and routines for shape manipulation.
- Operations related to linear algebra. numPy has in-built functions for linear algebra and random number generation.
NumPy ā A Replacement for MatLab
NumPy is often used along with packages likeĀ SciPyĀ (Scientific Python) andĀ Matāplot libĀ (plotting library). This combination is widely used as a replacement for MatLab, a popular platform for technical computing. However, the Python alternative to MatLab is now seen as a more modern and complete programming language.
It is open-source, which is an added advantage of NumPy.
Next Topic- Click Here
Pingback: NumPy - Matrix Library - Adglob Infosystem Pvt Ltd
Pingback: NumPy - with I/O - Adglob Infosystem Pvt Ltd .........