[Numpy-svn] [numpy/numpy] 7270d9: ENH: Add module containing functions for padding n...

GitHub noreply@github....
Wed Apr 4 15:07:14 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 7270d9e6054e105c6c7ace66b443870a9e299b75
      https://github.com/numpy/numpy/commit/7270d9e6054e105c6c7ace66b443870a9e299b75
  Author: tim cera <tcera@sjrwmd.com>
  Date:   2012-04-04 (Wed, 04 Apr 2012)

  Changed paths:
    M doc/release/2.0.0-notes.rst
  A doc/source/reference/routines.padding.rst
  M doc/source/reference/routines.rst
  M numpy/lib/__init__.py
  A numpy/lib/arraypad.py
  A numpy/lib/tests/test_arraypad.py

  Log Message:
  -----------
  ENH: Add module containing functions for padding n-dimensional arrays.

The various padding functions are exposed as options to a public 'pad'
function.  Example:

    pad(a, 5, mode='mean')

Current modes are 'constant', 'edge', 'linear_ramp', 'maximum', 'mean',
'median', 'minimum', 'reflect', 'symmetric', 'wrap', and <function>

This commit includes unit tests and doctests and is based on feature
request ticket #655.


  Commit: 168a55e66f992c9dbbb991f9a729fb04a6437c17
      https://github.com/numpy/numpy/commit/168a55e66f992c9dbbb991f9a729fb04a6437c17
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-04 (Wed, 04 Apr 2012)

  Changed paths:
    M numpy/lib/arraypad.py

  Log Message:
  -----------
  STY: Touch up documentation in arraypad.py

Rearrange some of the documentation and shorten lines. A few long
lines of code were also broken.


Compare: https://github.com/numpy/numpy/compare/313fe46...168a55e


More information about the Numpy-svn mailing list