Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
38.9K+ articles
DSA
22.5K+ articles
Python
20.5K+ articles
Machine Learning
2.8K+ articles
Python-numpy
1.3K+ articles
Misc
1.3K+ articles
Matrix
1.3K+ articles
python
1.2K+ articles
Numpy
81+ articles
Python numpy-arrayCreation
39+ articles
Python numpy-Matrix Function
98 posts
Recent Articles
Popular Articles
Python Program to Get dot product of multidimensional Vectors using NumPy
Last Updated: 05 September 2024
Given two multidimensional Vectors, the task is to write a Python program to get the dot product of two multidimensional Vectors using NumPy.Example: Lets take 2 vectors a...
read more
Python
Python-numpy
Picked
Python numpy-Matrix Function
Numpy
Parallel matrix-vector multiplication in NumPy
Last Updated: 23 September 2021
In this article, we will discuss how to do matrix-vector multiplication in NumPy.Matrix multiplication with VectorFor a matrix-vector multiplication, there are certain imp...
read more
Python
Python-numpy
Picked
Python numpy-Matrix Function
How to Find cofactor of a matrix using Numpy
Last Updated: 23 November 2021
In this article, we are going to see how to find the cofactor of a given matrix using NumPy. There is no direct way to find the cofactor of a given matrix using Numpy.Deri...
read more
Python
Python-numpy
Python numpy-Matrix Function
How to upsample a matrix by repeating elements using NumPy in Python?
Last Updated: 03 January 2021
Prerequisites: NumpyUpsampling a matrix simply means expanding it and obviously upsampling can be done by adding more elements to the original matrix. It can be done in va...
read more
Technical Scripter
Python
Python-numpy
Picked
Python numpy-Matrix Function
Technical Scripter 2020
How to randomly insert NaN in a matrix with NumPy in Python ?
Last Updated: 21 May 2021
Prerequisites: NumpyIn this article, let's see how to generate a Python Script that randomly inserts Nan into a matrix using Numpy. Given below are 3 methods to do the sam...
read more
Technical Scripter
Python
Python-numpy
Picked
Python numpy-Matrix Function
Technical Scripter 2020
How to create a constant matrix in Python with NumPy?
Last Updated: 17 December 2020
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 in parentheses or brackets. A co...
read more
Python
Python-numpy
Picked
Python numpy-arrayCreation
Python numpy-Matrix Function
How to create a matrix of random integers in Python ?
Last Updated: 11 December 2020
Prerequisites: numpyTo create a matrix of random integers in Python, randint() function of the numpy module is used. This function is used for random sampling i.e. all the...
read more
Python
Python-numpy
Picked
Python numpy-Matrix Function
How to create an empty matrix with NumPy in Python?
Last Updated: 29 March 2025
In Python, an empty matrix is a matrix that has no rows and no columns. NumPy, a powerful library for numerical computing, provides various methods to create matrices with...
read more
Python
Python-numpy
Picked
Python numpy-Matrix Function
How to compute cross-correlation of two given NumPy arrays?
Last Updated: 08 December 2020
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 the given arrays...
read more
Python
Python-numpy
Python numpy-Matrix Function
Calculate the sum of the diagonal elements of a NumPy array
Last Updated: 05 September 2020
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 to compute the sum of differ...
read more
Python
Python-numpy
Python numpy-Matrix Function
Multiply matrices of complex numbers using NumPy in Python
Last Updated: 23 February 2023
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. A Complex Number is an...
read more
Python
Python-numpy
Python numpy-Matrix Function
How to count the frequency of unique values in NumPy array?
Last Updated: 02 January 2024
Let's see How to count the frequency of unique values in the NumPy array. Python’s Numpy library provides a numpy.unique() function to find the unique elements and their c...
read more
Python
Python-numpy
Python numpy-Matrix Function
Compute the inverse of a matrix using NumPy
Last Updated: 26 February 2021
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 to solve the equations to find the value of unkn...
read more
Python
Python-numpy
Python numpy-Matrix Function
Generate a matrix product of two NumPy arrays
Last Updated: 29 August 2020
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 product then its output c...
read more
Python
Python-numpy
Python numpy-Matrix Function
Compute the outer product of two given vectors using NumPy in Python
Last Updated: 25 April 2023
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 = None)Parameters :a : [array_lik...
read more
Python
Python-numpy
Python numpy-Matrix Function
1
2
3
4
5
6
7
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !