From 8f7d59f607e418a5b9e09295a0c87aff5d0f2b1c Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 6 Jun 2006 15:39:46 +0000 Subject: Fix unravel_index docstring. --- numpy/lib/index_tricks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/index_tricks.py') diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index c1516a976..13a45498a 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -24,7 +24,7 @@ def unravel_index(x,dims): Example usage: p = x.argmax() - idx = unravel_index(p) + idx = unravel_index(p,x.shape) x[idx] == x.max() Note: x.flat[p] == x.max() -- cgit v1.2.1