Skip to content

Tag Archives: Ruby Matrix-class

The minor() is an inbuilt method in Ruby returns a section of the matrix. It either returns a matrix by taking the starting row, end… Read More
The normal?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a normal matrix, else it returns false.… Read More
The orthogonal?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a orthogonal matrix, else it returns false.… Read More
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… Read More
The determinant () is an inbuilt method in Ruby returns the determinant of the given matrix. Syntax: mat1.det() Parameters: The function does not accepts any… Read More
The det() is an inbuilt method in Ruby returns the determinant of the given matrix Syntax: mat1.det() Parameters: The function does not accepts any parameter.… Read More
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.… Read More
The singular?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a singular matrix, else it returns false.… Read More
The row_vectors() is an inbuilt method in Ruby returns vectors which represents each row in the matrix. Syntax: mat1.row_vectors() Parameters: The function does not takes… Read More
The component() is an inbuilt method in Ruby returns the element present at the intersection of i-th row and j-th column. Syntax: mat1.component(i, j) Parameters:… Read More
The column_vectors() is an inbuilt method in Ruby returns an array of vectors containing the columns. Syntax: mat1.column_vectors() Parameters: The function does not accepts any… Read More
The column_size() is an inbuilt method in Ruby returns the number of columns in a matrix. Syntax: mat1.column_size() Parameters: The function does not accepts any… Read More
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_num) Parameters: The… Read More
The column_count() is an inbuilt method in Ruby returns the number of columns in a matrix. Syntax: mat1.column_count() Parameters: The function does not accepts any… Read More
The collect() is an inbuilt method in Ruby returns the new matrix after performing the operation that is given in the block. Syntax: mat1.collect{|el| operation}… Read More

Start Your Coding Journey Now!