# [Numpy-svn] r3590 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Thu Mar 22 17:49:30 CDT 2007

```Author: stefan
Date: 2007-03-22 17:49:17 -0500 (Thu, 22 Mar 2007)
New Revision: 3590

Modified:
trunk/numpy/lib/function_base.py
trunk/numpy/lib/polynomial.py
Log:
Replace tabs with spaces (see ticket #470).

Modified: trunk/numpy/lib/function_base.py
===================================================================
--- trunk/numpy/lib/function_base.py	2007-03-21 21:19:11 UTC (rev 3589)
+++ trunk/numpy/lib/function_base.py	2007-03-22 22:49:17 UTC (rev 3590)
@@ -143,7 +143,7 @@
H, edges = histogramdd(x, bins = (5, 6, 7))

-
+
"""

try:
@@ -264,7 +264,7 @@

Raises ZeroDivisionError if appropriate.  (The version in MA does
not -- it returns masked values).
-
+
"""
if axis is None:
a = array(a).ravel()
@@ -403,7 +403,7 @@

Note that one of the condition arrays must be large enough to handle
the largest array in the choice list.
-
+
"""
n = len(condlist)
n2 = len(choicelist)
@@ -456,7 +456,7 @@

N arrays of the same shape as f giving the derivative of f with respect
to each dimension.
-
+
"""
N = len(f.shape)  # number of dimensions
n = len(varargs)
@@ -641,7 +641,7 @@
>>> a = array((0, 0, 0, 1, 2, 3, 2, 1, 0))
>>> numpy.trim_zeros(a)
array([1, 2, 3, 2, 1])
-
+
"""
first = 0
trim = trim.upper()
@@ -666,7 +666,7 @@
Example:
>>> unique([5,2,4,0,4,4,2,2,1])
array([0, 1, 2, 4, 5])
-
+
"""
try:
tmp = x.flatten()
@@ -692,7 +692,7 @@
"""Similar to putmask arr[mask] = vals but the 1D array vals has the
same number of elements as the non-zero values of mask. Inverse of
extract.
-
+
"""

Modified: trunk/numpy/lib/polynomial.py
===================================================================
--- trunk/numpy/lib/polynomial.py	2007-03-21 21:19:11 UTC (rev 3589)
+++ trunk/numpy/lib/polynomial.py	2007-03-22 22:49:17 UTC (rev 3590)
@@ -53,11 +53,11 @@
If the input is a matrix, return the characteristic polynomial.

Example:
-
+
>>> b = roots([1,3,1,5,6])
>>> poly(b)
array([ 1.,  3.,  1.,  5.,  6.])
-
+
"""
seq_of_zeros = atleast_1d(seq_of_zeros)
sh = seq_of_zeros.shape
@@ -655,5 +655,3 @@
# Stuff to do on module import

warnings.simplefilter('always',RankWarning)
-
-

```