[julia-users] Release memory GC

2016-07-07 Thread Thuener Silva
I have a code that uses a lot of memory and I'm trying to release some of it but without success. I made up an examples to illustrate the problem: function memuse() return string(round(Int,parse(Int,readall(`ps -p 29563 -o rss=`))/1024),"M") end function test() for i = 1:2

[julia-users] Re: Altering matrix inside function

2015-10-22 Thread Thuener Silva
t;> >> To get a feel for what is involved, have a look at this: >> >> https://github.com/JuliaLang/julia/blob/master/base/array.jl >> >> That file has the definitions of the functions that you're trying to >> mimic. As you'll see, they end up using "ccall

[julia-users] Altering matrix inside function

2015-10-21 Thread Thuener Silva
1.0 1.0 1.0 The best way is to do "x = deletecolumns(x,1)" ? I want to make something more like delete!(x,1). Thanks in advance, Thuener Silva

Re: [julia-users] Re: Type array bug?

2015-10-21 Thread Thuener Silva
It worked, thanks. On Friday, October 16, 2015 at 6:38:50 PM UTC-3, Yichao Yu wrote: > > On Fri, Oct 16, 2015 at 5:35 PM, Thuener Silva <thu...@gmail.com > > wrote: > > I'm having this kind of problem in different situations. Another > example: > > > > jul

Re: [julia-users] Re: Type array bug?

2015-10-16 Thread Thuener Silva
*I'm having this kind of problem in different situations. Another example:* julia> groups_1 = [Array((Int),0) for i=1:K] 5-element Array{Array{Int64,1},1}: [] [] [] [] [] julia> groups_1[size(groups_1[i],1) .!= 0 for i=1:size(groups_1,1)] ERROR: `Array{T,N}` has no method matching

[julia-users] Type array bug?

2015-10-16 Thread Thuener Silva
0-element Array{Array{Int64,1},1}: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] Grats, Thuener Silva

[julia-users] Adjacent list

2015-10-10 Thread Thuener Silva
What is the best way to represent adjacent lists in Julia? By adjacent list I a mean dinamic array of dinamic arrays. Grats, Thuener Silva

Re: [julia-users] Re: Doubts pass-by-sharing

2015-10-09 Thread Thuener Silva
You are right, this is a scope problem. Thanks.

[julia-users] Doubts pass-by-sharing

2015-10-09 Thread Thuener Silva
an to to change the function when I change the value of a. Grats, Thuener Silva