Re: [julia-users] All packages for numerical math

2014-04-25 Thread Tobias Knopp
One could also remove all types and only rely on duck typing. Then one will want to initialize r with something like zero(zero(x[1])+zero(y[1])). And the same in the if statement. This function would run at the same. I still like to specify types as this allows me to restrict input parameters.

Re: [julia-users] All packages for numerical math

2014-04-25 Thread Jason Merrill
On Thursday, April 24, 2014 11:57:33 PM UTC-7, Tomas Lycken wrote: And as soon as you start working with complex analysis, I'm not entirely sure the trapezoidal rule is valid at all. It might just be because the article author was lazy, but the Wikipedia article only talks about integrals

[julia-users] how today to create horizontal string vector

2014-04-25 Thread paul analyst
in old Julia version works this code: stringvector=[string1,string2,string3]'; today : ERROR: no method conj(ASCIIString) in ctranspose at array.jl:1283 how today to create horizontal string vector ? Paul

Re: [julia-users] how today to create horizontal string vector

2014-04-25 Thread Andreas Noack Jensen
You can use the transpose .' instead of the conjugate transpose, i.e. julia [Andreas,Noack,Jensen].' 1x3 Array{ASCIIString,2}: Andreas Noack Jensen or use white space julia [Andreas Noack Jensen] 1x3 Array{ASCIIString,2}: Andreas Noack Jensen 2014-04-25 10:47 GMT+02:00 paul analyst

Re: [julia-users] how today to create horizontal string vector

2014-04-25 Thread paul analyst
thx Andreas, I see the new, small dot:) Paul W dniu piątek, 25 kwietnia 2014 10:50:44 UTC+2 użytkownik Andreas Noack Jensen napisał: You can use the transpose .' instead of the conjugate transpose, i.e. julia [Andreas,Noack,Jensen].' 1x3 Array{ASCIIString,2}: Andreas Noack Jensen

Re: [julia-users] how today to create horizontal string vector

2014-04-25 Thread Ivar Nesje
See also https://github.com/JuliaLang/julia/issues/6395 kl. 10:53:50 UTC+2 fredag 25. april 2014 skrev paul analyst følgende: thx Andreas, I see the new, small dot:) Paul W dniu piątek, 25 kwietnia 2014 10:50:44 UTC+2 użytkownik Andreas Noack Jensen napisał: You can use the transpose

Re: [julia-users] help with combined for statement

