[julia-users] Re: Status of Plots.jl?

2016-10-17 Thread missperovaz
Thanks a lot Chris and Josef I was missing the inline("atom") I hope GR helps me on plotting faster than PyPlot. thanks, On Monday, October 17, 2016 at 6:22:51 AM UTC-7, Josef Heinen wrote: > > You should probably test (plain) GR first: > > using GR > inline("atom") > histogram(randn(1)) >

Re: [julia-users] How to determine which functions to overload, or, who is at the bottom of the function chain?

2016-10-17 Thread colintbowers
I hadn't thought of using the debugger to step through and see where a function call ends up. That is a great idea. Thanks, Colin On Tuesday, 18 October 2016 02:01:43 UTC+11, Patrick Belliveau wrote: > > I would add the general comment that in julia 0.5 you can use Gallium to > step into a

[julia-users] Re: run command inserting spurious newlines into return values

2016-10-17 Thread Tony Kelman
Powershell has types for xml, so maybe telling it to expect an xml result (or convert the string to xml) would result in different output formatting?

Re: [julia-users] Re: Uniqueness check in PriorityQueue

2016-10-17 Thread Júlio Hoffimann
Thank you Steven, I fixed the issue by storing other objects in the PriorityQueue. -Júlio 2016-10-17 14:27 GMT-07:00 Steven G. Johnson : > Make a copy before you mutate it. In general, it is not safe to mutate > the keys of a dictionary, which is what you are doing. >

[julia-users] Re: run command inserting spurious newlines into return values

2016-10-17 Thread jason . bates
So, it turns out it's not the run command, as I originally thought. After more digging, I discovered that powershell formats output differently depending on whether it is outputting to a console or to another process, and that when it outputs to another process it auto-formats the output.

[julia-users] Re: Uniqueness check in PriorityQueue

2016-10-17 Thread Steven G. Johnson
Make a copy before you mutate it. In general, it is not safe to mutate the keys of a dictionary, which is what you are doing.

[julia-users] run command inserting spurious newlines into return values

2016-10-17 Thread jason . bates
Enter code here... As one of the multitudes stuck behind a corporate firewall, I'm attempting to find a work-around for using the WinRPM package (see this issue: https://github.com/JuliaPackaging/WinRPM.jl/issues/40). In the process, I have uncovered some unusual behavior in the run command -

[julia-users] Re: Nemo AcbField error

2016-10-17 Thread Jeffrey Sarnoff
The exported logic requires both the real and the imaginary parts be given. ComplexField = AcbField(64) complexValue = ComplexField(1, 0) On Monday, October 17, 2016 at 8:08:40 AM UTC-4, digxx wrote: > > push...

[julia-users] Re: Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Scott Jones
1) You should join us in the Gitter chatroom https://github.com/JuliaLang/julia, it actually can be a better place to get quick answers to simple questions like this than julia-users. 2) I tested with v0.4.5, and it worked fine for me. Show us (in the Gitter chat room) exactly what you did and

[julia-users] Re: Dataframe without column and row names ?

2016-10-17 Thread Henri Girard
I didn't success doing it. But I did it with iruby is there a way to adapt it ? def odd_magic_square(n) raise ArgumentError "Need odd positive number" if n.even? || n <= 0 n.times.map{|i| n.times.map{|j| n*((i+j+1+n/2)%n) + ((i+2*j-5)%n) + 1} } end [3].each do |n| #puts "\nSize #{n},

[julia-users] Uniqueness check in PriorityQueue

2016-10-17 Thread Júlio Hoffimann
Hi, Consider the following snippet: using LightGraphs using Base.Collections pq = PriorityQueue(DiGraph, Int) G = DiGraph(3) add_edge!(G, 1,2) enqueue!(pq, G, 1) # reverse edge rem_edge!(G, 1,2) add_edge!(G, 2,1) enqueue!(pq, G, 2) It produces this error: ERROR: ArgumentError:

[julia-users] Local Atom-Juno with remote Julia ?

2016-10-17 Thread 'Philippe Roy' via julia-users
Hello, I'd like to know if it's possible to use a local installation of Juno/Atom with a Julia session on another server on the LAN ? I can connect to the server through SSH and the files would be on the server too. I'm just wondering if the console of the Juno editor can be linked to a

