8000 np.array does not always return the order asked for · Issue #465 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
np.array does not always return the order asked for #465
Closed
@GaelVaroquaux

Description

@GaelVaroquaux

Is the behavior below expected? It looks like a bug to me:

>>> a = np.ones(10,)
>>> np.array(a, order='C', copy=False, ndmin=2).flags
  C_CONTIGUOUS : False
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False
>>> np.array(a, order='C', copy=True, ndmin=2).flags
  C_CONTIGUOUS : False
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False

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

      0