[julia-users] Question about parallel computing

2015-09-18 Thread antony schutz
Hi Everybody, from some weeks I am trying to do Big data calculus using all the parallel tools. Is somebody have examples of code ? The documentation of Julia is not enough complete for me. I found some tutorials, and also for me it is not enough clear. How to do efficient parallel

[julia-users] Re: sqrt(abs2(x)) Vs abs(x)

2015-05-19 Thread antony schutz
16:51:48 UTC+2, antony schutz a écrit : Hello, I just discover abs2() function :v And I have to say that i'm really surprised that: sqrt(abs2( x )) is quicker than abs( x ) For a Matrix of size 512*512 and then a vector of size 512 1 realizations, the mean results

[julia-users] sqrt(abs2(x)) Vs abs(x)

2015-05-18 Thread antony schutz
Hello, I just discover abs2() function :v And I have to say that i'm really surprised that: sqrt(abs2( x )) is quicker than abs( x ) For a Matrix of size 512*512 and then a vector of size 512 1 realizations, the mean results are (on a macbook): abs(x[:,:]) 0.0073665214096

[julia-users] Re: question about module, using/import

2015-03-13 Thread antony schutz
: Loading help data...* *julia **mymainfct(2,2,true)* *ERROR: imshow not defined* * in mymainfct at /Users/antonyschutz/.julia/v0.3/MyModule/src/mymain.jl:7* Le jeudi 12 mars 2015 16:07:22 UTC+1, antony schutz a écrit : Hello I'm trying to generalize an algorithm for alpha user

[julia-users] question about module, using/import

2015-03-12 Thread antony schutz
Hello I'm trying to generalize an algorithm for alpha user. The algorithm can draw plot but I dont want this to be mandatory, so in the module i don't import the library (for example, i dont call using PyPlot) I want the plot drawing to be an option and has to be done by the user.

[julia-users] Re: Repmat speed

2015-03-02 Thread antony schutz
is slower than repmat , for example: *tic(); repmat([1:10],1000,1000); toc()* elapsed time: 0.035878247 seconds *tic(); **repeat([1:10],outer=[1000,1000]);** toc()* elapsed time: 1.176858309 seconds Thanks Le vendredi 27 février 2015 15:11:10 UTC+1, antony schutz a écrit : Hello, I

[julia-users] Repmat speed

2015-02-27 Thread antony schutz
Hello, I have a question about the best way to implement a grid similar to a mesh grid: My first intuition was to do the following: nx = 256 nb = 195 kx = [-nx/2:-1+nx/2] tic() k1 = repmat(kx,1,nx) k1v = vec(k1)'#/nx k1m = repmat(k1v,nb,1) toc() # 0.0256 sec Then I tried in one

[julia-users] repeat speed

2015-02-27 Thread antony schutz
Hello I'm testing the best way to do a grid like, I tried the 2 following methods: tic() k1 = repmat(kx,1,nx) k1v = vec(k1)' k1m = repmat(k1v,nb,1) toc() # 0.0256 tic() ka = repeat(kx,outer=[nx,nb])' toc() # 0.477 I dont understand why the second way with the one line repeat is 20 times