Re: [julia-users] Autoformatting for Julia?

2016-02-12 Thread Tony Kelman
Would maybe be better to start a new thread asking about this rather than adding to an old one. But anyway, no there is not currently anyone working on a standalone Julia formatter as far as I know. The IDE's under development as Eclipse and Atom plugins are working on their own formatters, but

[julia-users] Re: depsy.org

2016-02-12 Thread Jeffrey Sarnoff
Depsy responded. This service currently covers the 11,223 Python and R research software packages available on PyPi and CRAN They are open to including Julia. To allocate their scarce resources, they need to hear from many members of the Julia community: Thanks for getting in touch! Very sorr

[julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread NotSoRecentConvert
You can even download the entire thing as a PDF, HTML, or EPUB if you want to highlight, annotate, or bookmark your most searched functions. Look in the lower right of the page for "v: latest" and click it for more options. On Friday, February 12, 2016 at 8:03:27 AM UTC+1, Lutfullah Tomak wrote:

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Mauro
Also at the Julia REPL: julia> apropos("standard deviation") randn! stdm std randn help?> std search: std stdm STDIN STDOUT STDERR setdiff setdiff! hist2d hist2d! stride strides StridedArray StridedVector StridedMatrix StridedVecOrMat redirect_stdin std(v[, reg

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Michele Zaffalon
But the original point is still valid: using the search box in the official documentation page http://docs.julialang.org/en/release-0.4, searching for "standard deviation" does not bring up any useful hit, despite the fact that Base.std is fairly well documented and contains the words standard devi

[julia-users] Compilation of Julia on cluster - getting some error

2016-02-12 Thread Ben Ward
Hi Julia community! I've got Julia compiled successfully on my workstation without issue, but I'm trying to do it now in my cluster environment at work, which I believe is RedHat or some similar linux. I have permissions to install and compile software in a given directory. However during comp

[julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Patrick Kofod Mogensen
Is it possible to create a colormap as described in the title using Colors.jl? I couldn't seem to find anything on Colormaps and transparency/opacity. Best, Patrick

Re: [julia-users] Autoformatting for Julia?

2016-02-12 Thread Cristóvão Duarte Sousa
I don't know if it has been said here before, sorry if I'm repeating, but: a way to represent the "concrete" syntax tree, convert it to AST and then back would be of great use here, see https://github.com/JuliaLang/JuliaParser.jl/issues/22 . I actually thought a lot about that, and imagine that

[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Andreas Lobinger
In the discussions about ColorTypes it showed up, that the majority prefered color independent of opacity. I'd guess you need to get the colormap via Colors.jl and then add the opacity information (created by linscale etc.). But i'm not sure that applying a color defined as color+transparency (

[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Patrick Kofod Mogensen
Actually, it came up in a plotting context https://github.com/tbreloff/Plots.jl/issues/138 . The use case is to overlay colors on a world map where blue means colder than average and red means warmer than average. Of course, if there is not much difference from the average, you don't want it to

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Lutfullah Tomak
For reference, it shows up in my search. http://docs.julialang.org/en/release-0.4/search/?q=standard+deviation&check_keywords=yes&area=default About google side, I think that MATLAB and R are used for years and thus results are indexed better for them.

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Lutfullah Tomak
For reference, I had used just 'deviation'. http://docs.julialang.org/en/release-0.4/search/?q=deviation&check_keywords=yes&area=default# Another instance of 'standard deviation' shows up in the search but this one when 'standard deviation' is searched.

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Michele Zaffalon
On mine, it points to the functions randn and randn! On Fri, Feb 12, 2016 at 11:48 AM, Lutfullah Tomak wrote: > For reference, it shows up in my search. > > > http://docs.julialang.org/en/release-0.4/search/?q=standard+deviation&check_keywords=yes&area=default > > About google side, I think that

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Lutfullah Tomak
Sorry deleted that post because that wasn't I used.

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Milan Bouchet-Valat
Le vendredi 12 février 2016 à 09:51 +0100, Michele Zaffalon a écrit : > But the original point is still valid: using the search box in the > official documentation page http://docs.julialang.org/en/release-0.4, > searching for "standard deviation" does not bring up any useful hit, > despite the fac

[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Andreas Lobinger
discussion was about ColorTypes but not in -> https://github.com/JuliaLang/Color.jl/issues/101

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread J Luis
One main 'dislike' I find in the documentation is that, contrary to Matlab and R examples that have one page for each function, in julia we have lots of functions per page with short and often cryptic descriptions. Example std(*v*[, *region*]) Compute the sample standard deviation of a vector o

[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Steven G. Johnson
On Friday, February 12, 2016 at 5:19:28 AM UTC-5, Andreas Lobinger wrote: > > In the discussions about ColorTypes it showed up, that the majority > prefered color independent of opacity. I'd guess you need to get the > colormap via Colors.jl and then add the opacity information (created by > l

[julia-users] Re: Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Peter Kovesi
I have recently added a package for generating a variety of perceptually uniform colour maps which may be of interest to you https://github.com/peterkovesi/PerceptualColourMaps.jl However I do not consider transparency Cheers Peter On Friday, February 12, 2016 at 5:48:06 PM UTC+8, Patrick Kofod

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Milan Bouchet-Valat
Le vendredi 12 février 2016 à 04:16 -0800, J Luis a écrit : > One main 'dislike' I find in the documentation is that, contrary to > Matlab and R examples that have one page for each function, in julia > we have lots of functions per page with short and often cryptic > descriptions. Example > > std

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Michael Borregaard
Maybe a good time to repost this link: https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md#improving-documentation

[julia-users] custom ctags for Julia

2016-02-12 Thread Christof Stocker
Hi! Are there any VIM users here who have a nice [tagbar](https://github.com/majutsushi/tagbar) going? For the tagbar to work properly one needs to have a Julia language definition for [ctags](http://ctags.sourceforge.net/). I have found one [here](https://github.com/JuliaLang/julia/blob/mas

Re: [julia-users] Autoformatting for Julia?

2016-02-12 Thread Erik Schnetter
On Fri, Feb 12, 2016 at 5:17 AM, Cristóvão Duarte Sousa wrote: > I don't know if it has been said here before, sorry if I'm repeating, but: > a way to represent the "concrete" syntax tree, convert it to AST and then > back would be of great use here, see > https://github.com/JuliaLang/JuliaParser.

Re: [julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Tom Breloff
Patrick I have solutions for custom colormaps with alpha in Plots... Maybe this thread is good motivation to dedicate a page in the documentation. The gist is that you can pass in a ColorGradient, which you can construct with predefined gradient names, custom color vectors, and custom interpolation

[julia-users] Re: Compilation of Julia on cluster - getting some error

2016-02-12 Thread Tony Kelman
Your binutils is too old for avx2 instructions. See https://github.com/JuliaLang/julia#linux-build-troubleshooting - OPENBLAS_NO_AVX2=1 should fix it. On Friday, February 12, 2016 at 1:35:14 AM UTC-8, Ben Ward wrote: > > Hi Julia community! > > I've got Julia compiled successfully on my workstat

Re: [julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Tom Breloff
Peter: your package looks interesting... I may add the ability to pass your colormap objects directly into Plots functions. I'll open an issue when I have a chance and cc you. On Friday, February 12, 2016, Tom Breloff wrote: > Patrick I have solutions for custom colormaps with alpha in Plots...

Re: [julia-users] sub-ranges within CartesianRange

2016-02-12 Thread Stefan Karpinski
I'm kind of curious what the use case is. How are you using CartesianRanges? On Thu, Feb 11, 2016 at 9:00 PM, Greg Plowman wrote: > Suppose I have a CartesianRange and want to access a sub-range. > > start = CartesianIndex((1,1,1)) > stop = CartesianIndex((5,5,5)) > cr = CartesianRange{start, st

Re: [julia-users] Calling a macro to generate functions

2016-02-12 Thread Stefan Karpinski
At a higher level, you seem to be doing something that involves a lot of metaprogramming. Can you say a little more about the higher level goal and why it entails so much macrology? On Thu, Feb 11, 2016 at 4:37 PM, Julia Tylors wrote: > Hi; > > > I am having a problem of calling a macro with pre

[julia-users] ANN: FastTransforms.jl v0.0.1

2016-02-12 Thread richard . slevinsky
I'm pleased to announce the new package FastTransforms.jl available here: https://github.com/MikaelSlevinsky/FastTransforms.jl The aim of this package is to provide a new class of fast transforms based on the use of asymptotic formulae to relate the transforms to a small number of fast Fourier

Re: [julia-users] Autoformatting for Julia?

2016-02-12 Thread Cristóvão Duarte Sousa
Yes, but then where such Exprs will placed? Not inside the args array of other Exprs... I guess that if it is necessary to revert back to source code from an AST, then a modification to Expr has to be made... On Fri, Feb 12, 2016 at 1:47 PM Erik Schnetter wrote: > On Fri, Feb 12, 2016 at 5:17 AM

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Timothée Poisot
A thing that works well in R is that arguments to functions have a separate markup. When you use e.g. roxygen to write documentation, the @params and @return elements make it clear what is what. This is something I find lacking in Julia / Lexicon.jl (and implementing it goes very much over my head

Re: [julia-users] sub-ranges within CartesianRange

2016-02-12 Thread Tim Holy
Are x and y offsets with respect to the "parent" range cr? If so, you can achieve this with a 1-liner, CartesianRange(cr.start+x-1, cr.start+y-1) although you need https://github.com/JuliaLang/julia/pull/15030 to support the "- 1". On julia 0.4, that would have to be @generated functio

Re: [julia-users] Diverging Colormap (like RdBu) with opacity going from 1 to 0 in the middle and back to 1

2016-02-12 Thread Tom Breloff
For reference, I just added an example of color gradients with alpha here: https://github.com/tbreloff/Plots.jl/issues/138#issuecomment-183374401 On Fri, Feb 12, 2016 at 9:18 AM, Tom Breloff wrote: > Peter: your package looks interesting... I may add the ability to pass > your colormap objects d

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread NotSoRecentConvert
That's similar to how I learned Matlab programming. They had similar functions listed at the bottom of each function page. Add in the forums and reverse engineering other peoples' code and you have the majority of Matlab learning experience.

Re: [julia-users] Autoformatting for Julia?

2016-02-12 Thread Erik Schnetter
Line numbers are already handled in this way: julia> parse("f(x)=x") |> dump Expr head: Symbol = args: Array(Any,(2,)) 1: Expr head: Symbol call args: Array(Any,(2,)) 1: Symbol f 2: Symbol x typ: Any 2: Expr head: Symbol block args: Array(A

[julia-users] CUDArt: loop inside device do

2016-02-12 Thread Joaquim Masset Lacombe Dias Garcia
Can I have a standard julia "for loop" inside a "device do" of CUDArt? I tried the following example: using CUDArt, MyCudaModule nrow = 10 ncol = 3000 mat = ones(Float64,nrow,ncol) out1 = zeros(Float64,nrow) vec = Float64[1:nrow;] out2 = zeros(Float64,nrow) d_mat = CudaArray(mat) d_out1 = Cud

Re: [julia-users] Re: documentation suggestions

2016-02-12 Thread Douglas Bates
On Thursday, February 11, 2016 at 3:06:45 PM UTC-6, ivo welch wrote: > > > hi doug---and vice-versa. it's interesting that a core function (reading > a .csv file) would not be in a native julia library. when are you > switching your students to julia? regards, /iaw > Writing a function to re

[julia-users] Re: looking for an equivalent function to "independence_test" in the R coin package

2016-02-12 Thread Douglas Bates
On Thursday, February 11, 2016 at 6:27:26 PM UTC-6, Albert Cardona wrote: > > The formula operator is there via the GLM package [1], but I can't find > the equivalent of the independent_test function [2]. > > [1] https://github.com/JuliaStats/GLM.jl > [2] http://www.inside-r.org/packages/cran/coi

Re: [julia-users] Re: documentation suggestions

2016-02-12 Thread Jeffrey Sarnoff
Doug, I found some shelter after months of being bit by git using this (free for non-commercial use) www.syntevo.com/smartgit/ On Friday, February 12, 2016 at 12:49:27 PM UTC-5, Douglas Bates wrote: > > On Thursday, February 11, 2016 at 3:06:45 PM UTC-6, ivo welch wrote: >> >> >> hi doug---an

[julia-users] Unitful.jl for physical units

2016-02-12 Thread Andrew Keller
I'm happy to share a package I wrote for using physical units in Julia, Unitful.jl . Much credit and gratitude is due to Keno Fischer for the SIUnits.jl package which served as my inspiration. This is a work

Re: [julia-users] Unitful.jl for physical units

2016-02-12 Thread Stefan Karpinski
This is very, very cool. The implementation does seems to suggest some interesting potential way that Base could support this better. Please don't hesitate to bring these up as issues or on julia-dev. Really smooth support for units in Julia is a killer feature. On Fri, Feb 12, 2016 at 3:23 PM, An

Re: [julia-users] CUDArt: loop inside device do

2016-02-12 Thread Tim Holy
That loop is not proper julia syntax (i.e., this issue has nothing to do with CUDArt). julia> global s julia> s = 0 0 julia> s = for i = 1:10 s = s+1 end julia> s julia> s == nothing true --Tim On Friday, February 12, 2016 08:51:47 AM Joaquim Masset Lacombe Dias Garcia w

Re: [julia-users] Unitful.jl for physical units

2016-02-12 Thread Tim Holy
I have long been meaning to get around to making SIUnits type-stable under arithmetic. I've only glanced at your code, but it looks like you just scratched one big, bad TODO item off my list! Seems like you've included a number of other nice features, too (many thanks for the microns support, it

Re: [julia-users] Re: documentation suggestions

2016-02-12 Thread Kristoffer Carlsson
It is hard to actually lose work with git. With git reflog you can always see where your HEAD has been and you can then git reset to a previous revision.

Re: [julia-users] Unitful.jl for physical units

2016-02-12 Thread Tom Breloff
Andrew this looks really great. Thanks for the contribution! On Fri, Feb 12, 2016 at 4:27 PM, Tim Holy wrote: > I have long been meaning to get around to making SIUnits type-stable under > arithmetic. I've only glanced at your code, but it looks like you just > scratched one big, bad TODO item

Re: [julia-users] Using `Rational` with `Poly`

2016-02-12 Thread Fengyang Wang
You are right; it did not work. I made some modifications to fix it, but they required a significant rethinking of many of the methods, so it would be a different type entirely. Nemo supports rational functions in any case, and I think that's a better idea. On Sunday, February 7, 2016 at 11:21:

Re: [julia-users] Using `Rational` with `Poly`

2016-02-12 Thread Stefan Karpinski
Interesting. If the changes don't hurt the original use case of the type, they may be reasonable to make. On Fri, Feb 12, 2016 at 4:59 PM, Fengyang Wang wrote: > You are right; it did not work. I made some modifications to fix it, but > they required a significant rethinking of many of the metho

Re: [julia-users] CUDArt: loop inside device do

2016-02-12 Thread Joaquim Dias Garcia
Is there any way around it? I was planning a monte-carlo code, but all the iteration rely on some huge amount of data which is always the same. So sending it back and forth to the device would be a bottleneck...

Re: [julia-users] CUDArt: loop inside device do

2016-02-12 Thread Tim Holy
On Friday, February 12, 2016 08:30:26 PM Joaquim Dias Garcia wrote: > Is there any way around it? > > I was planning a monte-carlo code, but all the iteration rely on some huge > amount of data which is always the same. So sending it back and forth to > the device would be a bottleneck... Again,

Re: [julia-users] CUDArt: loop inside device do

2016-02-12 Thread Joaquim Dias Garcia
Oh! Sure, thanks for the prompt answer! Sorry for the dumb question... Joaquim > On 12 de fev de 2016, at 20:36, Tim Holy wrote: > >> On Friday, February 12, 2016 08:30:26 PM Joaquim Dias Garcia wrote: >> Is there any way around it? >> >> I was planning a monte-carlo code, but all the iterati

Re: [julia-users] Autoformatting for Julia?

2016-02-12 Thread Cristóvão Duarte Sousa
Hum, OK, it uses block Exprs... That may then work for punctuation and whitespace too. On Fri, Feb 12, 2016 at 4:20 PM Erik Schnetter wrote: > Line numbers are already handled in this way: > > julia> parse("f(x)=x") |> dump > Expr > head: Symbol = > args: Array(Any,(2,)) > 1: Expr >

[julia-users] Re: looking for an equivalent function to "independence_test" in the R coin package

2016-02-12 Thread Taylor Maxwell
Depending on what parts of their package you are interested in, to implement a small subset of their functionality I recently wrote some code in both Julia and R (to make sure I had an idea what they were doing to replicate their results) based on the equations in page 258 of: Hothorn T, Hornik

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Po Choi
Good point. I tried to use this search box in Juila manual, but get nothing. In R and Matlab, the search would return the function sd/std. I think, not only the "words" in Julia documentation is needed to improved, but also the search engine. On Friday, February 12, 2016 at 12:52:19 AM UTC-8, Mi

[julia-users] Re: Why does enumerate fail in parallel?

2016-02-12 Thread Michael Ohlrogge
Yes, I just lost about an hour trying to figure out what was going on here. I didn't find it intuitive that the parallel should not work for enumeration, and the error message did little to point me in the right direction. On Thursday, August 20, 2015 at 7:46:37 PM UTC-7, ele...@gmail.com wrot

[julia-users] @generated function cumulative definition

2016-02-12 Thread Isaac Yonemoto
As generated functions are right now, if you have a type-variadic section of code, you have two options: 1) generate varying segments at the top, assign them to a variable and perform code insertion using $ This has obvious difficulties with readability. 2) create a variable, say "code" that h

Re: [julia-users] Re: documentation suggestions

2016-02-12 Thread Po Choi
Before seriously hiring someone to bring Julia into your school, perhaps you first can try the commercial service from http://juliacomputing.com/ to organize some workshops or events to see how the students and other faculties feel about the potential of Julia. On Wednesday, February 10, 2016 a

[julia-users] How to do multiple dispatch on different dimension of matrices?

2016-02-12 Thread Po Choi
Can I do something like this? testMatrix(x::Array{1}) = println("It is 1-dimensional.") testMatrix(x::Array{2}) = println("It is 2-dimensional.") The above does not work because Array{1} == Array{1, N} One solution is testMatrixAgain{T}(x::Array{T, 1}) = println("It is 1-dimensional.") testMatrix