Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

count number of elements in multi-dimensional array python

import numpy as np
size = 1
for dim in np.shape(a): size *= dim
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #number #elements #array #python
ADD COMMENT
Topic
Name
8+9 =