From: | "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-mathematics/octave/files: octave-3.4.0-fftshift.patch |
Date: | Tue, 12 Jul 2011 20:52:11 |
Message-Id: | 20110712205200.CC67F2004B@flycatcher.gentoo.org |
1 | rafaelmartins 11/07/12 20:52:00 |
2 | |
3 | Added: octave-3.4.0-fftshift.patch |
4 | Log: |
5 | Revision bump. Fixes bug #373985. Thanks to trubatch@×××××××.com for reporting. |
6 | |
7 | (Portage version: 2.2.0_alpha43/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sci-mathematics/octave/files/octave-3.4.0-fftshift.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: octave-3.4.0-fftshift.patch |
16 | =================================================================== |
17 | Reference: http://hg.savannah.gnu.org/hgweb/octave/rev/189baf055143 |
18 | |
19 | diff -r e4dbfe3019b1 -r 189baf055143 scripts/signal/fftshift.m |
20 | --- a/scripts/signal/fftshift.m Sat Feb 19 18:21:58 2011 -0800 |
21 | +++ b/scripts/signal/fftshift.m Sun Feb 20 17:53:41 2011 -0800 |
22 | @@ -65,9 +65,9 @@ |
23 | retval = x(idx{:}); |
24 | else |
25 | if (isvector (x)) |
26 | - x = length (x); |
27 | - xx = ceil (x/2); |
28 | - retval = x([xx+1:x, 1:xx]); |
29 | + xl = length (x); |
30 | + xx = ceil (xl/2); |
31 | + retval = x([xx+1:xl, 1:xx]); |
32 | elseif (ismatrix (x)) |
33 | nd = ndims (x); |
34 | sz = size (x); |