Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23652 from aurivus-ph/faster-structured-to-unstru…
…ctured ENH: structured_to_unstructured: view more often
- Loading branch information
Showing
3 changed files
with
155 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
``numpy.lib.recfunctions.structured_to_unstructured`` returns views in more cases | ||
--------------------------------------------------------------------------------- | ||
``structured_to_unstructured`` now returns a view, if the stride between the | ||
fields is constant. Prior, padding between the fields or a reversed field | ||
would lead to a copy. | ||
This change only applies to ``ndarray``, ``memmap`` and ``recarray``. For all | ||
other array subclasses, the behavior remains unchanged. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters