Skip to content

fliplr documentation incorrectly states 2-d *not* required #3332

@mikofski

Description

@mikofski

fliplr documentation incorrectly states 2-d not required, but that is not true. I think it is a typo, since fliplr was probably copied from flipud which really doesn't require a 2-d array.

>>> import numpy as np
>>> a = np.array([1,2,3,4])
>>> np.fliplr(a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\numpy\lib\twodim_base.py", line 61, in fliplr
    raise ValueError("Input must be >= 2-d.")
ValueError: Input must be >= 2-d.

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