Skip to content
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
Sign In
▲
Similar Topics
Web Technologies
40.1k+ articles
DSA
22.3k+ articles
Python
20.2k+ articles
Experiences
17k+ articles
Interview Experiences
13.7k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Java
10.3k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Matrix-class
75 posts
Popular Articles
Recent Articles
Ruby | Matrix rank() function
Last Updated: 07 January 2020
The rank() is an inbuilt method in Ruby returns the rank of the given matrix. The float values can yield enormous results due to float prec
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix inverse() function
Last Updated: 07 January 2020
The inverse() is an inbuilt method in Ruby returns the inverse of the given matrix.Syntax: mat1.inverse()Parameters: The function does not
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix diagonal() function
Last Updated: 12 September 2024
The diagonal() is an inbuilt method in Ruby returns true if the given matrix is diagonal, else it returns false. A diagonal matrix is a mat
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Similar Topics
Web Technologies
40.1k+ articles
DSA
22.3k+ articles
Python
20.2k+ articles
Experiences
17k+ articles
Interview Experiences
13.7k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Java
10.3k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby | Matrix square?() function
Last Updated: 07 January 2020
The square?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a square matrix, else it returns false. Syntax
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix column() function
Last Updated: 07 January 2020
The column() is an inbuilt method in Ruby returns a vector that has all the elements in the column number col_num. Syntax: mat1.column(col
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix cofactor() function
Last Updated: 07 January 2020
The cofactor() is an inbuilt method in Ruby returns the cofactor of the given index. Syntax: mat1.cofactor(i, j)Parameters: The function ne
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix ** method
Last Updated: 07 January 2020
The ** is an inbuilt method in Ruby returns the matrix after the matrix is multiplied with self N times. It returns the matrix exponentiati
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix diagonal() function
Last Updated: 07 January 2020
The diagonal is an inbuilt method in Ruby returns a matrix with diagonal elements as the given values.Syntax: mat1.diagonal(val1, val2, val
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix [] method
Last Updated: 07 January 2020
The []() is an inbuilt method in Ruby returns the element at the i-th row and the j-th column. Syntax: mat1[i, j]Parameters: The function n
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix tr() function
Last Updated: 07 January 2020
The tr() is an inbuilt method in Ruby returns the trace i.e., sum of diagonal elements of the matrix. Syntax: mat1.tr()Parameters: The func
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix to_a() function
Last Updated: 07 January 2020
The to_a() is an inbuilt method in Ruby returns an array which has all the elements of the matrix row-wise.Syntax: mat1.to_a()Parameters: T
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix row() function
Last Updated: 07 January 2020
The row() is an inbuilt method in Ruby returns a vector that contains all the elements in the given row-number. Syntax: mat1.row(num)Parame
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix hash() function
Last Updated: 14 September 2021
The hash() is an inbuilt method in Ruby returns the hash-code of the matrix.Syntax: mat1.hash()Parameters: The function does not accepts any
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix find_element() function
Last Updated: 14 September 2021
The find_index is an inbuilt method in Ruby returns the index position of the given number. If the element is present more than once, the fi
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
Ruby | Matrix transpose() function
Last Updated: 09 January 2020
The transpose() is an inbuilt method in Ruby returns the transpose of the matrix.Syntax: mat1.transpose()Parameters: The function needs the
...read more
Ruby
Ruby-Methods
Ruby Matrix-class
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
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 !