Skip to content

Fix fastcopytranspose #60

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 1 commit into from

Conversation

mwiebe
Copy link
Member

@mwiebe mwiebe commented Mar 23, 2011

Simply rewrote the function to do the obvious transpose (returning a view) followed by a copy.

I don't expect fastCopyAndTranspose to be able to be much faster than
using .T.copy(), since .T always returns a view. Thus, this function
implements .T.copy() in C as a replacement for the buggy code.
@mwiebe
Copy link
Member Author

mwiebe commented Mar 25, 2011

Pushed

@mwiebe mwiebe closed this Mar 25, 2011
fangerer pushed a commit to hpyproject/numpy-hpy that referenced this pull request Jul 7, 2022
…lls to HPy_AsPyObject/HPy_FromPyObject

Merge in ~STEPAN.SINDELAR_ORACLE.COM/numpy-hpy from ss/remove-aspyobj-calls to labs-hpy-port

* commit 'dc0d9c23cc7290f05da092e5ee577f890d9d706d':
  Fix leak in array_scalar_forward
  Add missing CAPI_WARN
  Port array_assign_boolean_subscript
  Remove some HPy_AsPyObject calls
  Convert PyArray_GetItemFunc
  Port array_int and array_float
luyahan pushed a commit to plctlab/numpy that referenced this pull request Apr 25, 2024
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

Successfully merging this pull request may close these issues.

1 participant