[Numpy-svn] [numpy/numpy] e9dfb3: ENH: Add `raw`, `reduced`, `complete` modes to qr ...

GitHub noreply at github.com
Thu Apr 4 14:27:02 EDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: e9dfb3bc760088fa50e14aed363041a7aac6aa29
      https://github.com/numpy/numpy/commit/e9dfb3bc760088fa50e14aed363041a7aac6aa29
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-04-01 (Mon, 01 Apr 2013)

  Changed paths:
    M numpy/linalg/linalg.py

  Log Message:
  -----------
  ENH: Add `raw`, `reduced`, `complete` modes to qr factorization.

If K = min(M, N) where the matrix to be factored has dimensions MxN,
then

'reduced'  : returns q, r with dimensions (M, K), (K, N) (default)
'complete' : returns q, r with dimensions (M, M), (M, N)
'r'        : returns r only with dimensions (K, N)
'raw'      : returns h, tau with dimensions (N, M), (K,)
'full'     : alias of 'reduced', deprecated
'economic' : returns h from 'raw', deprecated.

The options 'reduced', 'complete, and 'raw' are new. The default is
'reduced' and to maintain backward compatibility with earlier versions
of numpy both it and the old default 'full' can be omitted. Note that
array `h` returned in 'raw' mode is transposed for calling Fortran. Both
the 'full' and 'economic' modes are deprecated. For backwards
compatibility the modes 'full', 'economic' may be passed using only the
first letter but all others must be spelled out.


  Commit: d0b6a7a48e4662b3c2788d541b06ad5d46a2f177
      https://github.com/numpy/numpy/commit/d0b6a7a48e4662b3c2788d541b06ad5d46a2f177
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-04-01 (Mon, 01 Apr 2013)

  Changed paths:
    A numpy/linalg/tests/test_deprecations.py
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Add more tests for qr factorization.

The new tests cover the new modes 'complete' and 'raw'. The testing of
the 'reduced', aka 'full' mode is improved and tests are added for the
deprecation of the 'full' and 'economic' modes. A new file
`numpy/linalg/tests/test_deprecations.py` was added for the deprecation
tests.


  Commit: 7394fa6344aeea1bf941af0869f9a78c9e017c7c
      https://github.com/numpy/numpy/commit/7394fa6344aeea1bf941af0869f9a78c9e017c7c
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-04-01 (Mon, 01 Apr 2013)

  Changed paths:
    M doc/release/1.8.0-notes.rst

  Log Message:
  -----------
  DOC: Document the new qr modes in the 1.8 release notes.


  Commit: d31067827d01966c3923ed140b997f6796424f93
      https://github.com/numpy/numpy/commit/d31067827d01966c3923ed140b997f6796424f93
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-04-04 (Thu, 04 Apr 2013)

  Changed paths:
    M doc/release/1.8.0-notes.rst
    M numpy/linalg/linalg.py
    A numpy/linalg/tests/test_deprecations.py
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  Merge pull request #2965 from charris/fix-qr-mode

Fix qr mode


Compare: https://github.com/numpy/numpy/compare/ca77e31947b7...d31067827d01


More information about the Numpy-svn mailing list