Re: [julia-users] Re: Julia 0.5 Highlights

2016-10-17 Thread Stefan Karpinski
Yes, that's essentially it – except that since we haven't converged on a particular design, it's hard to say exactly what interfaces are at this point. But yes, it's something that provides a first class representation of some protocol/interface. On Mon, Oct 17, 2016 at 11:33 AM, Brian Rogoff

[julia-users] Re: Parallel file access

2016-10-17 Thread Zachary Roth
Thanks for the responses. Raph, thank you again. I very much appreciate your "humble offering". I'll take a further look into your gist. Steven, I'm happy to use the right tool for the job...so long as I have an idea of what it is. Would you care to offer more insights or suggestions for

[julia-users] Re: Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Scott Jones
Hmmm, I'd tried it on v0.4.7, and the second one did work, I'm surprised it failed in v0.4.5. To get the latest: http://julialang.org/downloads/ On Monday, October 17, 2016 at 8:54:12 AM UTC-4, Sujoy Datta wrote: > > he > Thank you, Tim and Scott. I am using version 0.4.5 and both of these >

Re: [julia-users] Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Scott Jones
Good one, Dan! 2 characters can't be beat! Wonder how the performance compares. On Monday, October 17, 2016 at 9:04:11 AM UTC-4, Dan wrote: > > If saving characters is a thing, then: > julia> a = rand(Bool,3,2) > 3×2 Array{Bool,2}: > false false > true false > false true > > > julia> 1a

Re: [julia-users] Re: Julia 0.5 Highlights

2016-10-17 Thread Brian Rogoff
On Thursday, October 13, 2016 at 1:00:21 PM UTC-7, Stefan Karpinski wrote: > > No, Function doesn't have signatures, arity or return type as part of its > type. The signature of a function is the union of its method signatures, > which is potentially very complicated. Type parameters are not >

Re: [julia-users] How to determine which functions to overload, or, who is at the bottom of the function chain?

2016-10-17 Thread Patrick Belliveau
I would add the general comment that in julia 0.5 you can use Gallium to step into a call to a base function and explore what's actually being called. For the .< example, from the julia prompt: using Gallium @enter 0.4 .< 0.5 @enter 0.4 .< 0.5 In operators.jl:159 158 .!=(x::Number,y::Number)

Re: [julia-users] Re: Julia types newbie question

2016-10-17 Thread Angel de Vicente
Hi Simon, Simon Danisch writes: > I'm guessing that is done to prevent overflow. > So you need to use your own implementation. > Here are the promote rules defining this behavior: > https://github.com/JuliaLang/julia/blob/master/base/reduce.jl#L32 > So in theory you could

[julia-users] Re: Julia types newbie question

2016-10-17 Thread Simon Danisch
I'm guessing that is done to prevent overflow. So you need to use your own implementation. Here are the promote rules defining this behavior: https://github.com/JuliaLang/julia/blob/master/base/reduce.jl#L32 So in theory you could also implement your own Int type, that has a different promote

Re: [julia-users] row of a matrix

2016-10-17 Thread Yichao Yu
On Mon, Oct 17, 2016 at 9:22 AM, Chang Kwon wrote: > > It seems that the way Julia handles A[1,:] changed in v0.5. > > *julia> **A = [1 2 3; 4 5 6]* > > *2×3 Array{Int64,2}:* > > * 1 2 3* > > * 4 5 6* > > > *julia> **A[1,:]* > > *3-element Array{Int64,1}:* > > * 1* > > *

[julia-users] Re: Status of Plots.jl?

2016-10-17 Thread Josef Heinen
You should probably test (plain) GR first: using GR inline("atom") histogram(randn(1)) Did you checkout GR master and download the latest run-time? Pkg.checkout("GR") ENV["GRDIR"]="" Pkg.build("GR") On Sunday, October 16, 2016 at 6:45:07 PM UTC+2, missp...@gmail.com wrote: > > Hi folks,

[julia-users] row of a matrix

2016-10-17 Thread Chang Kwon
It seems that the way Julia handles A[1,:] changed in v0.5. *julia> **A = [1 2 3; 4 5 6]* *2×3 Array{Int64,2}:* * 1 2 3* * 4 5 6* *julia> **A[1,:]* *3-element Array{Int64,1}:* * 1* * 2* * 3* *julia> **size(A[1,:])* *(3,)* A[1,:] used to be a row-vector in v0.4 same as in

