Skip to content
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

MAINT: SciPy 1.11.1 backports #18779

Merged

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    90415c6 View commit details
    Browse the repository at this point in the history
  2. BUG: fix handling for factorial(..., exact=False) for 0-dim array i…

    …nputs (scipy#18754)
    
    Also ensure `test_factorial{,2,k}_array_corner_cases` covers 0-dim. inputs correctly
    
    Unfortunately, `np.array` will ignore an explicit `ndim=0` request and
    happily give back a 1-dimensional result without complaint:
    ```
    >>> np.array([1], ndmin=0, dtype=np.int64).ndim
    1
    ```
    
    This invalidated the original assumptions for these tests.
    
    Additionally, we need to take care not to iterate over 0-dim arrays
    (but also keep the tests with two elements in `content` correct),
    that n.ravel().ndim == 1 even if n.ndim == 0, and that assert_equal
    will not distinguish scalars from 0-dim arrays with the same value.
    h-vetinari authored and tylerjereddy committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    7ec5010 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d9ac3f3 View commit details
    Browse the repository at this point in the history
  4. MAINT:linalg:Remove memcpy from lu

    ilayn authored and tylerjereddy committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    5cdc2fe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a1c6f99 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0760bab View commit details
    Browse the repository at this point in the history
  7. MAINT: fix unuran licensing

    * Fixes scipy#18765
    
    * the offending unuran source file was removed
    over at scipy/unuran#9,
    and this PR updates us to point to latest `main`
    version of submodule (caution: this pulls in a few
    more commits from `main` we didn't have in original
    `1.11.0` release)
    
    * as noted over there, the (SciPy) testsuite appears to
    pass just fine when this file is purged, likely
    because we have `HAVE_DECL_LOG1P` always set, since
    we require C99, and therefore unuran always uses
    the version from `math.h` instead of in-house anyway
    tylerjereddy committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    145cec5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6f942e8 View commit details
    Browse the repository at this point in the history