Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum along axis python

import numpy as np
matrix=np.ones((10,10))
print(matrix.sum(axis=0))
print(matrix.sum(axis=1))
 
PREVIOUS NEXT
Tagged: #sum #axis #python
ADD COMMENT
Topic
Name
7+4 =