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

 
 

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

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Thu 28 May 2015 11:57:56 PM UTC  
 
Category: Octave FunctionSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: Mike Miller <mtmiller>
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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 AdministratorIn charge of this item.
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 AdministratorIn charge of this item.
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 AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Jun 2015 04:50:29 PM UTCjweRelease4.0.0-rc4=>4.0.0
    Sat 30 May 2015 07:58:17 PM UTCmtmillerStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 29 May 2015 12:08:38 AM UTCmtmillerCategoryNone=>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.1-cleanup1