From specification of a numpy array at here:
typedef struct PyArrayObject {
PyObject_HEAD
char *data;
int nd;
npy_intp *dimensions;
npy_intp *strides;
PyObject *base;
PyArray_Descr *descr;
int flags;
PyObject *weakreflist;
} PyArrayObject;
When I look at the specification of a numpy array, I don't see that it stores number of elements of the array. Is that really the case?
What is the advantage of not storing that?
Thank you.