Linear Algebra

In numpy, we have one module linalg for all the functionalities for linear algebra. Like dot products, decomposition, solving equations etc. We will see some of the functions with some…

0 Comments

Matrix Library

Numpy has a matrix library which has all the function in numpy subspace. It will return matrices instead of nd-arrays. Some functions are like empty, zeros, ones, eyes. Some of…

0 Comments

Copies and Views

While copying the arrays in numpy, it is copying in a different manner if we use to view and copy function. We will see the difference between copy and view…

0 Comments

Byte Swapping

Byte Swapping It often happens that the memory that you want to view with an array is not of the same byte ordering as the computer on which you are…

0 Comments

Sort, Search and & Counting

Sort, Search and Counting Functions A.) Sorting functions 1.) sort(): It returns a sorted copy of the array. It takes parameters (array, axis, kind). Here for parameters axis means either along…

0 Comments

Statistical Functions

Statistical Functions Numpy has many useful statistical functions for calculating mean, minimum across any axis, variances etc. 1.) Order Statistics   a.) Numpy.amin(): Returns the minimum across any axis.   b.)…

0 Comments

Mathematical Functions

Mathematical Functions 1. Trigonometric Functions A.) sin: Trigonometric sine elementwise. It has input an angle which is in radians(2*pie rad = 360 degrees). It has some similar functions to calculate cosine,…

0 Comments

Binary Operators

Binary Operators Here are some functions in Numpy to perform binary operations. We will discuss them through example too. 1. bitwise_and: It basically performs AND operation between numbers for each…

0 Comments
Close Menu