Ruby | Matrix zero() function
The zero() is an inbuilt method in Ruby returns an N x M zero matrix where each element is zero. Syntax: mat1.zero(N, M) Parameters: The function accepts two mandatory parameters N and M which is the size of the matrix. Return Value: It returns the zero matrix of size N x M. Example 1: # Ruby progra