MCPcopy Index your code
hub / github.com/numpy/numpy / count_elem

Function count_elem

numpy/lib/recfunctions.py:862–868  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

860 # counts up elements in subarrays, including nested subarrays, and returns
861 # base dtype and count
862 def count_elem(dt):
863 count = 1
864 while dt.shape != ():
865 for size in dt.shape:
866 count *= size
867 dt = dt.base
868 return dt, count
869
870 fields = []
871 for name in dt.names:

Callers 1

_get_fields_and_offsetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…