Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Similar Topics
Web Technologies
39.4k+ articles
DSA
22.4k+ articles
Python
20.2k+ articles
Machine Learning
2.6k+ articles
Misc
1.3k+ articles
Python-numpy
1.3k+ articles
Matrix
1.2k+ articles
python
1.1k+ articles
Numpy
72 articles
Python numpy-arrayCreation
39 articles

Python numpy-Matrix Function

98 posts
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 f ...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 ...read more
Python
Python-numpy
Picked
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 facili...read more
image
Python
Python-numpy
Python numpy-Matrix Function
Similar Topics
Web Technologies
39.4k+ articles
DSA
22.4k+ articles
Python
20.2k+ articles
Machine Learning
2.6k+ articles
Misc
1.3k+ articles
Python-numpy
1.3k+ articles
Matrix
1.2k+ articles
python
1.1k+ articles
Numpy
72+ articles
Python numpy-arrayCreation
39+ articles
How to Calculate the determinant of a matrix using NumPy?
Last Updated: 25 March 2025
The determinant of a square matrix is a special number that helps determine whether the matrix is invertible and how it transforms space. It ...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 fin ...read more
Python
Python-numpy
Python numpy-Matrix Function
Find the number of rows and columns of a given matrix using NumPy
Last Updated: 05 March 2024
The shape attribute of a NumPy array returns a tuple representing the dimensions of the array. For a two-dimensional array, the shape tuple ...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 equa ...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 = N ...read more
Python
Python-numpy
Python numpy-Matrix Function
How to calculate dot product of two vectors in Python?
Last Updated: 04 April 2025
dot product or also known as the scalar product is an algebraic operation that takes two equal-length sequences of numbers and returns a sin ...read more
Python
Python-numpy
Python numpy-Matrix Function
numpy.linalg.eig() Method in Python
Last Updated: 10 August 2020
In NumPy we can compute the eigenvalues and right eigenvectors of a given square array with the help of numpy.linalg.eig(). It will take a s ...read more
Python
Python-numpy
Python numpy-Matrix Function
Python | Numpy np.unique() method
Last Updated: 21 November 2019
With the help of np.unique() method, we can get the unique values from an array given as parameter in np.unique() method.Syntax : np.unique( ...read more
Python
Python-numpy
Python numpy-Matrix Function
Python | Numpy matrix.transpose()
Last Updated: 09 January 2024
With the help of Numpy matrix.transpose() method, we can find the transpose of the matrix by using the matrix.transpose()method in Python. ...read more
Python
Python-numpy
Python numpy-Matrix Function
Python | Numpy matrix.max()
Last Updated: 15 April 2019
With the help of Numpy matrix.max() method, we can get the maximum value from given matrix.Syntax : matrix.max()Return : Return maximum ...read more
Python
Python-numpy
Python numpy-Matrix Function
Python | Numpy matrix.diagonal()
Last Updated: 12 April 2019
With the help of Numpy matrix.diagonal() method, we are able to find a diagonal element from a given matrix and gives output as one dimensio ...read more
Python
Python-numpy
Python numpy-Matrix Function
numpy.matrix() in Python
Last Updated: 09 March 2022
This class returns a matrix from a string of data or array-like object. Matrix obtained is a specialised 2D array.Syntax : numpy.matrix(data ...read more
Python
Python-numpy
Python numpy-Matrix Function
1 2 3 4 5 6 7 >>
Last
1 2 3 4 5 6 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox