Skip to content

Commit

Permalink
Support 'a' and 'k'
Browse files Browse the repository at this point in the history
  • Loading branch information
okuta committed Jun 19, 2018
1 parent 1faceab commit 50e9150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cupy/core/core.pyx
Expand Up @@ -2121,7 +2121,7 @@ cpdef ndarray array(obj, dtype=None, bint copy=True, str order='K',
a = a.view()
a.shape = (1,) * (ndmin - ndim) + a.shape
else:
if order == 'K' or order == 'A':
if order is not None and len(order) == 1 and order in 'KAka':
if isinstance(obj, numpy.ndarray) and obj.flags.f_contiguous:
order = 'F'
else:
Expand Down

0 comments on commit 50e9150

Please sign in to comment.