# Tag Archives: Python numpy-Matrix Function

Prerequisites: Numpy Upsampling a matrix simply means expanding it and obviously upsampling can be done by adding more elements to the original matrix. It can… Read More
Prerequisites: Numpy In this article, let’s see how to generate a Python Script that randomly inserts Nan into a matrix using Numpy. Given below are… Read More
A matrix represents a collection of numbers arranged in the order of rows and columns. It is necessary to enclose the elements of a matrix… Read More
Prerequisites: numpy To create a matrix of random integers in Python, randint() function of the numpy module is used. This function is used for random… Read More
The term empty matrix has no rows and no columns. A matrix that contains missing values has at least one row and column, as does… Read More
In the Numpy program, we can compute cross-correlation of two given arrays with the help of correlate(). In this first parameter and second parameter pass… Read More
Sometimes we need to find the sum of the Upper right, Upper left, Lower right, or lower left diagonal elements. Numpy provides us the facility… Read More
A special number that can be calculated from a square matrix is known as the Determinant of a square matrix. The Numpy provides us the… Read More
In this article, we will discuss how to multiply two matrices containing complex numbers using NumPy but first, let’s know what is a complex number.… Read More
Let’s see How to count the frequency of unique values in NumPy array. Python’s numpy library provides a numpy.unique() function to find the unique elements… Read More
In the NumPy with the help of shape() function, we can find the number of rows and columns. In this function, we pass a matrix… Read More
The inverse of a matrix is just a reciprocal of the matrix as we do in normal arithmetic for a single number which is used… Read More
We can multiply two matrices with the function np.matmul(a,b). When we multiply two arrays of order (m*n) and  (p*q ) in order to obtained matrix… Read More
In Python, we can use the outer() function of the NumPy package to find the outer product of two matrices.  Syntax : numpy.outer(a, b, out… Read More
In mathematics, the dot product or also known as the scalar product is an algebraic operation that takes two equal-length sequences of numbers and returns… Read More