I\'m trying to generate sinusiod image but i see no alternative without using two for loops. Can someone help me vectorize this code?
import numpy as np M, N