Re: [julia-users] Error: zeros(UTF8String, 5)

2015-01-16 Thread Milan Bouchet-Valat
Le vendredi 16 janvier 2015 à 14:29 +0800, K leo a écrit : julia A=zeros(UTF8String, 5) ERROR: `zero` has no method matching zero(::Type{UTF8String}) in zeros at array.jl:169 This used to work, but with the new update it doesn't. Any idea? Doesn't work on 0.3.4 either. But what would you

Re: [julia-users] Re: inv() return incorrect result

2015-01-16 Thread ShaoWei Teo
Ah I see, that helps. Thanks ppl =) On Friday, January 16, 2015 at 11:56:39 AM UTC+8, Andreas Noack wrote: Rounding can make a numerically singular matrix regular so that is probably what we are seeing here. You initial covariance matrix is actually singular, but when copied from the mail

Re: [julia-users] Error: zeros(UTF8String, 5)

2015-01-16 Thread Ivar Nesje
I think there might have been a package that defined something like this once. Do you get this error from a package?

[julia-users] Re: should I use types

2015-01-16 Thread Simon Danisch
@Erik Schnetter Would you suggest: type Packet{T} ID:::Vector{T} position::Vector{Vector3{T}} direction::Vector{Vector3{T}} energy::Vector{T} time:::Vector{T} end instead of Vector{Packet} ? Is this, because Packet is to big for the registers, but Vector3

[julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-16 Thread K leo
I want the array to be initialized with every element being . Can't say about 0.3.4, but it definitely worked under 0.3.3. Are there any other easy ways for what I want? On Friday, January 16, 2015, Milan Bouchet-Valat nalimi...@club.fr wrote: Le vendredi 16 janvier 2015 à 14:29 +0800, K leo

[julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-16 Thread Daniel Høegh
You can do it with an array comprehension like: [ for i=1:5]

[julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-16 Thread Steven G. Johnson
On Friday, January 16, 2015 at 6:59:19 AM UTC-5, K leo wrote: I want the array to be initialized with every element being . Can't say about 0.3.4, but it definitely worked under 0.3.3. Are there any other easy ways for what I want? If anything, this should be ones(UTF8String, n).

Re: [julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-16 Thread Milan Bouchet-Valat
Le vendredi 16 janvier 2015 à 19:59 +0800, K leo a écrit : I want the array to be initialized with every element being . Can't say about 0.3.4, but it definitely worked under 0.3.3. Are there any other easy ways for what I want? As Ivar said, this was probably defined in some package, not in

Re: [julia-users] Where Clauses

2015-01-16 Thread Kevin Squire
Hello, Shea, I don't think there are any plans for this, specifically. It could, however, mostly be done now with macros. (The biggest missing part is that `where` can't be paired with `end` right now, so you'd still need a `begin` after the where.) As an aside, if you haven't seen it yet, you

Re: [julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-16 Thread Kevin Squire
I believe DataFrames.jl used to define this, at least. Cheers, Kevin On Fri, Jan 16, 2015 at 5:54 AM, Milan Bouchet-Valat nalimi...@club.fr wrote: Le vendredi 16 janvier 2015 à 19:59 +0800, K leo a écrit : I want the array to be initialized with every element being . Can't say about

[julia-users] Re: Julia cannot compute factorial(21) while Octave can

2015-01-16 Thread Frank Kampas
factorial(BigInt(21)) works On Monday, January 12, 2015 at 10:10:06 PM UTC-5, Carlos Baptista wrote: I understand that factorial(21) is quite a large number and therefore an OverflowError is perfectly understandable. However, with Octave I can go up to factorial(170) (if I go higher I

[julia-users] Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread Simon Danisch
Thought this could be interesting to some: http://torch.ch/ Would have been cool if they had used Julia instead of LUAjit =) And OpenCL, instead of going for the Vendor lock -.- Nevertheless, it's an interesting library! Best, Simon

Re: [julia-users] Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread René Donner
Hi Simon, just in case you are looking for a Julia-based deep learning framework, there is Mocha.jl (https://github.com/pluskid/Mocha.jl), which is very well designed and documented, and a pleasure to use. cheers, rene Am 16.01.2015 um 19:27 schrieb Simon Danisch sdani...@gmail.com:

Re: [julia-users] Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread Kevin Squire
I haven't used it in a long while, but torch has been around for a lot longer than Julia--even the version which uses Lua--so Julia wasn't really an option for it. At any rate, Julia is slowly gaining similar functionality. Cheers! Kevin On Friday, January 16, 2015, Simon Danisch

Re: [julia-users] Re: Julia cannot compute factorial(21) while Octave can

2015-01-16 Thread Carlos Baptista
Thanks Frank :) , similar answers were already given On 16/01/2015, Frank Kampas fkam...@gmail.com wrote: factorial(BigInt(21)) works On Monday, January 12, 2015 at 10:10:06 PM UTC-5, Carlos Baptista wrote: I understand that factorial(21) is quite a large number and therefore an

Re: [julia-users] Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread Isaiah Norton
Torch has been around in various incarnations since ~2002, and the LuaJIT version (Torch7) was released in 2011. I think the big news here is the release of a set of Facebook-originated libraries deep learning libraries:

Re: [julia-users] ANN node-julia 1.0.0

2015-01-16 Thread Stefan Karpinski
This is super cool. I wonder if it wouldn't be possible allow Julia to operate on JavaScript typed arrays in-place? On Fri, Jan 16, 2015 at 4:20 PM, Kevin Squire kevin.squ...@gmail.com wrote: Hi Jeff, can you share a link? Cheers, Kevin On Fri, Jan 16, 2015 at 1:06 PM, Jeff Waller

Re: [julia-users] ANN node-julia 1.0.0

2015-01-16 Thread Jeff Waller
On Friday, January 16, 2015 at 4:26:30 PM UTC-5, Stefan Karpinski wrote: This is super cool. I wonder if it wouldn't be possible allow Julia to operate on JavaScript typed arrays in-place? Hmm, maybe! With some caveats first the good news. Here's where the Javascript array buffer is

Re: [julia-users] Question about the allotted hours of JuliaBox

2015-01-16 Thread Stefan Karpinski
Could you email the julia-box mailing list https://groups.google.com/forum/#!forum/julia-box with this question? On Fri, Jan 16, 2015 at 2:56 AM, Xiaowei Zhang xiaowei.w.zh...@gmail.com wrote: Hi all, I'm preparing a course on Monte Carlo simulation and would like try Julia as the teaching

[julia-users] Re: Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread Simon Danisch
Yes, that's a good link! And they say they're the fastest around, so I guess it's worth looking at their code and get some inspirations from it ;) Am Freitag, 16. Januar 2015 19:27:56 UTC+1 schrieb Simon Danisch: Thought this could be interesting to some: http://torch.ch/ Would have been

[julia-users] Creating a type to store parameters in, and constructors with keyword arguments

2015-01-16 Thread Andrew
Suppose I have a model which contains many parameters. I'd like to store my parameters in a type, for example type Parameters sigma::Real xi::Real eta::Real beta::Real rho::Real agrid::FloatRange end and then I need to assign some values to my parameters. The natural way I see to do

Re: [julia-users] Execute a function with a timeout / time limit?

2015-01-16 Thread Isaiah Norton
Have you tried using tasks with start_timer and interrupt? On Tue, Jan 13, 2015 at 7:42 AM, Robert Feldt robert.fe...@gmail.com wrote: Is there any way to run a function a maximum time without adding additional procs? I now use an implementation based on this StackOverflow answer:

[julia-users] Re: Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread Ted Fujimoto
LeCun programs using Torch/Lua so it was expected. On Friday, January 16, 2015 at 1:27:56 PM UTC-5, Simon Danisch wrote: Thought this could be interesting to some: http://torch.ch/ Would have been cool if they had used Julia instead of LUAjit =) And OpenCL, instead of going for the Vendor