[julia-users] Re: Status of Plots.jl?

2016-10-17 Thread Josef Heinen
You should probably test (plain) GR first: ``` using GR inline("atom") histogram(randn(1)) ``` Did you ``Pkg.checkout("GR") and download the latest run-time? ``` ENV["GRDIR"]="" Pkg.build("GR") ``` On Sunday, October 16, 2016 at 6:45:07 PM UTC+2, missp...@gmail.com wrote: > > Hi folks, >

[julia-users] Julia types newbie question

2016-10-17 Thread angel . vicente . garrido
Hi, probably a very basic question, but I'm just starting to play around with Julia types. I was hoping to improve the performance of a little program I wrote, so I decided to try Int32 integers instead of the default Int64, but if I try to use sum, it seems that it is expecting Int64 and the

Re: [julia-users] Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Dan
If saving characters is a thing, then: julia> a = rand(Bool,3,2) 3×2 Array{Bool,2}: false false true false false true julia> 1a 3×2 Array{Int64,2}: 0 0 1 0 0 1 On Monday, October 17, 2016 at 2:08:44 PM UTC+3, Scott Jones wrote: > > Tim, do you know if there is any difference in

[julia-users] Re: Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Sujoy Datta
he Thank you, Tim and Scott. I am using version 0.4.5 and both of these methods are not working.Good to know in the latest version, this can be done. Anyway, I just found that while adding, the bits becomes numbers, so, I did this (soo.bad trick,I think): x=BitArray(falses(20,8)) y=x+false By

[julia-users] Re: Nemo AcbField error

2016-10-17 Thread digxx
push...

[julia-users] Re: Root finding package

2016-10-17 Thread digxx
well this is only for polynomials, right?

Re: [julia-users] GC rooting for embedding: what is safe and unsafe?

2016-10-17 Thread Gunnar Farnebäck
Thanks. That makes things clearer. Den fredag 14 oktober 2016 kl. 14:16:54 UTC+2 skrev Yichao Yu: > > > > On Fri, Oct 14, 2016 at 7:03 AM, Bart Janssens > wrote: > >> Hi, >> >> Replies below, to the best of my understanding of the Julia C interface: >> >> On Fri, Oct

Re: [julia-users] Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Scott Jones
Tim, do you know if there is any difference in performance between the two methods? Note, Sujoy, the first method that Tim showed is only available on v0.5 and later (some of the nice stuff added to entice people to move off of v0.4.x to v0.5.x ;-) ) On Monday, October 17, 2016 at 5:48:20 AM

[julia-users] Re: What is really "big data" for Julia (or otherwise), 1D or multi-dimensional?

2016-10-17 Thread Scott Jones
On Friday, October 14, 2016 at 1:00:35 PM UTC-4, Páll Haraldsson wrote: > > On Thursday, October 13, 2016 at 7:49:51 PM UTC, cdm wrote: >> >> from CloudArray.jl: >> >> "If you are dealing with big data, i.e., your RAM memory is not enough >> to store your data, you can create a CloudArray from

Re: [julia-users] Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Tim Holy
julia> a = bitrand(3,5) 3×5 BitArray{2}: true false false true true false true true true false true true true true true julia> Int.(a) 3×5 Array{Int64,2}: 1 0 0 1 1 0 1 1 1 0 1 1 1 1 1 julia> convert(Array{Int}, a) 3×5 Array{Int64,2}: 1 0 0 1 1 0 1 1

[julia-users] Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Sujoy Datta
I am a new user of Julia. Please help me to convert a nxm BitArray to an nxm IntegerArray. What I want is to print 1 for 'true' and 0 for 'false'. Thank you in advance.

Re: [julia-users] Dataframe without column and row names ?

2016-10-17 Thread Milan Bouchet-Valat
Le lundi 17 octobre 2016 à 06:32 +0200, henri.gir...@gmail.com a écrit : > In fact I don't know how to make the nice border but I noticed > dataframe  > does it ... > > I only need the nice border for the matrix, but I don't know how to > do it ? > > Maybe I should ask how to make a nice border