libpy icon indicating copy to clipboard operation
libpy copied to clipboard

ndarray `size()` needs a better docstring or just not exist

Open gerrymanoim opened this issue 6 years ago • 0 comments

https://github.com/quantopian/libpy/blob/master/include/libpy/ndarray_view.h#L804.

The following should always work:

for (std::size_t ix = 0; ix < arr.size(); ++ix) {
    arr[ix];
}

Docstring should be the size along axis 0 or just not exist.

gerrymanoim avatar Jun 15 '20 16:06 gerrymanoim