Skip to content

rfftn returns full sized fftn array instead of "half+1 sized" #5754

Closed
@egpbos

Description

@egpbos

My np.fft.rfftn returns a wrongly shaped array:

Enthought Canopy Python 2.7.6 | 64-bit | (default, Sep 15 2014, 17:43:19)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> grid = np.random.random((8,8,8))
>>> np.fft.rfftn(grid).shape
(8, 8, 8)

The shape should be (8, 8, 5) in this case. What could be causing this behavior? Numpy version is 1.8.1. I'm running on Mac OS X 10.9 (Mavericks).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions