Re: [julia-users] Re: PSA: New package registration requirements

2016-09-07 Thread Deniz Yuret
Can tags be used for anything other than versioning in a Package? I was registering a package with non-version tags marking some important development points (e.g. a "naacl2016" tag) and the package manager was not happy about it. If no tags are allowed other than the vX.Y.Z tags, is the

[julia-users] There is very little overhead calling Julia from C++

2016-09-07 Thread K leo
I just did a test of calling a Julia function 100,000 times, both from Julia and from C++. The execution times are very close. The results are as follows. This is on Xubuntu 16.04 64bits. ***Julia ** | | |_| | | | (_| | | Version 0.5.0-rc3+0 (2016-08-22 23:43 UTC)

Re: [julia-users] calling julia functions in C++

2016-09-07 Thread K leo
Thank you. This just saved my day. Can someone please put this intro in the documentation? On Tuesday, June 30, 2015 at 11:58:18 PM UTC+8, Isaiah wrote: > > try > > jl_value_t * mod = (jl_value_t*)jl_eval_string("mymodule"); > jl_function_t * func =

[julia-users] Re: whole arrays pass by reference while matrix columns by value?

2016-09-07 Thread Chris Rackauckas
You allocate memory for the entire array that you pass back. So if A is nxn, and instead of modifying it in-place, you create function takes in A, creates an Anew, and returns that, notice that you will have done an nxn array of memory allocation. As you can see, this will happen with every

[julia-users] Re: whole arrays pass by reference while matrix columns by value?

2016-09-07 Thread vavasis
In 0.4, you can use the sub function to operate on a row or column of an array in place. See the example below. The expression a[:,1] in your example makes a copy of the column of a. The sub function instead makes a view of the existing array. Therefore, it does not allocate any new memory

[julia-users] Re: Cell array of images like Matlab

2016-09-07 Thread Uwe Fechner
Could you post code, that reproduces the problem? On Thursday, September 8, 2016 at 1:28:00 AM UTC+2, Drew Mahedy wrote: > > I'm just wondering if there is a way to load several RGB .jpg images into > a 4-D array like can be done in MATLAB using cell array. I have the Images > package

Re: [julia-users] Re: Conda.jl needs a new maintainer

2016-09-07 Thread Tony Kelman
You can, you have to create a new "organization" account (it isn't really tied to github organizations from what I remember though) and adjust / reset the webhook. On Wednesday, September 7, 2016 at 3:07:21 PM UTC-7, David Anthoff wrote: > > I believe AppVeyor always is bound to a personal

[julia-users] Re: ran into problem compiling C embedded with julia using mingw-w64 gcc on windows

2016-09-07 Thread K leo
I just ran that example on Ubuntu with Julia 0.5. I found I did have to change a few things to make it run. export JULIA_DIR= export JULIA_HOME=$JULIA_DIR/bin export PATH=$JULIA_HOME:$PATH export LD_LIBRARY_PATH=$JULIA_DIR/lib:$LD_LIBRARY_PATH And when I compile it, I used the following

[julia-users] Re: whole arrays pass by reference while matrix columns by value?

2016-09-07 Thread John Myles White
Everything is pass by sharing. But array indexing by slices creates copies. 0.5 has better support for creating views. --John On Wednesday, September 7, 2016 at 5:00:00 PM UTC-7, Alexandros Fakos wrote: > > Hi, > > a=rand(10,2) > b=rand(10) > sort!(b) modifies b > but sort!(a[:,1]) does not

[julia-users] whole arrays pass by reference while matrix columns by value?

2016-09-07 Thread Alexandros Fakos
Hi, a=rand(10,2) b=rand(10) sort!(b) modifies b but sort!(a[:,1]) does not modify the first column of matrix a why is that? Does this mean that i cannot write functions that modify their arguments and apply it to columns of matrices? Is trying to modify columns of matrices bad programming

[julia-users] Cell array of images like Matlab

2016-09-07 Thread Drew Mahedy
I'm just wondering if there is a way to load several RGB .jpg images into a 4-D array like can be done in MATLAB using cell array. I have the Images package installed but concatenating 2 images in the 3rd or 4th dimension says that 'only two-dimensional images are supported in assert2d' when I

RE: [julia-users] Re: Conda.jl needs a new maintainer

2016-09-07 Thread David Anthoff
I believe AppVeyor always is bound to a personal account, i.e. I don’t think you can have the second type of URL. From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Steven G. Johnson Sent: Wednesday, September 7, 2016 1:49 PM To: julia-users

Re: [julia-users] Re: Conda.jl needs a new maintainer

2016-09-07 Thread Steven G. Johnson
I'm not completely sure of the right way to re-enable AppVeyor ... I did it for PyCall, but it shows up as https://ci.appveyor.com/project/StevenGJohnson/pycall-jl-nu3aa how do I enable it as https://ci.appveyor.com/project/JuliaPy/pycall-jl? On Wednesday, September 7, 2016 at 1:46:08 PM

Re: [julia-users] ran into problem compiling C embedded with julia using mingw-w64 gcc on windows

2016-09-07 Thread Bart Janssens
On Tue, Sep 6, 2016 at 4:41 PM simon rss wrote: > > > Every thing seems to be OK, it successfully generated a test.exe > > But when I run this test.exe, windows pop up a window says " test.exe > stopped working" and I got nothing. > > What is wrong? How to correctly compile

Re: [julia-users] Re: Apparently I need to rebuild Julia?

2016-09-07 Thread Loic Chappaz
Great. Does that propagate to the PPA or does one need to build from the binaries? Thanks On Wed, Sep 7, 2016 at 12:41 PM Yichao Yu wrote: > On Wed, Sep 7, 2016 at 3:34 PM, Loic Chappaz > wrote: > >> Hi there, >> >> I just had the same issue under

Re: [julia-users] Re: Apparently I need to rebuild Julia?

2016-09-07 Thread Yichao Yu
On Wed, Sep 7, 2016 at 3:34 PM, Loic Chappaz wrote: > Hi there, > > I just had the same issue under Ubuntu 14 and a fresh Julia 0.4.6 install. > It seems that Ubuntu updated my gmp library to version 6.1.0 during the > last round of updates and that does not seem to agree

Re: [julia-users] Re: Apparently I need to rebuild Julia?

2016-09-07 Thread Loic Chappaz
Hi there, I just had the same issue under Ubuntu 14 and a fresh Julia 0.4.6 install. It seems that Ubuntu updated my gmp library to version 6.1.0 during the last round of updates and that does not seem to agree with Julia (Even after reinstalling it from the PPA after uninstalling it) To solve

[julia-users] Re: TreeMap in Julia

2016-09-07 Thread Randy Zwitch
Vega.jl has the capability to render one, but doesn't yet have an easy-to-use function defined: https://github.com/johnmyleswhite/Vega.jl/issues/109 You would need to translate the example JSON string into the VegaVisualization composite type in Julia, which can be slightly frustrating the

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-07 Thread Tim Wheeler
That worked! I now have Distributions 0.10.2 On Tuesday, September 6, 2016 at 8:40:22 PM UTC-7, Fengyang Wang wrote: > > I think the problem is that ConjugatePriors is holding PDMats back, while > Distributions wants to move it forward. Try removing it and see if > Distributions will update. >

Re: [julia-users] Re: Conda.jl needs a new maintainer

2016-09-07 Thread Tony Kelman
Please re enable all CI services for every repo that was moved into that prganization. Travis and AppVeyor don't always handle repo moves very well.

[julia-users] Re: ANN: PimpMyREPL.jl

2016-09-07 Thread feza
THanks, much better On Wednesday, September 7, 2016 at 3:59:56 AM UTC-4, Kristoffer Carlsson wrote: > > After discussion with the Julia community stewards I have decided to > rename this package. It is now named "OhMyREPL" and can be found at: > https://github.com/KristofferC/OhMyREPL.jl. I

Re: [julia-users] odd stuff with`reverse` involving unsigned unit range

2016-09-07 Thread Stefan Karpinski
Could you open an issue if you haven't already? On Sun, Aug 28, 2016 at 2:41 PM, Lutfullah Tomak wrote: > julia> reverse(0:UInt(2)) > > ERROR: InexactError() > in reverse at ./range.jl:674 > > > julia> reverse(0:1:UInt(2)) >

Re: [julia-users] Further on calling C++ from Julia or vice versa

2016-09-07 Thread Keno Fischer
Cxx allows you to create a class on the julia side and implement member functions in julia, which sounds like what you want? On Wed, Sep 7, 2016 at 9:14 AM, K leo wrote: > Upon studying the C++ API that I will need to use, I found that it > specifies many virtual member

Re: [julia-users] Further on calling C++ from Julia or vice versa

2016-09-07 Thread Bart Janssens
On Wed, Sep 7, 2016 at 3:15 PM K leo wrote: > So my question is how Cxx or CxxWrap can help me with these virtual > functions? Can I overload them in Julia? > Based on your description, I think the workflow for CxxWrap would be as follows: 1. Write and wrap a top-level

[julia-users] Re: Help: how to improve the function performance

2016-09-07 Thread Weicheng Zhu
Hi Kristoffer, Thank you for your reply. I was used to the R language and I didn't even realize that the norm(x[:,i] - x[:,j]) part is the problem. To get speed boost, I add another for loop to calculate the norm manually to avoid the memory allocation and it works very well. Thank you again for

Re: [julia-users] Re: Rescuing abandoned package

2016-09-07 Thread Waldir Pimenta
I don't think the extra work would be that much more, and core team intervention should be needed quite rarely anyway. It would be just in the cases of a package author going absent (for a previously agreed-upon definition of "absent"): they would ask the community for anyone interested in

Re: [julia-users] Re: Julia equivalent to Matlab's [Q, R, P] = qr(A)?

2016-09-07 Thread Andreas Noack
My memory is too short. I just realized that I implemented a generic pivoted QR last fall so if you try out the prerelease of Julia 0.5 then you'll be able to compute the pivoted QR of a BigFloat matrix. On Wednesday, September 7, 2016 at 9:20:12 AM UTC-4, Andreas Noack wrote: > > We use

Re: [julia-users] Re: Julia equivalent to Matlab's [Q, R, P] = qr(A)?

2016-09-07 Thread Steven G. Johnson
On Wednesday, September 7, 2016 at 7:53:41 AM UTC-4, Stuart Brorson wrote: > > Thank you, Michele & Chris for your suggestion to use qrfact. Good > idea. Unfortunately, I neglected to mention that my matrix is a > BigFloat array, and qrfact with pivoting fails like this: > > julia> Z =

[julia-users] Re: Running Julia in Ubuntu

2016-09-07 Thread Henri Girard
I use 0.5 dev, it's very easy to compile and for me works better than the ubuntu versions Le mardi 30 août 2016 07:26:29 UTC+2, Angshuman Goswami a écrit : > > I was running Julia to run my MPC code. I needed to upgrade and hence i > deleted the folder i cloned from git hub. Now I have two

[julia-users] macro: with

2016-09-07 Thread Tom Breloff
Hey all... I just threw together a quick macro to save some typing when working with the fields of an object. Disclaimer: this should not be used in library code, or in anything that will stick around longer than a REPL session. Hopefully it's self explanatory with this example. Is there a good

[julia-users] need help from Julia/C-fu masters...

2016-09-07 Thread Davide Lasagna
Hi, I am working on adding a new feature to the Sundials.jl package. I want to be able to pass the right-hand-side jacobian to the solver as Julia callback and avoid expensive calculation of the jacobian using the internal finite-difference

[julia-users] Re: Julia Reference Card

2016-09-07 Thread Sisyphuss
There is no Section 3? On Wednesday, September 7, 2016 at 12:04:29 AM UTC+2, john lynch wrote: > > Thanks for the compliment. I have fixed it in the pdf and the associated > odt. >

Re: [julia-users] Re: Julia equivalent to Matlab's [Q, R, P] = qr(A)?

2016-09-07 Thread Andreas Noack
We use LAPACK's QR with column pivoting. See http://www.netlib.org/lapack/lug/node42.html. LAPACK uses blocking for BLAS3 but that is not necessary for a generic implementation. So it's the task is just to sort the columns by norm at each step. If you want to try an implementation you can look

[julia-users] Further on calling C++ from Julia or vice versa

2016-09-07 Thread K leo
Upon studying the C++ API that I will need to use, I found that it specifies many virtual member functions which are callback functions that are invoked by the API library based upon different events. The user (I) will need to overload these virtual functions based on needs, which appears to be

Re: [julia-users] equivalent of issymmetric(A) in julia

2016-09-07 Thread Ahmed Mazari
thanks On Wed, Sep 7, 2016 at 2:55 PM, Yichao Yu wrote: > > > On Wed, Sep 7, 2016 at 8:48 AM, Ahmed Mazari > wrote: > >> Hello, >> l want to check whether my matrix is symmetric. in matlab we have the >> fucntion issymmetric(A) , do we have any

Re: [julia-users] equivalent of issymmetric(A) in julia

2016-09-07 Thread Yichao Yu
On Wed, Sep 7, 2016 at 8:48 AM, Ahmed Mazari wrote: > Hello, > l want to check whether my matrix is symmetric. in matlab we have the > fucntion issymmetric(A) , do we have any function in matlab that does the > same ? > I don't know what exactly the matlab function

[julia-users] equivalent of issymmetric(A) in julia

2016-09-07 Thread Ahmed Mazari
Hello, l want to check whether my matrix is symmetric. in matlab we have the fucntion issymmetric(A) , do we have any function in matlab that does the same ? thanks

Re: [julia-users] Re: How to shuffle the order of matrix by rows

2016-09-07 Thread Ahmed Mazari
thank you On Wed, Sep 7, 2016 at 12:03 PM, Mosè Giordano wrote: > Hi Ahmed, > > > Hello, >> l have a matrix as follow : >> k=rand(1:100,3,3) >> 3x3 Array{Int64,2}: >> 97 26 77 >> 58 64 86 >> 87 85 99 >> >> >> l want to shuffle randomly the order by lines for

Re: [julia-users] Re: Julia equivalent to Matlab's [Q, R, P] = qr(A)?

2016-09-07 Thread Stuart Brorson
Thank you, Michele & Chris for your suggestion to use qrfact. Good idea. Unfortunately, I neglected to mention that my matrix is a BigFloat array, and qrfact with pivoting fails like this: julia> Z = qrfact(A, true) ERROR: MethodError: `qrfact` has no method matching

[julia-users] Re: Help: how to improve the function performance

2016-09-07 Thread Kristoffer Carlsson
The code in Distances.jl is quite heavily optimized and uses BLAS calls when possible (which it is for Euclidean metric). Your code has many allocations like x = x' and norm(x[:,i] - x[:,j]). On Wednesday, September 7, 2016 at 1:43:11 PM UTC+2, Weicheng Zhu wrote: > > Hi there, > I write a

[julia-users] Help: how to improve the function performance

2016-09-07 Thread Weicheng Zhu
Hi there, I write a function to calculate the distance for each row of a two dimensional array and I compared it with the `pairwise` function in the Distance module. Does anyone can help me to find out the reason why my function is slower than the pairwise function? I only keep the triangle

[julia-users] Re: How to shuffle the order of matrix by rows

2016-09-07 Thread Mosè Giordano
Hi Ahmed, Hello, > l have a matrix as follow : > k=rand(1:100,3,3) > 3x3 Array{Int64,2}: > 97 26 77 > 58 64 86 > 87 85 99 > > > l want to shuffle randomly the order by lines for instance line 1 becomes > 3. l have a matrix of 1 by 700 . > The following function is based on the

[julia-users] How to shuffle the order of matrix by rows

2016-09-07 Thread Ahmed Mazari
Hello, l have a matrix as follow : k=rand(1:100,3,3) 3x3 Array{Int64,2}: 97 26 77 58 64 86 87 85 99 l want to shuffle randomly the order by lines for instance line 1 becomes 3. l have a matrix of 1 by 700 . thank you

Re: [julia-users] Re: Rescuing abandoned package

2016-09-07 Thread Mauro
On Sat, 2016-09-03 at 20:35, Waldir Pimenta wrote: > One problem with forks (for the case where it can be assessed that the > author has indeed abandoned the project) is that existing issues, pull > requests, stars and watchers aren't transferred to the new repo; in

[julia-users] TreeMap in Julia

2016-09-07 Thread Ján Adamčák
Hi, Is there a tool for drawing Tree Map in Julia? I want draw something like this:

[julia-users] Re: Any Julia pkgs using Polymer web components?

2016-09-07 Thread Pablo Zubieta
Escher.jl uses Polymer web components. I don't think it exposes them directly, but shouldn't be to hard looking at the code to see how it incorporates them into its functionality. On Wednesday, September 7, 2016 at 3:47:08 AM UTC+2, Jeffrey Sarnoff wrote: > > If you know of work with Julia and

[julia-users] Re: ANN: PimpMyREPL.jl

2016-09-07 Thread Kristoffer Carlsson
After discussion with the Julia community stewards I have decided to rename this package. It is now named "OhMyREPL" and can be found at: https://github.com/KristofferC/OhMyREPL.jl. I apologize for the inconvenience.

[julia-users] Re: How I did get a spurious method for *{T}(Irrational{T},Irrational{T})?

2016-09-07 Thread Lutfullah Tomak
A reduced case that also makes multiplication of the same Irrational an error. _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-07 Thread Kris De Meyer
I noticed that in Distributions from 0.9 onward the Normal and MvNormal distributions were parameterised on Real (similar to what I did for PDMats). That work should have made my test fix in that pull request obsolote. In other words, if ConjugatePriors was/is updated to work with