So, I tried this, but the data are still not stored as the Matlab code 
(first post) would do it...

function write_data(X, no_dims, theta, perplexity)
  n, d = size(X)
  h = open("data.dat","w+")
  A = write(h, hton(n), hton(d), hton(theta), hton(perplexity), 
hton(no_dims))
  # X=X'
  for i in eachindex(X)
      write(h,hton(X[i]))
  end
    close(h)
end

The output is "Read the 0 x -402456576 data matrix successfully!" - which, 
obviously doesn't make sense...

D

On Sunday, September 11, 2016 at 8:10:22 PM UTC+1, Dennis Eckmeier wrote:
>
> Update: Currently trying hton() to write in big endian, but apparently it 
> doesn't have a method for arrays?
>

Reply via email to