[julia-users] Re: ANN: JuMP 0.12 released

2016-03-08 Thread Tony Kelman
I was also recently seeing NLopt hang during some of JuMP's tests, so I don't think it's just you. On Tuesday, March 8, 2016 at 9:52:38 PM UTC-8, Evan Fields wrote: > > Great to hear. Two minor questions which aren't clear (to me) from the > documentation: > - Once a user defined function has

Re: [julia-users] Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2016-03-08 Thread Viral Shah
How about making this a GSOC project? Could you perhaps submit a PR to the GSOC project page on julialang.org with these ideas, since you seem to have made the most amount of progress here? -viral > On 09-Mar-2016, at 11:47 AM, Lutfullah Tomak wrote: > > I think the

[julia-users] Re: Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2016-03-08 Thread Lutfullah Tomak
I think the most crictical one that toolchain misses is (lib)gfortran support. I managed to build gfortran for cross compile but I think I am missing pure hard float libgfortran to compile libopenblas with. For android, libopenblas expect hard float libraries. In google provided toolchain, hard

[julia-users] Re: ANN: JuMP 0.12 released

2016-03-08 Thread Evan Fields
Great to hear. Two minor questions which aren't clear (to me) from the documentation: - Once a user defined function has been defined and registered, can it be incorporated into NL expressions via @defNLExpr? - The documentation references both ForwardDiff.jl and ReverseDiffSparse.jl. Which is

[julia-users] Re: Eigenvalues of symmetric dense n=10^6 matrix (ScaLAPACK.jl?)

2016-03-08 Thread Jack Poulson
Scratch that; I misread your request as I was forwarded a link to this with the title "Big SVD". You should look into wrapping Elemental's HermitianEig and/or the appropriate routine from ELPA, unless you only want a small number of modes, in which case a Krylov subspace technique would likely

[julia-users] Re: Eigenvalues of symmetric dense n=10^6 matrix (ScaLAPACK.jl?)

2016-03-08 Thread Jack Poulson
There were several recent extensions to Elemental's SVD support, as detailed here: https://github.com/elemental/Elemental/issues/125 In particular, FULL_SVD, THIN_SVD, COMPACT_SVD, and PRODUCT_SVD are now all supported, where the latter should used if you do not need small triplets as it uses

[julia-users] Re: Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2016-03-08 Thread Viral Shah
I took a hard look at porting Julia to Android with a friend's help who is a core Android developer at Google. The android toolchain was the most daunting part, and I got stuck at cross compilation of julia dependencies. I personally would love to help get julia on android, as I have heard many

Re: [julia-users] overhead of accessing rows vs columns in SparseMatrixCSC format

2016-03-08 Thread Viral Shah
Also, the general view is that new sparse matrix formats should be in packages rather than Base, which everyone agrees with. This would lead to faster development - and Base can be modified to make it easy to add new sparse formats. -viral On Wednesday, March 9, 2016 at 9:30:31 AM UTC+5:30,

Re: [julia-users] overhead of accessing rows vs columns in SparseMatrixCSC format

2016-03-08 Thread Viral Shah
Nobody is working on it at the moment, that I know of. We almost had a working version then, but it was deemed too complex to include in Base at that time. -viral On Wednesday, March 9, 2016 at 6:28:26 AM UTC+5:30, Anonymous wrote: > > Thank you for the response, I read the 2015 discussion on

[julia-users] Re: Julia on Android (and/or the web) - a scientific calculator on steroids.. good for tablets

2016-03-08 Thread Michael G
I am maintaining the SL4A project and we are getting requests to add Julia to the repo. Is anyone interested in helping out so we can run julia on SL4A??? I would need a little help on implementation since I am unfamiliar with the language -Michael On Thursday, May 28, 2015 at 10:17:08

[julia-users] Is it slow to load packages inside function ?

2016-03-08 Thread Fei Ma
Hello everyone : I am working on a signal processing project. And I have found something strange. When I using"plot" function from the PyPlot , and "matopen" from the MAT package. Sometimes, the function run very fast, but sometimes it is very slow ? I don't know why ?

Re: [julia-users] Documentation on Base.uncompressed_ast/ Core.Inference.typeinf_uncached

