Ruby | Matrix first_minor() function
The first_minor() is an inbuilt method in Ruby returns the submatrix after removing the specified row and column.  Syntax: mat1.first_minor(row_num, col_num)Parameters: The function needs the row number and column number which are to be removed Return Value: It returns the submatrix after removal.