[Numpy-svn] [numpy/numpy] 10efdb: Add support for structured array ufuncs

GitHub noreply at github.com
Tue May 14 22:13:16 EDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 10efdbb0aca50a96f53ccabc682f23f4d4b75af9
      https://github.com/numpy/numpy/commit/10efdbb0aca50a96f53ccabc682f23f4d4b75af9
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/code_generators/numpy_api.py
    M numpy/core/include/numpy/ufuncobject.h
    M numpy/core/src/umath/ufunc_object.c
    M numpy/core/src/umath/ufunc_type_resolution.c

  Log Message:
  -----------
  Add support for structured array ufuncs

- Add New api method PyUFunc_RegisterLoopForStructType for creating new ufunc for structured array
- Add arg_dtypes array to PyUFunc_Loop1d object. This keeps track of each struct dtype that the ufunc can handle.
- Add arg_dtypes parameter to ufunc_loop_matches function so that struct dtypes can be compared for NPY_VOID type num


  Commit: 8e642e6d69a448ed80e117644abdfde9ef2ed25b
      https://github.com/numpy/numpy/commit/8e642e6d69a448ed80e117644abdfde9ef2ed25b
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/ufunc_object.c

  Log Message:
  -----------
  Add comments for new RegisterLoopForStructType API method


  Commit: a3e22141622da249708c54984212c0766c330c4a
      https://github.com/numpy/numpy/commit/a3e22141622da249708c54984212c0766c330c4a
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/ufunc_object.c

  Log Message:
  -----------
  Fix build error


  Commit: 88df73b6f13300a09941fec63ba533aeb7cea2d6
      https://github.com/numpy/numpy/commit/88df73b6f13300a09941fec63ba533aeb7cea2d6
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/ufunc_object.c
    M numpy/core/src/umath/ufunc_type_resolution.c

  Log Message:
  -----------
  Code cleanup


  Commit: 70e8f83248351278ba43e1018f46b9fa0ce371ea
      https://github.com/numpy/numpy/commit/70e8f83248351278ba43e1018f46b9fa0ce371ea
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/setup.py
    A numpy/core/src/umath/struct_ufunc_test.c.src
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  Add test for struct array ufuncs


  Commit: 1a75f77863ca3db6dc3cdf1893e13747dd8532fd
      https://github.com/numpy/numpy/commit/1a75f77863ca3db6dc3cdf1893e13747dd8532fd
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/struct_ufunc_test.c.src

  Log Message:
  -----------
  Add support for python 3


  Commit: 0e4e9300d629c41d2e3a797f381180db11abb141
      https://github.com/numpy/numpy/commit/0e4e9300d629c41d2e3a797f381180db11abb141
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M doc/source/reference/c-api.ufunc.rst
    M doc/source/user/c-info.ufunc-tutorial.rst
    M numpy/core/src/umath/struct_ufunc_test.c.src

  Log Message:
  -----------
  Update c-api documentation


  Commit: d812c0ded39aca8bdf60d499a9cea1a3bb7a2c6b
      https://github.com/numpy/numpy/commit/d812c0ded39aca8bdf60d499a9cea1a3bb7a2c6b
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/ufunc_object.c

  Log Message:
  -----------
  Change free to PyArray_free, and formatting changes


  Commit: b9f5e8faf8bf7ba9030511e77b0e65581505d620
      https://github.com/numpy/numpy/commit/b9f5e8faf8bf7ba9030511e77b0e65581505d620
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/ufunc_type_resolution.c

  Log Message:
  -----------
  Whitespace change


  Commit: 59048190120cbced237453ace109d876d0814cee
      https://github.com/numpy/numpy/commit/59048190120cbced237453ace109d876d0814cee
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/struct_ufunc_test.c.src

  Log Message:
  -----------
  Remove unneeded code


  Commit: 84fa1845878c070f190f15e37507bb7575c39d06
      https://github.com/numpy/numpy/commit/84fa1845878c070f190f15e37507bb7575c39d06
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/ufunc_object.c

  Log Message:
  -----------
  Add null check


  Commit: c2f30f9eca1a513601b27d2ae2a9c85d3ad15860
      https://github.com/numpy/numpy/commit/c2f30f9eca1a513601b27d2ae2a9c85d3ad15860
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M doc/source/reference/c-api.ufunc.rst
    M doc/source/user/c-info.ufunc-tutorial.rst
    M numpy/core/code_generators/numpy_api.py
    M numpy/core/src/umath/struct_ufunc_test.c.src
    M numpy/core/src/umath/ufunc_object.c

  Log Message:
  -----------
  Change name of RegisterLoopForStructType to RegisterLoopByDescr


  Commit: 28f72e2fdc1bfacb924c83b9e7425e6d40cae6c6
      https://github.com/numpy/numpy/commit/28f72e2fdc1bfacb924c83b9e7425e6d40cae6c6
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/test_rational.c.src
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  Add test for RegisterLoopByDescr and custom dtypes


  Commit: 1987caeb28c8a1eb0ba422117d47f54c4c11c550
      https://github.com/numpy/numpy/commit/1987caeb28c8a1eb0ba422117d47f54c4c11c550
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M numpy/core/src/umath/test_rational.c.src

  Log Message:
  -----------
  Code cleanup


  Commit: d85f7aa465cf854e2be83f67f39f058660348487
      https://github.com/numpy/numpy/commit/d85f7aa465cf854e2be83f67f39f058660348487
  Author: Jay Bourque <jay.bourque at continuum.io>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M doc/source/reference/c-api.ufunc.rst
    M doc/source/user/c-info.ufunc-tutorial.rst
    M numpy/core/code_generators/numpy_api.py
    M numpy/core/src/umath/struct_ufunc_test.c.src
    M numpy/core/src/umath/test_rational.c.src
    M numpy/core/src/umath/ufunc_object.c

  Log Message:
  -----------
  Another name change to RegisterLoopForDescr


  Commit: c546a22219a26dd045281dc1e2708c62d949f33e
      https://github.com/numpy/numpy/commit/c546a22219a26dd045281dc1e2708c62d949f33e
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-05-14 (Tue, 14 May 2013)

  Changed paths:
    M doc/source/reference/c-api.ufunc.rst
    M doc/source/user/c-info.ufunc-tutorial.rst
    M numpy/core/code_generators/numpy_api.py
    M numpy/core/include/numpy/ufuncobject.h
    M numpy/core/setup.py
    A numpy/core/src/umath/struct_ufunc_test.c.src
    M numpy/core/src/umath/test_rational.c.src
    M numpy/core/src/umath/ufunc_object.c
    M numpy/core/src/umath/ufunc_type_resolution.c
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  Merge pull request #462 from ContinuumIO/ufunc-struct

Create ufunc for struct array


Compare: https://github.com/numpy/numpy/compare/418c75e67cae...c546a22219a2


More information about the Numpy-svn mailing list