DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python Sum of an array in NumPy
import numpy as np a=np.array([[1,4],[3,5]]) b=np.sum(a,axis=1) print(b)
Source by softhunt.net #
PREVIOUS
NEXT
Tagged:
#Python
#Sum
#array
#NumPy
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit