[julia-users] Loop comprehensions unable to do type inferences (in local scope)

2015-07-01 Thread colintbowers
Hi all, I'm on Julia v0.3.10 on Ubuntu 14.04 LTS. The following loop comprehension correctly infers the type: function g() x = randn(3, 2) inds = rand(1:3, 3, 4) y = [ mean(sub(x, 1:size(x, 1), k)[sub(inds, 1:size(inds, 1), j)]) for k = 1:size(x, 2), j = 1:size(inds, 2) ] printl

Re: [julia-users] access argument names of method?

2015-07-01 Thread Yichao Yu
On Wed, Jul 1, 2015 at 2:26 PM, Will Whitney wrote: > I know that `methods` can be used to retrieve the methods associated with a > function, and `method.sig` gives the types of its arguments, but how can the > names of the arguments be recovered? > > This must be possible, because printing the me

[julia-users] Re: Escher/Compose/Gadfly for heavy visualization

2015-07-01 Thread datnamer
Bokeh is working on some abstract rendering (downsampling) and webgl stuff. There is a Julia exposure...if someone can bring that up to speed with those features, it could work for this usecase. https://github.com/bokeh/bokeh https://github.com/bokeh/Bokeh.jl On Wednesday, July 1, 2015 at 4:36:

[julia-users] access argument names of method?

2015-07-01 Thread Will Whitney
I know that `methods` can be used to retrieve the methods associated with a function, and `method.sig` gives the types of its arguments, but how can the names of the arguments be recovered? This must be possible, because printing the method shows these names.

[julia-users] Re: Escher/Compose/Gadfly for heavy visualization

2015-07-01 Thread Steven G. Johnson
On Wednesday, July 1, 2015 at 1:56:06 PM UTC-4, Tom Breloff wrote: > > Has anyone used Escher/Compose/Gadfly for interactive > visualization/plotting with lots of data (million's of updates)? > For this kind of thing, you may want to do some kind of downsampling before plotting. It turns out

[julia-users] Re: Unicode underscore t invalid

2015-07-01 Thread Steven G. Johnson
On Wednesday, July 1, 2015 at 1:02:26 PM UTC-4, Tim Wheeler wrote: > > I ran into a weird issue where unicode u+0209c, `ₜ`, is not being treated > correctly. I am using Julia Version 0.3.10 on x86_64-linux-gnu. The other > unicode I have been using works fine. Am I doing something wrong? > Th

[julia-users] Re: What's the best way to implement multiple methods with similar arguments?

2015-07-01 Thread ks
Thank you everyone for help, highly appreciated! On Sunday, 28 June 2015 23:37:46 UTC+1, andrew cooke wrote: > > On Sunday, 28 June 2015 10:13:42 UTC-3, ks wrote: >> >> Hello Andrew, >> >> Thanks! >> >> the other answer is on the money, but, in this particular case, it seems >>> to me that you m

Re: [julia-users] Escher/Compose/Gadfly for heavy visualization

2015-07-01 Thread Shashi Gowda
For UIs with a million different things any browser is going to be unusable. You could render your Compose images to PNG and use it with Escher though - that should be pretty easy on the browser. But then your bottleneck will be getting Cairo to compile Compose graphics to PNG really fast. I am uns

[julia-users] Escher/Compose/Gadfly for heavy visualization

2015-07-01 Thread Tom Breloff
Has anyone used Escher/Compose/Gadfly for interactive visualization/plotting with lots of data (million's of updates)? Is there support for 3D visualization as part of this ecosystem? If not, is it planned? Any performance gotchas I need to worry about? Bandwidth issues? Missing functionali

Re: [julia-users] Unicode underscore t invalid

2015-07-01 Thread El suisse
I got the same error with the `\_s` in 0.3.9 2015-07-01 14:02 GMT-03:00 Tim Wheeler : > Hello Julia Users, > > I ran into a weird issue where unicode u+0209c, `ₜ`, is not being treated > correctly. I am using Julia Version 0.3.10 on x86_64-linux-gnu. The other > unicode I have been using works

[julia-users] Unicode underscore t invalid

2015-07-01 Thread Tim Wheeler
Hello Julia Users, I ran into a weird issue where unicode u+0209c, `ₜ`, is not being treated correctly. I am using Julia Version 0.3.10 on x86_64-linux-gnu. The other unicode I have been using works fine. Am I doing something wrong? `` julia> a₁ = 3 3 julia> ξ₀ = 3.0 3.0 julia> M₁₂ = 3.0 3.0

Re: [julia-users] Non-linear system of equations Julia

2015-07-01 Thread David Zentler-Munro
Apols, below meant your suggestion to start at x0 = [.2, .05]. And yep I still don't get convergence when starting there. Thanks for suggestion re variable transformation. On Wednesday, July 1, 2015 at 3:25:13 PM UTC+1, j verzani wrote: > > I'm not sure what starting points you are using, as the

Re: [julia-users] Non-linear system of equations Julia

2015-07-01 Thread j verzani
I'm not sure what starting points you are using, as there is a lot of "below" down there. The vpasolve solution is specifying a box to search in, unlike the nsolve method which just gets a starting point (matrix vs. vector). I looked at the mpmath.findroot functionality (where nsolve ends up) a

Re: [julia-users] Non-linear system of equations Julia

2015-07-01 Thread David Zentler-Munro
Hm, I've updated all packages and am still not getting convergence even when starting with the guess shown below (or my matlab answer). Any ideas? In the full code I will have 50 equations so it will not be practical to graph solution for the starting guess. Finally, should I submit a pull re

Re: [julia-users] Non-linear system of equations Julia

2015-07-01 Thread j verzani
No, that error is just the algorithm not converging. I would guess somewhere between your SymPy version and mine the `nsolve` routine changed a bit. However, with the answer given away, you can reverse engineer the convergence you want by starting nearby. Replace the `nsolve` call with this (s

[julia-users] Re: Juliacon 2015 videos?

2015-07-01 Thread Randy Zwitch
They were all recorded. Be patient, everyone is a volunteer :) On Wednesday, July 1, 2015 at 8:07:18 AM UTC-4, Hans-Peter wrote: > > Will there be videos of the 2015 Juliacon? Where... :-) > Thanks. >

[julia-users] Re: Juliacon 2015 videos?

2015-07-01 Thread Patrick Kofod Mogensen
+1 ! :) On Wednesday, July 1, 2015 at 2:07:18 PM UTC+2, Hans-Peter wrote: > > Will there be videos of the 2015 Juliacon? Where... :-) > Thanks. >

