[julia-users] Re: quadgk with 2 arguments

2016-10-15 Thread Daniel O'Malley
I think what you want is g(s) = quadgk(t->f(s,t), 0, 1) On Saturday, October 15, 2016 at 6:37:58 PM UTC-6, digxx wrote: > > having a function of the form f(s,t) defined is it possible to somehow > tell quadgk to not evaluate until I supply a value for s while t should be > the integration

Re: [julia-users] Help please: how to expand dictionary into (local ?) variables with the same name as the keys and the corresponding values

2016-08-13 Thread Daniel O'Malley
The populateexpression function from MetaProgTools might be helpful. For example, you could do something like: julia> q = :(x + y + 3) :(x + y + 3) julia> eval(MetaProgTools.populateexpression(q, Dict("x"=>1, "y"=>2))) 6 On Saturday, August 13, 2016 at 3:07:38 AM UTC-6, Adrian Salceanu wrote:

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-03 Thread Daniel O'Malley
l/issues/48, though it's more likely > a problem with base Julia. > > On Tuesday, August 2, 2016 at 9:21:43 AM UTC-7, Daniel O'Malley wrote: >> >> OK, I tried again with the latest nightlies. Now Pkg.init("ssh:// >> g...@github.com/JuliaLang/METADATA.jl.git"

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-02 Thread Daniel O'Malley
issue might be fixed by some authentication > changes that Keno just merged a few minutes ago, there should be binaries > that include that fix built in a few hours. > > > On Monday, August 1, 2016 at 8:31:44 AM UTC-7, Daniel O'Malley wrote: >> >> I tried the Pkg.init

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Daniel O'Malley
round to avoid having to go through > command-line git. > > > On Monday, August 1, 2016 at 7:01:51 AM UTC-7, Daniel O'Malley wrote: >> >> Oh, sorry for the mixup. Doing a >> >> git clone ssh://g...@github.com:/JuliaLang/METADATA.jl.git >> >> from a shell succe

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Daniel O'Malley
tocol!("notaprotocol"), Pkg.init() seems to always try to clone via https. On Sunday, July 31, 2016 at 10:31:38 PM UTC-6, Tony Kelman wrote: > > No, I meant ssh:// or git:// url's for packages. > > > On Sunday, July 31, 2016 at 7:02:15 PM UTC-7, Daniel O'Malley wrote: >

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-07-31 Thread Daniel O'Malley
Tony, thanks for the quick response and all the work you put into julia. It would be great to have the package system working for Mac/Linux from behind a proxy without needing to rebuild anything. If you need someone to help test from behind a proxy, please let me know. I'd be happy to do it.

[julia-users] Pkg.init() problems on 0.5-rc0

2016-07-31 Thread Daniel O'Malley
I'm having trouble getting the package system initialized on 0.5-rc0. I am on a Mac and behind a proxy (with http_proxy and https_proxy set appropriately). When I do Pkg.init(), I get julia> Pkg.init() INFO: Initializing package repository /homedir/.julia/v0.5 INFO: Cloning METADATA from

[julia-users] Re: performance of two different array allocations

2016-04-21 Thread Daniel O'Malley
It looks like the type inference is failing in version1. If you do "@code_warntype version1(1000)", it shows that it is inferring the type of b as Any. On Thursday, April 21, 2016 at 11:32:27 AM UTC-6, Jeremy Kozdon wrote: > > In a class I'm teaching the students are using Julia and I couldn't

[julia-users] pmap and DataStructures.OrderedDict

2015-10-27 Thread Daniel O'Malley
I've recently encountered problems using pmap on a function that returns a DataStructures.OrderedDict. import DataStructures @everywhere function f(x) return DataStructures.OrderedDict(zip(["x"], [x])) end pmap(f, [1, 2]) If the above code is run in a "julia -p 2" environment, it produce a

[julia-users] Re: pmap and DataStructures.OrderedDict

2015-10-27 Thread Daniel O'Malley
can override the > Base.(de)serialize methods in your own code. > > Cheers, > Another Dan > > On Tuesday, 27 October 2015 05:02:40 UTC-3, Daniel O'Malley wrote: >> >> I've recently encountered problems using pmap on a function that returns >> a DataStru

[julia-users] Re: Generate polynomial expression on the fly

2015-05-20 Thread Daniel O'Malley
Julio, I think Base.Cartesian will be helpful for this (in particular, @nloops and @nexprs): http://julia.readthedocs.org/en/latest/devdocs/cartesian/ One issue that will come up is if you do something like @nexprs 2 j-(i_j = 1), the 2 in there can't be a variable. You can work around this