[julia-users] Re: MethodError closest candidate is same as "no matching method" method

2016-06-23 Thread michael
I finally realized what I should have done and felt like an idiot for taking so long on this. S = MatrixSpace(ZZ, 3, 3) @eval @everywhere S=$S On Wednesday, June 15, 2016 at 12:24:16 PM UTC-5, michael wrote: > > That would almost definitely be it. I had been using > @everywhere using Nemo >

Re: [julia-users] Skylake support

2016-06-23 Thread Yichao Yu
On Thu, Jun 23, 2016 at 11:22 PM, wrote: > Anyone had success using Julia on Intel's Skylake processors? Yes. > I get some segfaults when using Julia (download precompiled) + Ubuntu 14.04. > I also tried to compile it from source, but I get some segfaults when >

Re: [julia-users] Skylake support

2016-06-23 Thread Keno Fischer
Are you sure that your computer's memory is ok? That sounds like a suspicious number of segfaults. On Thu, Jun 23, 2016 at 11:22 PM, wrote: > Anyone had success using Julia on Intel's Skylake processors? > I get some segfaults when using Julia (download precompiled) +

[julia-users] how can i rewrite my code to make use of the parallel feature of julia?

2016-06-23 Thread 博陈
Below is part of my code, I wrote it with FFTW.set_num_threads() to get parallel fft calculation. However, the for loops "for eachindex" are just serial. Is it possible to rewrite the code in a parallel way? I don't know how to implement it with @parallel, SharedArray or the simple @spawn

[julia-users] Skylake support

2016-06-23 Thread felipenoris
Anyone had success using Julia on Intel's Skylake processors? I get some segfaults when using Julia (download precompiled) + Ubuntu 14.04. I also tried to compile it from source, but I get some segfaults when compiling LLVM.

[julia-users] how can i rewrite the code to make use of the parallel feature in julia?

2016-06-23 Thread 博陈
This is my code, I wrote it with using ..Utils using JLD function ground(ϕ0::Array{Complex{Float64},2}, dx::Float64 , dt::Float64) FFTW.set_num_threads(CPU_CORES) ns = size( ϕ0, 1) x = get_x(ns, dx) p = get_p(ns, dx) # FFT plan p_fft! = plan_fft!(

[julia-users] how to save array to text file "correctly"?

2016-06-23 Thread Hoang-Ngan Nguyen
Hi, I have the following array data = [ -0.5 0.0 -2.18199e-5 1.53967e-5 -1.7899e-5 1.26717e-5 -2.24327e-6 1.60087e-6] When I save it using either writecsv("filename.csv",data) or writedlm("filename.csv",data,",") I get this -.5 0 -21819881018654233e-21 153966589305464e-19

Re: [julia-users] How to make a Matrix of Matrix's?

2016-06-23 Thread Dan
[[M] [M]] works. And is the same as Matrix{Float64}[[M] [M]] But concur it is unintuitive. On Thursday, June 23, 2016 at 10:28:39 PM UTC-4, Sheehan Olver wrote: > > > [M,M] will do a Vector of Matrices in 0.5. But [M M] still does > concatenation. So the question is how to do

Re: [julia-users] How to make a Matrix of Matrix's?