[julia-users] Re: Did something change with @test or round(Float64)?

2015-07-01 Thread Viral Shah
I believe that Andreas did this to make it consistent with the dense case. You want to do: julia> ones(10)'*sprand(10,10,0.1) 1x10 Array{Float64,2}: 0.871294 0.820477 0.969049 2.02607 … 0.74965 0.989042 0.0 0.991852 Both of these do not work now: julia> ones(10)*rand(10,10) ERROR: Dime

[julia-users] Juliacon 2015 videos?

2015-07-01 Thread Hans-Peter
Will there be videos of the 2015 Juliacon? Where... :-) Thanks.

[julia-users] Requests.jl post() does not return the same as curl when getting a token from Reddit

2015-07-01 Thread Patrick Kofod Mogensen
I'm trying to get a token to access Reddits API. I can get one perfectly fine with curl -X POST -d 'grant_type=password&username=[MYNAME]&password=[MYPASS]' --user 'CLIENTID:CLIENTSECRET' https://www.reddit.com/api/v1/access_token This gives me what I need. I kind of want to retrieve it dire

Re: [julia-users] IJulia not working on 0.3.10

2015-07-01 Thread Valentin Churavy
Zeromq stands for zero message queue (http://zeromq.org/) and is the protocol used by Jupyter/IPython backends to communicate with the Jupyter/IPython frontend. So if there is any problems with that you can not run the Julia kernel (aka the Julia backend). Also if you have problems like that it

Re: [julia-users] Non-linear system of equations Julia

2015-07-01 Thread David Zentler-Munro
Thanks loads J, this looks really helpful. You're right that the answer looks out: x1 and x2 are unemployment rates so should be between zero and one. The answer from matlab is (0.119, 0.055). Is there a way of putting bounds on variables in nsolve? Also when I tried the code you suggest I got