[Numpy-svn] [numpy/numpy] 7b137a: BUG: Quick and dirty fix for interp.

GitHub noreply at github.com
Mon Dec 7 16:14:15 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 7b137ab0d52d95d5846f903a64207f5d6c0df17e
      https://github.com/numpy/numpy/commit/7b137ab0d52d95d5846f903a64207f5d6c0df17e
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M numpy/core/src/multiarray/compiled_base.c
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  BUG: Quick and dirty fix for interp.

The original had incorrect comparisons involving <=, <, and also failed
when the number of data points was 2. This fixes the use of the
comparisons and uses linear search for fewer than 5 data points.

The whole routine needs a simplified rewrite, but this takes care of the
bug.

Closes #6468.


  Commit: 9ce9b9a7244f4d583e9bc6bc798f642226e6c4b6
      https://github.com/numpy/numpy/commit/9ce9b9a7244f4d583e9bc6bc798f642226e6c4b6
  Author: Nathaniel J. Smith <njs at pobox.com>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M numpy/core/src/multiarray/compiled_base.c
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  Merge pull request #6785 from charris/fix-interp

BUG: Quick and dirty fix for interp.


Compare: https://github.com/numpy/numpy/compare/db6300726ac9...9ce9b9a7244f


More information about the Numpy-svn mailing list