[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lpack "other-endian" numbers?
- From: sessile <sessile@...>
- Date: Sun, 25 Apr 2004 20:53:49 -0400
Would anyone happen to have modified lhf's lpack
library to work with numbers that are in stored with
endianness opposite of the native system?
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/lpack.tar.gz
After several hours of self-inflicted frustration, I
finally realized that if I swap the order of bytes
for some floats in a binary file of interest, then
string.unpack() returns the values I'm expecting (well,
after considering that the file also stores said values
in radians rather than degrees... but that was it's own
mental adventure!)
A non-lpack based solution would be interesting too, if
available.
Thanks,
Dean.