What is the difference between dtype=\'f\'
, dtype=\'f4\'
, dtype=\'>f4\'
, dtype\'
I just had the same question and tried to search the answer online.
'f' is the shorthand for 'float32'.
'f4' also means 'float32' because it has 4 bytes and each byte has 8 bits.
Similarly, 'f8' means 'float64' because 8*8 = 64.
For the difference between '>f4' and '
('>')Big Endian Byte Order: The most significant byte (the "big end") of the data is placed at the byte with the lowest address. The rest of the data is placed in order in the next three bytes in memory.
('<')Little Endian Byte Order: The least significant byte (the "little end") of the data is placed at the byte with the lowest address. The rest of the data is placed in order in the next three bytes in memory.
Please see this link for more detailed information: https://chortle.ccsu.edu/AssemblyTutorial/Chapter-15/ass15_3.html