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))




Picture showing how to Sum all values of an array in NumPy

Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250