2016-06-23 Thread Sheehan Olver
[M,M] will do a Vector of Matrices in 0.5. But [M M] still does concatenation. So the question is how to do Matrices of Matrices without concatinating. > On 24 Jun 2016, at 12:05 PM, Lutfullah Tomak wrote: > > By default [M M] (without delimeter like , or

[julia-users] How to make a Matrix of Matrix's?

2016-06-23 Thread Lutfullah Tomak
By default [M M] (without delimeter like , or ;) means concatenation so it throws error. But I think in julia 0.5 [M, M] should do Matrix of Matricies.

Re: [julia-users] How to make a Matrix of Matrix's?

2016-06-23 Thread Miguel Bazdresch
You can simplify the declaration as follows: MM = Matrix(Matrix(1,2)) You can use comprehensions too: MM = [ randn(5,5) for x=1:2, y=1 ] Here, MM has two rows and one column, and each of its elements is a 5x5 matrix. -- mb On Thu, Jun 23, 2016 at 9:28 PM, Sheehan Olver

[julia-users] How to make a Matrix of Matrix's?

2016-06-23 Thread Sheehan Olver
This caught me by surprise: *julia> **M=rand(5,5)* *5x5 Array{Float64,2}:* * 0.621195 0.301080.611089 0.880044 0.779199* * 0.100477 0.0581337 0.198601 0.639252 0.400357* * 0.716917 0.179181 0.548913 0.787072 0.157769* * 0.971473 0.981921 0.307854 0.201917 0.290429* *

RE: [julia-users] Re: VS code extension

2016-06-23 Thread David Anthoff
I added a gitter room for the VS Code plugin, maybe best to move further discussion of the extension there: https://gitter.im/JuliaEditorSupport/julia-vscode. I have a prototype up and running for sending selected or individual lines of code from the editor to a REPL via Ctrl+Enter. All

[julia-users] Hide and disable REPL

2016-06-23 Thread David Anthoff
Hi, is there a way to switch off the REPL and then on again, from a task? Specifically, I want to start a julia instance and pass a script in with the -L parameter that will open a socket, listen for connections and the process messages from that socket. This server listening code is all

Re: [julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Mauro
My recollection is that part of the indexing interface in Julia (just by convention) is that indexing should be of O(1) (or close to that) complexity. Iterable things, in general, have O(n) complexity to access the n-th element, because you have to traverse the data to get there (the classic

Re: [julia-users] Re: indexing over `zip(collection1, collection2)`

2016-06-23 Thread Davide Lasagna
Yes, I meant python 2.x On Thursday, June 23, 2016 at 8:06:20 PM UTC+1, Yichao Yu wrote: > > On Thu, Jun 23, 2016 at 2:53 PM, Jussi Piitulainen > wrote: > > > > > > torstai 23. kesäkuuta 2016 21.18.22 UTC+3 Davide Lasagna kirjoitti: > >> > >> Is there any particular

Re: [julia-users] Re: indexing over `zip(collection1, collection2)`

2016-06-23 Thread Yichao Yu
On Thu, Jun 23, 2016 at 2:53 PM, Jussi Piitulainen wrote: > > > torstai 23. kesäkuuta 2016 21.18.22 UTC+3 Davide Lasagna kirjoitti: >> >> Is there any particular reason why `Zip` objects are iterable but not >> indexable? Python allows that. >> > > Does Python now allow that?

RE: [julia-users] Re: VS code extension

2016-06-23 Thread David Anthoff
Yes, VS Code does feel a lot snappier than Atom. I never had problem with installation or updating with Atom, though. Right now the VS Code plugin is very bare and has hardly any features (syntax highlighting, latex completion, and one command to open a package in a new window). Right now I

Re: [julia-users] JuliaCon birds of a feather

2016-06-23 Thread AK
Any chance there are notes or minutes available? On Thursday, June 23, 2016 at 12:17:27 PM UTC-4, Alex Williams wrote: > > Shoot. Sorry to have missed this. > > Hope to catch up on these topics at the Hackathon, or after the conference > tonight. Let me know! > > -- Alex > > On Wednesday, June

[julia-users] Re: indexing over `zip(collection1, collection2)`

2016-06-23 Thread Jussi Piitulainen
torstai 23. kesäkuuta 2016 21.18.22 UTC+3 Davide Lasagna kirjoitti: > > Is there any particular reason why `Zip` objects are iterable but not > indexable? Python allows that. > > Does Python now allow that? I'm still on 3.4 and didn't see anything relevant in the "What's new" for 3.5.

Re: [julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Davide Lasagna
Hi Jacob, In my view, in principle, all "iterators" should be indexable, (at least read-only), *unless *the underlying data is not indexable by nature, e.g. with data that comes from a stream... Doing `zip([1, 2], [2, 3])[1]` should probably just work. I also think that for `Zip`s if the

Re: [julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Jacob Quinn
Sorry, to clarify a little: The things you're zipping are not necessarily indexable (i.e. other iterators), so it's not safe to assume you can always index a Zip. On Thu, Jun 23, 2016 at 2:21 PM, Jacob Quinn wrote: > Most "iterator" types are not indexable, AFAIK. The

Re: [julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Jacob Quinn
Most "iterator" types are not indexable, AFAIK. The typical recommendation/idiom is to just call `collect(itr)` if you need to specifically index. -Jacob On Thu, Jun 23, 2016 at 2:18 PM, Davide Lasagna wrote: > Is there any particular reason why `Zip` objects are

[julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Davide Lasagna
Is there any particular reason why `Zip` objects are iterable but not indexable? Python allows that. >From previous discussion on the topic (2014 topic at https://groups.google.com/forum/#!topic/julia-dev/5bgMvzJveWA) it seems that it has not been implemented yet. Thanks,

[julia-users] Re: Installing with Intel compiler

2016-06-23 Thread Tony Kelman
We'd welcome notes or adjustments if necessary to keep the Intel compilers working. We don't test against them very often at all. If the license agreement or the hardware resources we had available allowed us to do so, we'd like to test more regularly and ensure the build system and code works

Re: [julia-users] define `scale!(::Float64, ::Real)` ?

2016-06-23 Thread Davide Lasagna
Thanks, I thought about that. That is why the method definition I wrote works like `scale` (which is deprecated), rather than `scale!`. This is more of a programming problem rather than a conceptual one. Probably, I could just do something along the lines of if isa(out, Number) out *= 42

Re: [julia-users] Re: Calling Fortran in Julia Windows 10 - dlopen Error

2016-06-23 Thread Kaela Martin
It was the cross-compiler problem. It worked when I compiled it using mignw-w64 compilers. Thanks! Kaela On Wed, Jun 22, 2016 at 8:06 PM, Tony Kelman wrote: > Most likely you're missing one of the dependency dll's (or Julia can't > find it). Check in Dependency Walker and/or

Re: [julia-users] define `scale!(::Float64, ::Real)` ?

2016-06-23 Thread Stefan Karpinski
This method cannot be implemented since numbers are immutable. On Thu, Jun 23, 2016 at 1:20 PM, Davide Lasagna wrote: > I have a function that operates on an AbstractVector object `fs`, defined > like this: > > function foo{T}(fs::AbstractVector{T}) > out = zero(T)

Re: [julia-users] A question of style: type constructors vs methods

2016-06-23 Thread Nathan Smith
Hi Gabriel, If you're types often have default values you may want to take a look Parameters.jl for a neat and useful implementation of types with default values. As for the Bar() constructor, is may be odd for future people looking at your code to

[julia-users] define `scale!(::Float64, ::Real)` ?

2016-06-23 Thread Davide Lasagna
I have a function that operates on an AbstractVector object `fs`, defined like this: function foo{T}(fs::AbstractVector{T}) out = zero(T) for f in fs # do some with out and f, e.g. sum end scale!(out, 42) end This code should be generic, and the eltype `T` could be a

Re: [julia-users] JuliaCon birds of a feather

2016-06-23 Thread Alex Williams
Shoot. Sorry to have missed this. Hope to catch up on these topics at the Hackathon, or after the conference tonight. Let me know! -- Alex On Wednesday, June 22, 2016 at 5:43:52 PM UTC-4, Josh Day wrote: > > Sounds great, I'm in. I'd be especially interested in talking about > LearnBase. >

Re: [julia-users] how to get all combination of rows in array

2016-06-23 Thread programistawpf
BigTHX, W dniu czwartek, 23 czerwca 2016 12:04:40 UTC+2 użytkownik Tamas Papp napisał: > > vcat(unique([A[i,:] for i in 1:size(A,1)])...) > > On Thu, Jun 23 2016, programistawpf wrote: > > > Thx, like below: > > How to crate one matix of result? > > > > julia> unique([A[i,:] for i in

[julia-users] Re: Installing with Intel compiler

2016-06-23 Thread Victor Eijkhout
Ok, feel free to close this ticket. By putting enough gcc stuff in the path I managed to get it to install in the Intel compiler. At least I think it's doing that. The configure messages are still quite ambiguous. V.

Re: [julia-users] async web socket read & write?

2016-06-23 Thread Jon Norberg
Thanks, that works perfectly

[julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-23 Thread Tony Kelman
Did the error mention "side by side configuration"? It sounds like this is an unintended consequence of a change I made so that PyCall would work better. For now you can either install 0.4.5 or find the MSVC 2008 runtime redistributable package and install that. We'll try to make this optional

[julia-users] Solver does not support quadratic solver .

2016-06-23 Thread Tony Kelman
This is a better question for the julia-opt mailing list, where I think you already posted.

Re: [julia-users] Re: Help with a macro

2016-06-23 Thread Mosè Giordano
Hi Mauro, 2016-06-22 21:13 GMT+02:00 Mauro: > > A REPL session of mine trying to figure out how to make that macro would > look something like this: > > julia> ex = :(f(x, y, z, zz)) # this is what is passed into the macro > :(f(x,y,z,zz)) > > julia> xdump(ex) # xdump is nice to get an

Re: [julia-users] variables - qubit

2016-06-23 Thread Stefan Karpinski
I think you accidentally posted the same link twice. On Thu, Jun 23, 2016 at 2:50 AM, Stirling Newberry < stirling.newbe...@gmail.com> wrote: > I am checking out variables.. I am looking for how to bridge > Variable (mathematics) - Wikipedia, the free encyclopedia >

[julia-users] variables - qubit

2016-06-23 Thread Stirling Newberry
I am checking out variables.. I am looking for how to bridge Variable (mathematics) - Wikipedia, the free encyclopedia into this Variable (mathematics) - Wikipedia, the free encyclopedia

Re: [julia-users] how to get all combination of rows in array

2016-06-23 Thread Tamas Papp
vcat(unique([A[i,:] for i in 1:size(A,1)])...) On Thu, Jun 23 2016, programistawpf wrote: > Thx, like below: > How to crate one matix of result? > > julia> unique([A[i,:] for i in 1:size(A,1)]) > 10-element Array{Any,1}: > 1x3 Array{Int64,2}: > 0 4 4 > 1x3 Array{Int64,2}: > 4 2 0 > 1x3

Re: [julia-users] how to get all combination of rows in array

2016-06-23 Thread programistawpf
Thx, like below: How to crate one matix of result? julia> unique([A[i,:] for i in 1:size(A,1)]) 10-element Array{Any,1}: 1x3 Array{Int64,2}: 0 4 4 1x3 Array{Int64,2}: 4 2 0 1x3 Array{Int64,2}: 1 4 3 1x3 Array{Int64,2}: 2 5 1 1x3 Array{Int64,2}: 2 2 2 1x3 Array{Int64,2}: 2 2

Re: [julia-users] how to get all combination of rows in array

2016-06-23 Thread Tamas Papp
unique([A[i,:] for i in 1:size(A,1)]) you can make it faster by using sub, convert to vectors, etc, depending on what you need it for. On Thu, Jun 23 2016, programistawpf wrote: > how to get all combination of rows in array ? > > 10x3 Array{Int64,2}: > 0 4 4 > 4 2 0 > 1 4 3 > 2 5 1

[julia-users] Re: Indicating Fortran path dependencies the correct way?

2016-06-23 Thread Charles Ll
Ok thanks! Yes I will have a look at Dierckx.jl, see if I can figure out how it does it. Le jeudi 23 juin 2016 13:00:57 UTC+10, Tony Kelman a écrit : > > You have a few options. You can save the location of the library to a > module-level const variable and use that in your ccall's, or use

[julia-users] how to get all combination of rows in array

2016-06-23 Thread programistawpf
how to get all combination of rows in array ? 10x3 Array{Int64,2}: 0 4 4 4 2 0 1 4 3 2 5 1 2 2 2 2 2 3 3 0 1 4 1 4 4 4 1 1 3 4 i.e... 001 014 020 ect Paul

[julia-users] Solver does not support quadratic solver .

2016-06-23 Thread tannirind
Hello, After coming this error i add SCS solver . But the same error is happening . How can i remove ? Thank you ! Best Regards, Tanveer Iqbal