Why didn't we vectorize the code

for row in range(W-F+1):

    for col in range(H-F+1):

        output[row, col] = np.sum(np.multiply(img[row:row+F, col:col+F],img_filter))

why didn’t we vectorize our code to make it faster

Hey @Vignesh-0510, we always have an option to vectorize the code but sometimes the code gets complex when u try to vectorize. So in this case if you feel that you can vectorize the code, please do go ahead and try that as well.

I hope this clears your doubt !
Happy Learning ! :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.