What is the difference between dtype='f' , dtype='f4' , dtype='>f4' , dtype'<f4' ? The syntax is not explained in docs on types (except that 'f' is a shorthand for 'float32'); it is widely used on the records page, but the value > / < also remains inexplicable there.
After some experimentation, I found out that
In [13]: a = np.array([1.0], dtype='f') In [15]: print(a.dtype) float32
and
In [16]: a = np.array([1.0], dtype='<f4') In [17]: print(a.dtype) float32
but
In [18]: a = np.array([1.0], dtype='>f4') In [19]: print(a.dtype) >f4
This makes me think that they are not equivalent, which may be an explanation of the problems that the external library is encountering.
source share