[Numpy-svn] [numpy/numpy] b1b0ea: ENH: Remove unnecessary broadcasting notation rest...

GitHub noreply at github.com
Fri Jan 10 14:36:51 EST 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: b1b0ea8030cad32d6fce2e6e6b5068e54bd6b7a7
      https://github.com/numpy/numpy/commit/b1b0ea8030cad32d6fce2e6e6b5068e54bd6b7a7
  Author: hpaulj <hpj3 at myuw.net>
  Date:   2014-01-10 (Fri, 10 Jan 2014)

  Changed paths:
    M doc/release/1.9.0-notes.rst
    M numpy/add_newdocs.py
    M numpy/core/src/multiarray/einsum.c.src
    M numpy/core/tests/test_einsum.py

  Log Message:
  -----------
  ENH: Remove unnecessary broadcasting notation restrictions in einsum.

In a case where 'ik,kj->ij' works, einsum would raise an error for
'ik,k...->i...' because the 'ik' did not have ellipsis

In einsum.c.src prepare_op_axes() pass all 'broadcast' cases through the
'RIGHT' case (interation from the end).

Since the BROADCAST variable is not longer needed, all instances of it have
been removed from einsum.c.src

test_einsum.py - adds a test_einsum_broadcast case.


  Commit: d400b0422a016cf9ca75cc8e9375ea3c5324e88a
      https://github.com/numpy/numpy/commit/d400b0422a016cf9ca75cc8e9375ea3c5324e88a
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-01-10 (Fri, 10 Jan 2014)

  Changed paths:
    M doc/release/1.9.0-notes.rst
    M numpy/add_newdocs.py
    M numpy/core/src/multiarray/einsum.c.src
    M numpy/core/tests/test_einsum.py

  Log Message:
  -----------
  Merge pull request #4183 from charris/gh-4099

ENH: Remove unnecessary broadcasting notation restrictions in einsum.


Compare: https://github.com/numpy/numpy/compare/d1dbf8e796ab...d400b0422a01


More information about the Numpy-svn mailing list