Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gerrymanoim opened this issue Jun 15, 2020 · 0 comments
Open

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

gerrymanoim opened this issue Jun 15, 2020 · 0 comments

Comments

@gerrymanoim
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant