bugGNU Octave - Bugs: bug #45207, fftshift and ifftshift not working...

 
 

bug #45207: fftshift and ifftshift not working on N-dimensional arrays

Submitter:  Ceral Paquet <octavebugs>
Submitted:  Thu 28 May 2015 11:57:56 PM UTC
 
Category:  Octave Function Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  mtmiller
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

( Jump to the original submission )

Tue 02 Jun 2015 04:50:29 PM UTC, comment #6: 

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Project Administrator
Sat 30 May 2015 07:58:17 PM UTC, comment #5: 

Fixed on the stable branch. The fix for this regression will be included in a 4.0.1 bug fix release.

http://hg.savannah.gnu.org/hgweb/octave/rev/abbe33bf0c74

Mike Miller <mtmiller>
Project Administrator
Fri 29 May 2015 01:11:17 AM UTC, comment #4: 

Michael: it does work, but the return value is not quite the same result. Specifying the dim argument indicates that the input will be shifted only along that dimension. The default is to shift along all dimensions.

Mike Miller <mtmiller>
Project Administrator
Fri 29 May 2015 12:11:59 AM UTC, comment #3: 

As a workaround,
data=fftshift(fft2(data),3);

appears to work.
Mike: Is this correct?

Michael Godfrey <godfrey>
Project Member
Fri 29 May 2015 12:08:38 AM UTC, comment #2: 

Confirmed, thanks for reporting! I think the 4.0 release process has already begun, this is an easy fix but will have to wait until a future 4.0.1 bugfix release. This is due to the redefinition of the ismatrix function in the 4.0 release.

For the other devs: I have a local fix for this already, just holding off pushing to stable because I know jwe has already started making the release but I don't see the 4.0.0 release tag on the stable branch yet so I don't want to mess that up.

Mike Miller <mtmiller>
Project Administrator
Fri 29 May 2015 12:02:33 AM UTC, comment #1: 

Just to clarify, fftshift seems to allow only 1D and 2D arrays now. MATLAB and Octave3.8 accept any no. of dims.

Ceral Paquet <octavebugs>
Thu 28 May 2015 11:57:56 PM UTC, original submission:  

I just compiled 4rc4 using the MXE package. I'm seeing this error with fftshift:

data=randn(10,10,10);
data=fftshift(fft2(data));

error: fftshift: expecting vector or matrix argument
error: called from
    fftshift at line 80 column 7

Could well be that my self-compile was bad. I don't know how to run the make tests with MXE tho.

Ceral Paquet <octavebugs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by octavebugs (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-02 jwe Release4.0.0-rc4 4.0.0
    2015-05-30 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-05-29 mtmiller CategoryNone Octave Function
        Severity3 - Normal 4 - Important
        Item GroupNone Regression
        StatusNone Confirmed
        Assigned toNone mtmiller
        Operating SystemGNU/Linux Any
        Summaryfftshift is confused fftshift and ifftshift not working on N-dimensional arrays

    Back to the top


    Powered by Savane 3.9