2014-04-25 Thread Tim Holy
Nothing simple-to-use is yet in Base (but see https://github.com/JuliaLang/julia/pull/6437), but there are several options (roughly in the order easier-but-slower to harder-but-faster): - The Iterators package - The Grid package's Counter type - The Cartesian package (if you're running 0.3, an

Re: [julia-users] Re: Expand array in all dimensions

2014-04-25 Thread Tim Holy
On Friday, April 25, 2014 01:12:15 AM Gunnar Farnebäck wrote: The padarray function in the Images package can solve your problem or give you inspiration if you want to do it differently. ...a very nice function indeed, which I swiped from Gunnar! (Thanks!) --Tim Den fredagen den 25:e april

Re: [julia-users] All packages for numerical math

2014-04-25 Thread Hans W Borchers
Exactly. That's what I do quite often with complex line integrals, where one vector is real: a [0,1]-parametrization of the curve, and the other complex: the value of a complex function on the curve. And indeed, this works very well for closed circle integrals in the complex plane, for example

[julia-users] Initializing an array of dictionaries. What is the best way to do it?

2014-04-25 Thread joanenric barcelo
Hello! I want to create a multidimensional array of dicts, say 4x4. My first guess was to use the function fill() julia my_array_of_dicts = fill(Dict(), 4, 4) I want to include a new element to one of the dicts, say in position 2,2. So julia my_array_of_dicts[2,2][somekey] = [somevalue] but

[julia-users] Re: Initializing an array of dictionaries. What is the best way to do it?

2014-04-25 Thread Ivar Nesje
You can use a list comprehension, so that you actually create 16 dictionaries. my_array_of_dicts = [Dict() for i = 1:4 , y = 1:4] Ivar kl. 12:24:22 UTC+2 fredag 25. april 2014 skrev joanenric barcelo følgende: Hello! I want to create a multidimensional array of dicts, say 4x4. My first

[julia-users] Re: Initializing an array of dictionaries. What is the best way to do it?

2014-04-25 Thread Ivar Nesje
Thinking more about this. Would it be more useful for fill() and fill!() to take copies of mutable objects? I can't really see a use case for fill that fills an array with pointers to the same object. Ivar kl. 12:29:20 UTC+2 fredag 25. april 2014 skrev Ivar Nesje følgende: You can use a

[julia-users] Re: Initializing an array of dictionaries. What is the best way to do it?

2014-04-25 Thread Tomas Lycken
I think so, yeah. If you actually need to fill an array with pointers to the same object, `repeat` or something along those lines is a more descriptive name. // T On Friday, April 25, 2014 1:08:14 PM UTC+2, Ivar Nesje wrote: Thinking more about this. Would it be more useful for fill() and

[julia-users] Re: Run Julia job on several workers on a cluster

2014-04-25 Thread Isaac
Hi All, I also tried to submit the julia jobs on the cluster but failed. I wrote the job script as follows: f *or((i = 1; i 10; i++))doecho # cd /data#PBS -l walltime=00:10:00module add gcc/4.7.2module add julia/0.2.0module load juliainclude(test.jl)test($i)test1job$i;qsub

[julia-users] How to programmatically close a Winston figure from an interactive Julia session

2014-04-25 Thread Peter Simon
I've noticed that Winston is getting nicer and nicer and works very well in Windows now. Sorry for the elementary question, but couldn't find this in the docs or mailing lists: Is there a way to close a Winston plot window from a Julia script? So far the only way I've found to do this is to

[julia-users] How close to be usefull in iOS?

2014-04-25 Thread mamcx
Hi, I wonder how ready is julia to be used in iOS? For logic only? For call obj-c/coccoa code?

[julia-users] Re: How close to be usefull in iOS?

2014-04-25 Thread Tony Kelman
First hurdle is getting Julia to run on an ARM processor, see https://github.com/JuliaLang/julia/issues/3134 If Objective-C code has the same ABI as conventional C, then I imagine Julia's ccall's should work the same (http://nbviewer.ipython.org/gist/evanmiller/9022903 looks relevant?). Don't

Re: [julia-users] How to programmatically close a Winston figure from an interactive Julia session

2014-04-25 Thread Mike Nolta
There wasn't, but i've added a `closefig` function. -Mike On Fri, Apr 25, 2014 at 11:05 AM, Peter Simon psimon0...@gmail.com wrote: I've noticed that Winston is getting nicer and nicer and works very well in Windows now. Sorry for the elementary question, but couldn't find this in the docs

[julia-users] Re: How close to be usefull in iOS?

2014-04-25 Thread Steven G. Johnson
It's also possible to run an IJulia notebook from a server and access it on iOS, either using a web service or by SSH tunneling. On Friday, April 25, 2014 2:12:26 PM UTC-4, ma...@elmalabarista.com wrote: I wonder how ready is julia to be used in iOS? For logic only? For call obj-c/coccoa

[julia-users] Re: error message doesn't report correct line number

2014-04-25 Thread Steven G. Johnson
See https://github.com/JuliaLang/julia/issues/6179

[julia-users] Re: idiomatic way to generate variable length list or tuple?

2014-04-25 Thread andrew cooke
and by list i mean array. or set. i just want to be able to iterate over it later. efficiency is neither here nor there. On Friday, 25 April 2014 20:07:50 UTC-3, andrew cooke wrote: is there some simple, compact way way to add an element or list to a list? say i want a list to be [1,2]

[julia-users] Re: idiomatic way to generate variable length list or tuple?

2014-04-25 Thread andrew cooke
really i'm asking if there's an idiomatic way to do the kind of thing you do with linked lists (usually, in functional languages) in julia... On Friday, 25 April 2014 20:34:43 UTC-3, andrew cooke wrote: oh, cute. no, it's not what i was looking for, unfortunately. i just used 1, 2 and 3

[julia-users] different eigen value ordering from eigs

2014-04-25 Thread Ethan Anderes
Is there a reason why the following two calls to eigs order the eigenvalues differently? The first `mat1` is numerically not symmetric but I would have still guessed the ordering of the magnitude of the eigenvalues would be the same as those for `mat2`? julia A = rand(4,4); julia mat1 = A.'

[julia-users] Re: idiomatic way to generate variable length list or tuple?

2014-04-25 Thread Simon Kornblith
You can do: [1, 2, (flag ? 3 : [])] or: tuple(1, 2, (flag ? (3,) : ())...) On Friday, April 25, 2014 7:35:49 PM UTC-4, andrew cooke wrote: really i'm asking if there's an idiomatic way to do the kind of thing you do with linked lists (usually, in functional languages) in julia... On

[julia-users] Re: idiomatic way to generate variable length list or tuple?

2014-04-25 Thread andrew cooke
huh. i do not understand why that works and what i posted earlier did not. anyway, thanks. andrew On Friday, 25 April 2014 21:02:41 UTC-3, Simon Kornblith wrote: You can do: [1, 2, (flag ? 3 : [])] or: tuple(1, 2, (flag ? (3,) : ())...) On Friday, April 25, 2014 7:35:49 PM UTC-4,

[julia-users] Re: idiomatic way to generate variable length list or tuple?

2014-04-25 Thread andrew cooke
oh it's the spaces are column vector thing. On Friday, 25 April 2014 21:26:31 UTC-3, andrew cooke wrote: huh. i do not understand why that works and what i posted earlier did not. anyway, thanks. andrew On Friday, 25 April 2014 21:02:41 UTC-3, Simon Kornblith wrote: You can do: [1,

[julia-users] Winston with GTK+3 on Mac OS X 10.9.2

2014-04-25 Thread Roger Herikstad
Hi, What is the recommended GTK+ to use with Winston? I installed GTK+3 using the following Homebrew recipe: require 'formula' class Gtkx3Quartz Formula homepage 'http://gtk.org/' url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.8/gtk+-3.8.1.tar.xz' sha256

Re: Building julia on ARM [WAS Re: [julia-users] Native Processor Code Compilers For Scientific Computing - Can Julia Create Standalone Executables ?]

2014-04-25 Thread Christopher Fusting
Any progress on this? Trying to build Julia on a beaglebone black. Would be happy to share the logs. _Chris On Friday, November 1, 2013 4:21:03 AM UTC-4, Viral Shah wrote: For 0.3, we are going to try migrating to MCJIT. LLVM is likely to have multi-module support in the 3.4 release -

[julia-users] Re: different eigen value ordering from eigs

2014-04-25 Thread Steven G. Johnson
Different LAPACK routines (and different algorithms) are used for real-symmetric and unsymmetric matrices. The former sorts the eigenvalues in ascending order, while the latter provides few guarantees about ordering. On Friday, April 25, 2014 7:37:16 PM UTC-4, Ethan Anderes wrote: Is there a

[julia-users] Re: different eigen value ordering from eigs

2014-04-25 Thread Ethan Anderes
Thanks Steven. I figured it was something like that. I was hoping that since the non-symmetry was just numerical error I would still get the eigenvalues sorted in the same order as the symmetric case. It does seem unsatisfying that such a small numerical error can cause such different behavior

Re: Building julia on ARM [WAS Re: [julia-users] Native Processor Code Compilers For Scientific Computing - Can Julia Create Standalone Executables ?]

2014-04-25 Thread Viral Shah
I would love to give this a try, as many things are in place now. Is there a reasonably beefy arm machine that I can log into or buy cheaply? -viral On 26-Apr-2014 8:23 am, Christopher Fusting cfust...@gmail.com wrote: Any progress on this? Trying to build Julia on a beaglebone black. Would

Re: Building julia on ARM [WAS Re: [julia-users] Native Processor Code Compilers For Scientific Computing - Can Julia Create Standalone Executables ?]

2014-04-25 Thread Viral Shah
Please do share logs. -viral On 26-Apr-2014 8:23 am, Christopher Fusting cfust...@gmail.com wrote: Any progress on this? Trying to build Julia on a beaglebone black. Would be happy to share the logs. _Chris On Friday, November 1, 2013 4:21:03 AM UTC-4, Viral Shah wrote: For 0.3, we are

Re: Building julia on ARM [WAS Re: [julia-users] Native Processor Code Compilers For Scientific Computing - Can Julia Create Standalone Executables ?]

2014-04-25 Thread Christopher Fusting
You can find the log here: https://gist.github.com/cfusting/11311422 The Beaglebone Black is pretty beefy and fairly cheap if you are looking for a good testing environment. I can provide you with a user account on mine in the meantime although I cannot guarantee uptime. Cheers, _Chris On

Re: Building julia on ARM [WAS Re: [julia-users] Native Processor Code Compilers For Scientific Computing - Can Julia Create Standalone Executables ?]

2014-04-25 Thread Joel VanderWerf
Two recommendations for a beefy arm machine: Utilite Pro http://utilite-computer.com/web/utilite-models Odroid U2/U3 http://hardkernel.com/main/products/prdt_info.php I have both and especially recommend the latter for compute (the former has faster networking and more ports). Some folks