alanedelman / 18.337_2016

24 stars 15 forks source link

Pset 2 #4

Open kameeko opened 8 years ago

kameeko commented 8 years ago

In Pset 2, after I define SymArrow2, and overload the size and getindex methods to handle SymArrow2 types, I test the * method with a random matrix and vector of complex numbers. In version 0.4.6, I get the message:

LoadError: MethodError: `A_mul_B!` has no method matching A_mul_B!(::Array{Complex{Float64},1}, ::SymArrow2{Complex{Float64}}, ::Array{Complex{Float64},1})

but in version 0.5.0-rc4 (accessed via JuliaBox), it runs without complaint. Am I defining SymArrow2 or the overloaded methods incorrectly, or are the fall-back methods that we're intended to use different between the two versions?

dpsanders commented 8 years ago

Hi,

Apparently this indeed works only on 0.5.

Best David

On 20 Sep 2016 16:57, "kameeko" notifications@github.com wrote:

In Pset 2, after I define SymArrow2, and overload the size and getindex methods to handle SymArrow2 types, I test the * method with a random matrix and vector of complex numbers. In version 0.4.6, I get the message:

LoadError: MethodError: A_mul_B! has no method matching A_mul_B!(::Array{Complex{Float64},1}, ::SymArrow2{Complex{Float64}}, ::Array{Complex{Float64},1})

but in version 0.5.0-rc4 (accessed via JuliaBox), it runs without complaint. Am I defining SymArrow2 or the overloaded methods incorrectly, or are the fall-back methods that we're intended to use different between the two versions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alanedelman/18.337_2016/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AALtTsy_pbJqRuryWCwoh-L6_PCdrE4kks5qsEjAgaJpZM4KCIl7 .

kameeko commented 8 years ago

I installed Julia using the Ubuntu-specific installation instructions, so I have v0.4.6 on my computer. Is there a way to have multiple versions of Julia on the same computer, so that I can switch between different versions without being online (using JuliaBox)?

dpsanders commented 8 years ago

Yes you can have multiple versions: you can use the generic Linux binary and give it a different name, e.g. julia5.

kameeko commented 8 years ago

Woah, and Jupyter knows about both even though they are in completely different places. This is sweet.

dpsanders commented 8 years ago

Yes ;)

alanedelman commented 8 years ago

i also was kind of surprised how well that works

On Tue, Sep 20, 2016 at 6:48 PM, David P. Sanders notifications@github.com wrote:

Yes ;)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alanedelman/18.337_2016/issues/4#issuecomment-248459118, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0pQt8BJB5dJ-By9cUqGzArTAoe9hEgks5qsGLXgaJpZM4KCIl7 .