I need to write a 4 dimensional a array to file and use

write(f, a).

What is the canonical binary representation of a 
<http://docs.julialang.org/en/release-0.5/stdlib/io-network/#Base.write>? 
It looks like the the line above is equivalent to

write(f, reshape(a, prod(size(a))))

Is the canonical binary representation going to be machine and OS 
independent (except for the endianness)? What about reshape?

I am porting code from MATLAB and the specs for the file format are defined 
by the MATLAB code implementation.

michele


Reply via email to