What do the > < signs in numpy dtype mean?

前端 未结 3 1322
野的像风
野的像风 2021-01-01 21:55

What is the difference between dtype=\'f\', dtype=\'f4\', dtype=\'>f4\', dtype\'? The syntax is not explained

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 22:28

    Endian-ness.

    < = little-endian (LSB first)

    > = big-endian (MSB first)

    https://docs.scipy.org/doc/numpy/reference/generated/numpy.dtype.byteorder.html

提交回复
热议问题