Ruby | Matrix to_matrix() function
The to_matrix() is an inbuilt method in Ruby returns a matrix which is self only. Syntax: mat1.to_matrix() Parameters: The function needs the matrix which is to be returned. Return Value: It returns an matrix, or self. Example 1: # Ruby program for to_matrix() method in Matrix # Include matrix requi