Factor out object size calculation
There are at least three places (can be found by grepping for ndim > 1
) there the size of the array object is computed according to the same rules. This should be factored out into a unique (inline) function.
There are at least three places (can be found by grepping for ndim > 1
) there the size of the array object is computed according to the same rules. This should be factored out into a unique (inline) function.