[Numpy-discussion] Fortran order in recarray.

Alex Rogozhnikov alex.rogozhnikov at yandex.ru
Tue Feb 21 18:05:07 EST 2017


Hi, 

a question about numpy.recarray:
There is a parameter order in constructor https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.recarray.html <https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.recarray.html>, but it seems to have no effect:

import numpy
x = numpy.recarray(dtype=[('a', int), ('b', float)], shape=[1000], order='C')
y = numpy.recarray(dtype=[('a', int), ('b', float)], shape=[1000], order='F')
print numpy.array(x.ctypes.get_strides()) # [16]
print numpy.array(y.ctypes.get_strides()) # [16]

is this an intended behavior or bug?

Thanks,
Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20170222/86486667/attachment.html>


More information about the NumPy-Discussion mailing list