Re: [julia-users] Ubuntu, do I have to install libfftw to use conv?

2016-04-07 Thread Gerson J. Ferreira
The generic binary did the trick, thanks! The PPA seems fine to me on my Ubuntu 15.10. Just got an update to Julia 0.4.5 today. The problem might be that in the classroom the computers still have Ubuntu 12.10, or that libfftw is not installed. So I'm guessing that the generic library comes wi

Re: [julia-users] Re: getting a warning when overloading +(a,b)

2016-04-02 Thread Gerson J. Ferreira
Ok. I'm reading again the Modules section of the manual. Now I understand better the difference between import and using. Thanks. On Apr 2, 2016 1:27 PM, "Kristoffer Carlsson" wrote: > Because you want to overload a function from Base.

Re: [julia-users] Ubuntu, do I have to install libfftw to use conv?

2016-04-02 Thread Gerson J. Ferreira
m. I don't want to do that. -- Gerson J. Ferreira Prof. Dr. @ InFis - UFU -- Nanosciences group <http://www.infis.ufu.br/gnano> Institute of Physics Federal University of Uberlândia, Brazil -- On Sa

[julia-users] Ubuntu, do I have to install libfftw to use conv?

2016-04-02 Thread Gerson J. Ferreira
In my personal computer I have many things installed and I was using the convolution command (conv and conv2) with no problems. But yesterday I was teaching and I have no sudo access on the class room. The students were trying to use conv and getting an error saying that FFTW was missing. I'l

[julia-users] Re: getting a warning when overloading +(a,b)

2016-04-02 Thread Gerson J. Ferreira
(a::Any, b::numerr) = numerr(a + b.num, b.err); > +(a::numerr, b::Any) = numerr(a.num + b, a.err); > > x = numerr(10, 1); > y = numerr(20, 2); > > println(x+y) > println(2+x) > println(y+2) > ``` > > > > On Friday, April 1, 2016 at 4:51:53 PM UTC+2, Gerson J.

[julia-users] getting a warning when overloading +(a,b)

2016-04-01 Thread Gerson J. Ferreira
I'm trying to overload simple math operators to try a code for error propagation, but I'm getting a warning. Here's a short code that already shows the warning message: type numerr num err end +(a::numerr, b::numerr) = numerr(a.num + b.num, sqrt(a.err^2 + b.err^2)); +(a::Any, b::numerr)