Re: [julia-users] Julia package style / learning

2014-03-24 Thread Ivar Nesje
Just for the record. To convert from Array{Array{Float64, 1}, 1} to Array{Float64,2} you can use hcat(a...) Ivar kl. 15:50:36 UTC+1 mandag 24. mars 2014 skrev Ethan Anderes følgende: > > Yep, that was my situation: no linear algebra but a lot of grabbing > columns within for loops. Looking forw

Re: [julia-users] Julia package style / learning

2014-03-24 Thread Ethan Anderes
Yep, that was my situation: no linear algebra but a lot of grabbing columns within for loops. Looking forward to non-copying array slices:) Thanks, Ethan

Re: [julia-users] Julia package style / learning

2014-03-24 Thread John Myles White
I think comparisons between those two will depend a lot on context. If you need to use linear algebra functions, the Array{Array{Float64, 1}, 1} approach won’t work at all, so it’ll be infinitely slow. If you’re constantly just grabbing columns stored that way, it might be faster since you might

[julia-users] Julia package style / learning

2014-03-24 Thread Ethan Anderes
I'm definitely not an expert but I thought I would chime in on your "arrays of arrays vrs matrices" question. I recently developed a project where I started out using: Array{Array{Float64,1},1} as a container for a set of state vectors in an ODE flow. This seemed most natural but I figured onc

[julia-users] Julia package style / learning

2014-03-23 Thread Ryan Gehring
Hey all, I decided to start learning Julia over the weekend and am having fun so far. I implemented the wikipedia single layer perceptron algorithm as well as kendall's tau to see what it would be like to develop a medium sized package in the language. Link to the repo is below (the title just p