8000 DOC rollaxis return value is a view of input by jnothman · Pull Request #5258 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC rollaxis return value is a view of input #5258

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

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
DOC rollaxis return value is a view of input
  • Loading branch information
jnothman committed Nov 4, 2014
commit d1da343c9986588ed0b0abe8ba3d733cb0304223
2 changes: 1 addition & 1 deletion numpy/core/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ def rollaxis(a, axis, start=0):
Returns
-------
res : ndarray
Output array.
`a` with its axes permuted. A view is returned whenever possible.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is always possible to return a view.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. I copied from transpose and thought it safer to keep the hedge until it could be confirmed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, it sounds like transpose documentation should be fixed as well.


See Also
--------
Expand Down
0