diff options
| author | Matti Picus <matti.picus@gmail.com> | 2022-05-07 20:02:19 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 20:02:19 +0300 |
| commit | 37cb0f8463345648add0e1e98fd146c966146981 (patch) | |
| tree | d2771e0f43118ef11abc5858bd124f18ce67d6c8 /doc | |
| parent | e3a9e1a4188a27359950029be4d82d87c4a618b2 (diff) | |
| parent | c2af30347d99d8bfcac23a7002b9229b829b9030 (diff) | |
| download | numpy-37cb0f8463345648add0e1e98fd146c966146981.tar.gz | |
Merge pull request #21188 from seberg/scalar-math-rewrite
MAINT,ENH: Rewrite scalar math logic
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/release/upcoming_changes/21188.performance.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/21188.performance.rst b/doc/release/upcoming_changes/21188.performance.rst new file mode 100644 index 000000000..ce497572a --- /dev/null +++ b/doc/release/upcoming_changes/21188.performance.rst @@ -0,0 +1,8 @@ +Faster operations on NumPy scalars +---------------------------------- +Many operations on NumPy scalars are now significantly faster, although +rare operations (e.g. with 0-D arrays rather than scalars) may be slower +in some cases. +However, even with these improvements users who want the best performance +for their scalars, may want to convert a known NumPy scalar into a Python +one using `scalar.item()`. |
