python sum lists element wise
import numpy as np
vector1 = np.array([1, 2, 3])
vector2 = np.array([4, 5, 6])
#Doing the element-wise addition is now as trivial as:
sum_vector = vector1 + vector2
print(sum_vector)
# [5 7 9]
python sum lists element wise
import numpy as np
vector1 = np.array([1, 2, 3])
vector2 = np.array([4, 5, 6])
#Doing the element-wise addition is now as trivial as:
sum_vector = vector1 + vector2
print(sum_vector)
# [5 7 9]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us