[Numpy-svn] [numpy/numpy] 12e06a: BUG: Campanion Matrix was scalar, not matrix for d...

GitHub noreply@github....
Thu Jun 20 21:53:44 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 12e06a261e8ea6b08002de8e9933fd43e5465df9
      https://github.com/numpy/numpy/commit/12e06a261e8ea6b08002de8e9933fd43e5465df9
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-20 (Thu, 20 Jun 2013)

  Changed paths:
    M numpy/polynomial/chebyshev.py
    M numpy/polynomial/hermite.py
    M numpy/polynomial/hermite_e.py
    M numpy/polynomial/laguerre.py
    M numpy/polynomial/legendre.py
    M numpy/polynomial/polynomial.py
    M numpy/polynomial/tests/test_chebyshev.py
    M numpy/polynomial/tests/test_hermite.py
    M numpy/polynomial/tests/test_hermite_e.py
    M numpy/polynomial/tests/test_laguerre.py
    M numpy/polynomial/tests/test_legendre.py
    M numpy/polynomial/tests/test_polynomial.py

  Log Message:
  -----------
  BUG: Campanion Matrix was scalar, not matrix for degree 1.

The companion matrices returned by the various polynomial types was
a scalar in the degree one case instead of a 2-D array. Fix that and
add a test to check for that result.

Closes #3459.


  Commit: 6dd20ff5fa5b937b86fa4a1404ceeabafceaa589
      https://github.com/numpy/numpy/commit/6dd20ff5fa5b937b86fa4a1404ceeabafceaa589
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-20 (Thu, 20 Jun 2013)

  Changed paths:
    M numpy/polynomial/chebyshev.py
    M numpy/polynomial/hermite.py
    M numpy/polynomial/hermite_e.py
    M numpy/polynomial/laguerre.py
    M numpy/polynomial/legendre.py
    M numpy/polynomial/polynomial.py
    M numpy/polynomial/tests/test_chebyshev.py
    M numpy/polynomial/tests/test_hermite.py
    M numpy/polynomial/tests/test_hermite_e.py
    M numpy/polynomial/tests/test_laguerre.py
    M numpy/polynomial/tests/test_legendre.py
    M numpy/polynomial/tests/test_polynomial.py

  Log Message:
  -----------
  Merge pull request #3460 from charris/fix-polynomial-companion-matrices

BUG: Campanion Matrix was scalar, not matrix for degree 1.


Compare: https://github.com/numpy/numpy/compare/b3755926f5e5...6dd20ff5fa5b


More information about the Numpy-svn mailing list