Ruby | Matrix unitary?() function
The unitary?() is an inbuilt method in Ruby returns a boolean value. It returns true if it is a unitary matrix, else it returns false. It returns error if anything other than unitary matrix is used. Syntax: mat1.unitary?() Parameters: The function needs the matrix to be checked for unitary matrix or