2016-03-08 Thread Yichao Yu
On Tue, Mar 8, 2016 at 9:18 PM, Julia Tylors wrote: > I wasn't able to find a documentation about these? > Can you point me in the right direction? These are internal (and unexported) functions that are not meant to be called directly. You shouldn't be writing code that

[julia-users] Documentation on Base.uncompressed_ast/ Core.Inference.typeinf_uncached

2016-03-08 Thread Julia Tylors
I wasn't able to find a documentation about these? Can you point me in the right direction? Thanks

Re: [julia-users] overhead of accessing rows vs columns in SparseMatrixCSC format

2016-03-08 Thread Anonymous
Thank you for the response, I read the 2015 discussion on here about CSR sparse matrices, do you happen to know the implementation status on when this will be included? On Monday, March 7, 2016 at 4:59:40 PM UTC-8, Tim Holy wrote: > > Likely yes to both. Best to just test yourself, of course.

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread Tom Breloff
If you run it in the repl, it should bring up an interactive window automatically. In ijulia, calling 'gui()' should do the same. (Let me know if that doesn't work) Spencer Lyon and I were working on integrating PlotlyJS just today, which will give great interaction to inline IJulia plots... Stay

Re: [julia-users] Algorithm performance comparison with python

2016-03-08 Thread Stefan Karpinski
Yes, this is a good example – I reopened the issue because we should do it. On Tue, Mar 8, 2016 at 6:35 PM, Jérémy Béjanin wrote: > On Tuesday, March 8, 2016 at 5:49:05 PM UTC-5, Stefan Karpinski wrote: > >> >> You're writing the same matrix location each time so the

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread mauriciodeq
Sorry about asking so many questions for you, but thank you very much. Plots was the only package that proved to be efficient in my case! I just would like to know if in these 3D examples using PyPlot as backend we can like rotate the plot. Thanks On Tuesday, March 8, 2016 at 10:24:01 AM

Re: [julia-users] Algorithm performance comparison with python

2016-03-08 Thread Stefan Karpinski
On Tue, Mar 8, 2016 at 5:30 PM, Jérémy Béjanin wrote: > > Yep, that was my mistake, thanks (strange I thought I had compared the > outputs and they were the same, oh well...). > You're writing the same matrix location each time so the results are the same.

[julia-users] Re: Julia and Atom

2016-03-08 Thread randmstring
Hi, if you are using Juno (and therefore ink), this is this issue. Will most probably be fixed on the next release (also see this PR ). Regards, Sebastian Am Dienstag, 8. März 2016 19:35:36 UTC+1

Re: [julia-users] Algorithm performance comparison with python

2016-03-08 Thread Jérémy Béjanin
> > We currently allocate an uninitialized array and then call the bzero > function to fill it with zeros – this takes a long time for large arrays. > We should instead mmap /dev/zero since that allows the kernel to lazily > allocate pages. I suspect this is what NumPy is doing, which in this

Re: [julia-users] Algorithm performance comparison with python

2016-03-08 Thread Jérémy Béjanin
I have. I don't see anything in particular that would help me here... > >

Re: [julia-users] Re: git help needed

2016-03-08 Thread Douglas Bates
On Tuesday, March 8, 2016 at 3:55:03 PM UTC-6, Andreas Noack wrote: > > No problem. When you have made a change like this, i.e. a hard reset or a > rebase and want to push the changes to an existing branch you'll have to > > git push --force origin glmms > > because git is trying to prevent you

Re: [julia-users] Re: git help needed

2016-03-08 Thread Andreas Noack
No problem. When you have made a change like this, i.e. a hard reset or a rebase and want to push the changes to an existing branch you'll have to git push --force origin glmms because git is trying to prevent you from making a non-recoverable change to your repo. The reason is that when you

Re: [julia-users] git help needed

2016-03-08 Thread Kevin Squire
Hi Douglas, You should just do `git push -f origin glmms`. This is a force push, and will replace origin/glmms with your local glmms branch. Cheers, Kevin On Tuesday, March 8, 2016, Douglas Bates wrote: > Thanks, Andreas. Unfortunately, I am still in trouble. Sorry to

[julia-users] Re: git help needed

2016-03-08 Thread Douglas Bates
Thanks, Andreas. Unfortunately, I am still in trouble. Sorry to be such a PITA. When I apply those changes that you describe it is okay until I try to push the changes. The response I get is that I can't push to origin/glmms because the branches have diverged. $ git status On branch glmms

Re: [julia-users] Algorithm performance comparison with python

2016-03-08 Thread Kevin Squire
Hi Jérémy, Have you had the chance to read through the Julia performance tips yet? http://docs.julialang.org/en/release-0.4/manual/performance-tips/ Cheers, Kevin On Tuesday, March 8, 2016, Jérémy Béjanin wrote: > Hello, > > By curiosity, I have translated a

[julia-users] Algorithm performance comparison with python

2016-03-08 Thread Jérémy Béjanin
Hello, By curiosity, I have translated a simple algorithm from python to julia in order to compare their performance (gist here ). I am still a relative newcomer and so am not sure why I am seeing worse performance from julia. The code was

[julia-users] Re: git help needed

2016-03-08 Thread Andreas Noack
Provided that you have pushed all your changes, I think the easiest solution is to "remove" the commit in which you add the chksqr fix. You can do that with git reset --hard c0b5c41d136013a8e2cd57f5bedd8c96f5d2e3c6 # the commit right before the chksqr changes git cherry-pick

[julia-users] Re: a excellent Julia IDE, JuliaDT

2016-03-08 Thread J Luis
Ok, thanks ... but will wait for a simpler thing to use. terça-feira, 8 de Março de 2016 às 19:32:28 UTC, Avik Sengupta escreveu: > > Use the "Eclipse IDE for Java Developers". That should give you the least > amount of cruft. > > Regards > - > Avik > > On Tuesday, 8 March 2016 19:00:22 UTC, J

[julia-users] Re: Eigenvalues of symmetric dense n=10^6 matrix (ScaLAPACK.jl?)

2016-03-08 Thread Tony Kelman
May also want to look into Elemental. Last I checked Elemental uses Scalapack in a handful of places but I don't think it would be the case here. On Tuesday, March 8, 2016 at 8:19:15 AM UTC-8, Erik Schnetter wrote: > > A colleague mentioned to me that he needs to diagonalize (find >

Re: [julia-dev] Re: [julia-users] Pkg.submit() not working on Julia v0.5

2016-03-08 Thread Ayush Pandey
The github issue is still open and I guess the solution for the above problem hasn't been found yet. I had to switch to direct connection to able to PkgDev.submit(). *Yours Sincerely,* *Ayush Pandey* * * *LinkedIn Profile

[julia-users] Re: git help needed

2016-03-08 Thread Douglas Bates
Having looked closer (nothing like a public post to cause you to read again and discover you were wrong) I see that I did change all those files in the glmms branch that Andreas changed in his pull request. I hadfixed the issue that Andreas addressed but in a different way and our changes

[julia-users] Julia and Atom

2016-03-08 Thread Uwe Fechner
Hello, I gave Atom a try. One question: When I close Atom and restart it it doesn't remember the window size. Is it possible to convince Atom to start with a wider window? Best regards: Uwe

Re: [julia-users] Fixed Size Memory Allocation When Randomly Reading Array

2016-03-08 Thread Jared Crean
D-oh. Sometimes its the simple things. Thanks Yichao Jared Crean On 03/08/2016 11:34 AM, Yichao Yu wrote: On Mar 8, 2016 11:32 AM, "Yichao Yu" > wrote: > > On Tue, Mar 8, 2016 at 11:17 AM, Jared Crean

Re: [julia-users] Fixed Size Memory Allocation When Randomly Reading Array

2016-03-08 Thread Yichao Yu
On Mar 8, 2016 11:32 AM, "Yichao Yu" wrote: > > On Tue, Mar 8, 2016 at 11:17 AM, Jared Crean wrote: > > Hello, > > I did a micro-brenchmark about using Ints or UInt8s as indices for > > randomly reading an array, and discovered that when using Ints (but

Re: [julia-users] Fixed Size Memory Allocation When Randomly Reading Array

2016-03-08 Thread Yichao Yu
On Tue, Mar 8, 2016 at 11:17 AM, Jared Crean wrote: > Hello, > I did a micro-brenchmark about using Ints or UInt8s as indices for > randomly reading an array, and discovered that when using Ints (but not > UInt8s), there is an unexpected memory allocation. More

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread Tom Breloff
This will work as expected if you call "scatter3d" instead. The 3D interface needs a bit of an overhaul... I agree that something like "scatter" on x/y/z should properly produce a 3D scatter. It's on my radar. On Tue, Mar 8, 2016 at 11:16 AM, wrote: > Is it possible to

[julia-users] Eigenvalues of symmetric dense n=10^6 matrix (ScaLAPACK.jl?)

2016-03-08 Thread Erik Schnetter
A colleague mentioned to me that he needs to diagonalize (find eigenvalues and eigenvectors) of a symmetric dense matrix with n=10^6 (i.e. the matrix has 10^12 entries). ScaLapack seems to be the way to go for this. I'm happy to see there is . Saying

Re: [julia-users] Data Structure / Pair question

2016-03-08 Thread Christopher Alexander
In case anyone is interested, I actually just decided to use a Matrix, and when I needed it I would call sortrows and take each column and put them in a values vector and weights vector (for further calculations) respectively. I thought this was easier, and I noticed sortrows keeps the two

[julia-users] Fixed Size Memory Allocation When Randomly Reading Array

2016-03-08 Thread Jared Crean
Hello, I did a micro-brenchmark about using Ints or UInt8s as indices for randomly reading an array, and discovered that when using Ints (but not UInt8s), there is an unexpected memory allocation. More interestingly, the size of the memory allocation does not depend on the size of the

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread mauriciodeq
Is it possible to do this color plot for a 3D example?. In this case the color of the markers will depend on another expression: using Plots pyplot(leg = false, size = (400,300)) x = linspace(0,20,100) y = sin(x) z = cos(x) scatter(x,y,z, zcolor=20*x + y, marker = (:o, stroke(1))) On

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Stefan Karpinski
Nice. My next branch will be called LoTS On Tue, Mar 8, 2016 at 10:58 AM, Tom Breloff wrote: > There should only remain String (concrete) and AbstractString in Base. > > > One string to rule them all... > > [image: Inline image 1] > > On Tue, Mar 8, 2016 at 10:14 AM, Milan

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Tom Breloff
> > There should only remain String (concrete) and AbstractString in Base. One string to rule them all... [image: Inline image 1] On Tue, Mar 8, 2016 at 10:14 AM, Milan Bouchet-Valat wrote: > Le mardi 08 mars 2016 à 16:08 +0100, Daniel Carrera a écrit : > > > > On 8 March

Re: [julia-users] Re: how to paste png into ipython julia notebook?

2016-03-08 Thread Steven G. Johnson
Jupyter just added a feature to drag-and-drop or paste images into markdown cells that should make it a lot easier to create notebooks with technical illustrations: https://github.com/jupyter/notebook/pull/621

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread Tom Breloff
It's possible you have an old version... try doing Pkg.checkout("Plots"). I'll get around to tagging a new version soon. On Tue, Mar 8, 2016 at 10:47 AM, wrote: > > > On Tuesday, March 8, 2016 at 9:41:14 AM UTC-6, mauri...@gmail.com wrote: >> >> Thank you very much Tom!

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread mauriciodeq
On Tuesday, March 8, 2016 at 9:41:14 AM UTC-6, mauri...@gmail.com wrote: > > Thank you very much Tom! However, my plot is not showing the colors, it's > just black, do you know what can be happening? > > On Tuesday, March 8, 2016 at 9:33:39 AM UTC-6, Tom Breloff wrote: >> >> You can almost

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Daniel Carrera
On 8 March 2016 at 16:14, Milan Bouchet-Valat wrote: > > julia> Array{Int}(1) > > 1-element Array{Int64,1}: > > 140180935446712 > This is a one-element array with uninitialized memory. There's a > discussion going on about whether to change this to return 0 or not: >

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread mauriciodeq
Thank you very much Tom! On Tuesday, March 8, 2016 at 9:33:39 AM UTC-6, Tom Breloff wrote: > > You can almost copy that verbatim with PyPlot.jl, or here's the same in > Plots: > > [image: Inline image 1] > > > On Tue, Mar 8, 2016 at 9:51 AM, wrote: > >> Hello Julia Users,

Re: [julia-users] PyPlot color scatter plots

2016-03-08 Thread Tom Breloff
You can almost copy that verbatim with PyPlot.jl, or here's the same in Plots: [image: Inline image 1] On Tue, Mar 8, 2016 at 9:51 AM, wrote: > Hello Julia Users, > > PyPlot has some modules related to color plots. However the documentation > in Julia don't address the

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Milan Bouchet-Valat
Le mardi 08 mars 2016 à 16:08 +0100, Daniel Carrera a écrit : > > On 8 March 2016 at 15:52, Milan Bouchet-Valat > wrote: > > > Array("hello") > > This case is tricky since Array{Int}(1) creates a vector with one > > element, not an array containing 1. So for consistency we

Re: [julia-users] Handling optional/keyword arguments

2016-03-08 Thread Milan Bouchet-Valat
Le mardi 08 mars 2016 à 05:39 -0800, 'Tim Loderhose' via julia-users a écrit : > Hello everyone, > I started using Julia recently and am very pleased with the many > options I am given to write code. > Now I want to translate a toolbox I wrote in MATLAB to Julia (It's > about MRI reconstruction).

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Yichao Yu
On Tue, Mar 8, 2016 at 10:08 AM, Daniel Carrera wrote: > > On 8 March 2016 at 15:52, Milan Bouchet-Valat wrote: >> >> > Array("hello") >> This case is tricky since Array{Int}(1) creates a vector with one >> element, not an array containing 1. So for

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Daniel Carrera
On 8 March 2016 at 15:52, Milan Bouchet-Valat wrote: > > Array("hello") > This case is tricky since Array{Int}(1) creates a vector with one > element, not an array containing 1. So for consistency we have to raise > an error for non-integer arguments. > Array(1) fails, and

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Daniel Carrera
I don't think Julia is UN-reasonable. I just thought think it could look cleaner and more consistent than it does today. Cheers, Daniel. On 8 March 2016 at 14:40, Tim Holy wrote: > julia> Int(3.0) > 3 > > julia> Int(3.2) > ERROR: InexactError() > in call at

Re: [julia-users] Meshgrid function

2016-03-08 Thread mauriciodeq
Thank you very much, it was really helpful! On Tuesday, March 8, 2016 at 1:00:53 AM UTC-6, Tomas Lycken wrote: > > The thing with meshgrid, is that it’s terribly inefficient compared to > the equivalent idioms in Julia. Instead of implementing it and keeping with > inefficient habits, embrace

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Milan Bouchet-Valat
Le mardi 08 mars 2016 à 04:12 -0800, Daniel Carrera a écrit : > Hello, > > In Julia 0.4 the "int(foo)" syntax was deprecated: > > julia> int(3.2) > WARNING: int(x::AbstractFloat) is deprecated, use round(Int,x) > instead. > ... > 3 > > I am happy with `round(Int,x)` but recently I noticed that

[julia-users] PyPlot color scatter plots

2016-03-08 Thread mauriciodeq
Hello Julia Users, PyPlot has some modules related to color plots. However the documentation in Julia don't address the following application (in Python): import numpy as npimport matplotlib.pyplot as plt x = np.linspace(0, 20, 100) y = np.sin(x) z = x + 20 * y scaled_z = (z - z.min()) /

[julia-users] Re: GSOC2016

2016-03-08 Thread Miles Lubin
Hi Rohan, Head over to the julia-opt list and open a discussion there. Miles On Tuesday, March 8, 2016 at 8:56:39 AM UTC-5, Rohan Goel wrote: > > Hello everyone, > I want to contribute to the idea "Support for complex numbers within > Convex.jl". > Can someone please help me getting started

[julia-users] Re: ANN: JuMP 0.12 released

2016-03-08 Thread Miles Lubin
This is a bug, I've opened an issue here: https://github.com/JuliaOpt/JuMP.jl/issues/695 As a workaround, if you replace sqrt(y0) with 0.0 then the NaNs go away. Clearly it shouldn't affect the result since y0 is a constant. On Tuesday, March 8, 2016 at 2:46:12 AM UTC-5, JP Dussault wrote: > >

[julia-users] Handling optional/keyword arguments

2016-03-08 Thread 'Tim Loderhose' via julia-users
Hello everyone, I started using Julia recently and am very pleased with the many options I am given to write code. Now I want to translate a toolbox I wrote in MATLAB to Julia (It's about MRI reconstruction). There are often lots of options in my function arguments, something which I handled

[julia-users] Re: regression from 0.43 to 0.5dev, and back to 0.43 on fedora23

2016-03-08 Thread Johannes Wagner
as an example, the data looks like this: using(TimeIt) v = rand(3) r = rand(6000,3) x = linspace(1.0, 2.0, 300) * (v./sqrt(sumabs2(v)))' *# Julia 0.4 function* function s04(xl, rl) result = zeros(size(xl,1)) for i = 1:size(xl,1) dotprods = rl * xl[i,:]'

[julia-users] a excellent Julia IDE, JuliaDT

2016-03-08 Thread Liye zhang
If you are trying to find an IDE for Julia which is as convenient as PyDev for python, or RStudio for R, you can test JuliaDT. Thanks for the authors' excellent work! https://github.com/JuliaComputing/JuliaDT/releases/tag/v0.0.1 More about this software,

[julia-users] GSOC2016

2016-03-08 Thread Rohan Goel
Hello everyone, I want to contribute to the idea "Support for complex numbers within Convex.jl". Can someone please help me getting started what all things should I start studying and setup my machine. Thankyou

Re: [julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Tim Holy
julia> Int(3.0) 3 julia> Int(3.2) ERROR: InexactError() in call at essentials.jl:56 That's pretty reasonable, no? --Tim On Tuesday, March 08, 2016 04:12:34 AM Daniel Carrera wrote: > Hello, > > In Julia 0.4 the "int(foo)" syntax was deprecated: > > julia> int(3.2) > WARNING:

Re: [julia-users] Re: Array slices and functions that modify inputs.

2016-03-08 Thread Tom Breloff
You could certainly improve your contextual communication, however I'm guessing you're pointing out that brackets are treated as slices when on the left hand side of assignment? This is true, and good, and really the only behavior that makes any sense. But you are right that it isn't currently

[julia-users] Using PyPlot to work with obj files, noob question on arrays

2016-03-08 Thread kleinsplash
Hi, I want to just load a mesh and plot it along with a bunch of other data on one plot. Just simple plotting. I have a way that's working but it's just wrong: mesh = load(obj) #mesh = HomogenousMesh(normals: 420xGeometryTypes.Normal{3,Float32}, vertices:

Re: [julia-users] Re: Array slices and functions that modify inputs.

2016-03-08 Thread Erik Schnetter
Assigning to a slice and taking a slice are completely different operations, they merely have similar syntax. After parsing, these two operations are lowered to two different function calls, `setindex!` and `getindex`. The former modifies the array, while the latter creates a new array. There has

[julia-users] How about "array(foo)" or "int(foo)" to convert "foo" to an array or int?

2016-03-08 Thread Daniel Carrera
Hello, In Julia 0.4 the "int(foo)" syntax was deprecated: julia> int(3.2) WARNING: int(x::AbstractFloat) is deprecated, use round(Int,x) instead. ... 3 I am happy with `round(Int,x)` but recently I noticed that Python consistently uses the name of the a type as the name of the function to

Re: [julia-users] Re: Array slices and functions that modify inputs.

2016-03-08 Thread Daniel Carrera
Hello, Is there any difference besides the obvious one that assigning to a slice modifies the array? What I mean is, is there a difference in the internals or how it works that I should be aware of? Up until this thread I had been under the impression that a slice was a type of link/alias to the

[julia-users] Re: Concurrently install two versions of Julia

2016-03-08 Thread Gunnar Farnebäck
The environment variable JULIA_PKGDIR may be of use. Den måndag 7 mars 2016 kl. 05:44:29 UTC+1 skrev Vishnu Raj: > > In my system I have Juno with 0.4.2 and julia with 0.4.3. Every time I > start one, all my packages are getting recompiled. They are all under same > v0.4 folder and I think

Re: [julia-users] Meshgrid function

2016-03-08 Thread elextr
Neat. Wherever it goes it needs a pointer from http://docs.julialang.org/en/latest/manual/noteworthy-differences/#noteworthy-differences-from-matlab but its a bit long to actually go there. On Tuesday, 8 March 2016 17:00:53 UTC+10, Tomas Lycken wrote: > > The thing with meshgrid, is that