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
  • Python Tutorial
  • Interview Questions
  • Python Quiz
  • Python Glossary
  • Python Projects
  • Practice Python
  • Data Science With Python
  • Python Web Dev
  • DSA with Python
  • Python OOPs
Open In App
Next Article:
Python | sympy.Matrix.col() method
Next article icon

Python | sympy.Matrix.row() method

Last Updated : 12 Jun, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
With the help of sympy.Matrix.row() method, we can extract the rows of the matrix.
Syntax : sympy.Matrix.row() Return : Return the row of a matrix.
Example #1 : In the given example we can see that the sympy.Matrix().row() method is used to extract the rows of a matrix. Python3 1=1
# Import all the methods from sympy from sympy import *  # use the row() method for matrix gfg_val = Matrix([[1, 2], [2, 1]]).row(1)  print(gfg_val) 
Output :
[2, 1]
Example #2 : Python3 1=1
from sympy import *  # use the row() method for matrix gfg_val = Matrix([[1, 2], [2, 3], [23, 45]]).row(2)  print(gfg_val) 
Output :
[23, 45]

Next Article
Python | sympy.Matrix.col() method

J

Jitender_1998
Improve
Article Tags :
  • Python
  • SymPy
Practice Tags :
  • python

Similar Reads

  • Python | sympy.Matrix.row_del() method
    With the help of sympy.Matrix.row_del() method, we can delete the rows of the matrix. Syntax : sympy.Matrix().row_del() Return : Return a new matrix. Example #1 : In the given example we can see that the sympy.Matrix.row_del() method is used to delete the row of a matrix and return a new matrix. [GF
    1 min read
  • Python | sympy.Matrix() method
    With the help of sympy.Matrix() method, we can make, rearrange, extract the different rows and columns in a matrix which is created by sympy.Matrix() method. Syntax : sympy.Matrix() Return : Return a matrix.   Example #1 :In this example, we can see that by using sympy.Matrix() method, we can create
    1 min read
  • Python sympy | Matrix.rref() method
    With the help of sympy.Matrix().rref() method, we can put a matrix into reduced Row echelon form. Matrix().rref() returns a tuple of two elements. The first is the reduced row echelon form, and the second is a tuple of indices of the pivot columns. Syntax: Matrix().rref() Returns: Returns a tuple of
    2 min read
  • Python | sympy.Matrix.col() method
    With the help of sympy.Matrix().col() method, we can extract the columns of the matrix. Syntax : sympy.Matrix().col() Return : Return the col of a matrix. Example #1 : In the given example we can see that the sympy.Matrix.col() method is used to extract the columns of a matrix. [GFGTABS] Python3 1=1
    1 min read
  • Python | sympy.Matrix.col_del() method
    With the help of sympy.Matrix.col_del() method, we can delete the columns of the matrix. Syntax : sympy.Matrix().col_del() Return : Return a new matrix. Example #1 : In the given example we can see that the sympy.Matrix.col_del() method is used to delete the column of a matrix and return a new matri
    1 min read
  • Python sympy | Matrix.nullspace() method
    With the help of sympy.Matrix().nullspace() method, we can find the Nullspace of a Matrix. Matrix().nullspace() returns a list of column vectors that span the nullspace of the matrix. Syntax: Matrix().nullspace() Returns: Returns a list of column vectors that span the nullspace of the matrix. Exampl
    1 min read
  • Python | sympy.det() method
    With the help of sympy.det() method, we can find the determinant of a matrix by using sympy.det() method. Syntax : sympy.det() Return : Return determinant of a matrix. Example #1 : In this example, we can see that by using sympy.det() method, we are able to find the determinant of a matrix. # import
    1 min read
  • Python | sympy from_rgs() method
    With the help of sympy.combinatorics.Partition.from_rgs() method, we can get the array of subarrays by passing array of indexes and list of members by using sympy.combinatorics.Partition.from_rgs() method. Syntax : sympy.combinatorics.Partition.from_rgs() Return : Return the array of subarrays. Exam
    1 min read
  • Python | sympy.Matrix.eigenvals() method
    With the help of sympy.Matrix.eigenvals() method, we can find the eigen values of the matrix. Syntax : sympy.Matrix().eigenvals() Return : Return the eigen values of a matrix.   Example #1 :  In the given example we can see that the sympy.Matrix.eigenvals() method is used to find the eigen values of
    1 min read
  • Python | sympy.fromiter() method
    With the help of sympy.fromiter() method, we can iterate over the loop and can add elements in tuples and list by using sympy.fromiter() method. Syntax : sympy.fromiter() Return : Return the elements from iteration. Example #1 : In this example we can see that by using sympy.fromiter() method, we ar
    1 min read
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
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences