Articles → Numpy → Sum all values of an array in NumPy

Sum all values of an array in NumPy






Code


import numpy as np
mat = np.arange(1,26)
print(“Sum is:”, np.sum(mat))





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, April 05, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250