-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: improve the speed of array conversions using AVX2 if available
- Loading branch information
Showing
2 changed files
with
55 additions
and
19 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 @@ | ||
Faster casting on modern x86-64 processors | ||
--------------------- | ||
Implicit/explicit casting is now significantly faster on contiguous arrays on | ||
processors supporting AVX-2. This speeds many functions up like `numpy.sum`, | ||
`numpy.prod`, `np.cumsum`, `np.cumprod`, `np.all` and `np.any`. | ||
Functions like `np.mean` or basic binary operation with a constant of a | ||
different type requiring the array to be casted are a bit faster. |
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