Re: [julia-users] Re: canonical binary representation for Array

2016-10-23 Thread Michele Zaffalon
Thank you, Tobi. michele On Sun, Oct 23, 2016 at 7:35 PM, 'Tobias Knopp' via julia-users < julia-users@googlegroups.com> wrote: > Dear Michele, > > yes the assumption is absolutely valid. Julia arrays are stored > column-major ordered in memory and this will not change. Since write does > only du

Re: [julia-users] Re: canonical binary representation for Array

2016-10-23 Thread 'Tobias Knopp' via julia-users
Dear Michele, yes the assumption is absolutely valid. Julia arrays are stored column-major ordered in memory and this will not change. Since write does only dump the memory on disk this is also not going to change. Cheers, Tobi Am Mittwoch, 19. Oktober 2016 09:03:49 UTC+2 schrieb Michele Zaff

Re: [julia-users] Re: canonical binary representation for Array

2016-10-21 Thread Páll Haraldsson
On Wednesday, October 19, 2016 at 7:03:49 AM UTC, Michele Zaffalon wrote: > > On Thursday, October 13, 2016 at 3:38:36 PM UTC+2, Steven G. Johnson wrote: >> >> write on a numeric array will output the raw bytes, i.e. Column-major >> data in the native byte order. >> >> >> Would it be a reasonab

Re: [julia-users] Re: canonical binary representation for Array

2016-10-19 Thread Michele Zaffalon
On Thursday, October 13, 2016 at 3:38:36 PM UTC+2, Steven G. Johnson wrote: > > write on a numeric array will output the raw bytes, i.e. Column-major data > in the native byte order. > > > Would it be a reasonable assumption that reshaping will not change the ordering in future Julia implementat

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I wish there was documentation for the file format aside from the MATLAB implementation which also just uses `reshape`. The only sure thing about the format is that the first byte of the file is the endianness. On Thu, Oct 13, 2016 at 3:38 PM, Steven G. Johnson wrote: > write on a numeric arr

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Steven G. Johnson
write on a numeric array will output the raw bytes, i.e. Column-major data in the native byte order. Matlab arrays are also column major, so reading a Matlab-produced binary format is probably straightforward, but you have to be careful of the byte order. Obviously, you'll have to read the doc

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I guess I was not clear enough: I cannot change the file format, so a Julia-specific solution is not going to work. On Thu, Oct 13, 2016 at 2:54 PM, FANG Colin wrote: > Are you trying to serialise Julia objects? Why don't you try json or > msgpack or so as your encoding? > > The default serializ