Ruby | Matrix entrywise_product() function
The entrywise_product() is an inbuilt method in Ruby returns the hadamard_product of two matrices. It takes two matrices of the same dimensions and produces another matrix of the same dimension as the operands where each element i, j is the product of elements i, j of the original two matrices.
Parameters: The function needs two matrix whose hadamard_product is to be done.
Return Value: It returns the hadamard_product of two matrices.
Matrix[[1, 63], [93, 72]]
Matrix[[32, 93], [416, 2072], [129, 12]]