Skip to content
Open
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
Prev Previous commit
Next Next commit
Fix RST title underline in changelog entry for #10767
  • Loading branch information
VenkateswarluNagineni committed Sep 11, 2026
commit e48ce6b2db78fa90b25d068b0624783854d104f3
11 changes: 7 additions & 4 deletions docs/upcoming_changes/10767.bug_fix.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
PR #10767: Fix ``np.clip`` returning wrong shape when ``a_min`` or ``a_max``
broadcasts to a shape larger than ``a``. Previously the result was allocated
with ``np.empty_like(a)`` before the broadcast was computed, so a larger bound
silently produced the wrong shape and wrote outside the result buffer.
Fix ``np.clip`` returning wrong shape when bounds broadcast larger than ``a``
-----------------------------------------------------------------------------

Previously the result was allocated with ``np.empty_like(a)`` before the
broadcast shape was computed, so a bound that broadcasts to a shape larger
than ``a`` silently produced the wrong shape and wrote outside the result
buffer.