Skip to content

Tag Archives: Ruby Matrix-class

The hstack() is an inbuilt method in Ruby returns a new matrix resulting by stacking horizontally the receiver with the given matrices. It requires a… Read More
The imag() is an inbuilt method in Ruby returns a matrix with only imaginary part in it. The other index are assigned to zero. Syntax:… Read More
The imaginary() is an inbuilt method in Ruby returns a matrix with only imaginary part in it. The other index are assigned to zero. Syntax:… Read More
The permutation?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a permutation matrix, else it returns false.… Read More
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… Read More
The real() is an inbuilt method in Ruby returns a matrix with only real part in it. The other index are assigned to zero. Syntax:… Read More
The real?() is an inbuilt method in Ruby returns a boolean value. It returns true if all values in the matrix are real, else it… Read More
The rect() is an inbuilt method in Ruby returns two matrix. The first matrix returned has all the real values of the matrix, and the… Read More
The rectangular() is an inbuilt method in Ruby returns two matrix. The first matrix returned has all the real values of the matrix, and the… Read More
The inv() is an inbuilt method in Ruby returns the inverse of the given matrix. Syntax: mat1.inv() Parameters: The function does not takes any parameter.… Read More
The inverse() is an inbuilt method in Ruby returns the inverse of the given matrix. Syntax: mat1.inverse() Parameters: The function does not takes any parameter.… Read More
The laplace_expansion() is an inbuilt method in Ruby returns the laplace_expansion of the given matrix along a given row or column. In other words, it… Read More
The lower_triangular?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a lower-triangular matrix, else it returns false.… Read More
The lup() is an inbuilt method in Ruby returns the LUP decomposition of the given matrix. Syntax: mat1.lup() Parameters: The function needs the matrix whose… Read More
The lup_decomposition() is an inbuilt method in Ruby returns the LUP decomposition of the given matrix. Syntax: mat1.lup_decomposition() Parameters: The function needs the matrix whose… Read More