[julia-users] Re: Distributions after compile from src....

2014-07-18 Thread Jeff Waller
An update: Brute forcing out Sampling from 0.4.8 and 0.4.9 fixes the problem, but why would these even be consulted?

[julia-users] Distributions after compile from src....

2014-07-18 Thread Jeff Waller
Trying to install Gadfly which depends on Distributions, but julia> Pkg.add("Distributions") ERROR: key not found: "Sampling" in wait at task.jl:51 in add at pkg/entry.jl:314 in add at pkg/entry.jl:71 in anonymous at pkg/dir.jl:28 in add at pkg.jl:20 The most up to

Re: [julia-users] Adding a row to a DataFrame

2014-07-18 Thread Gustavo Lacerda
hi Keith, Are you still planning to do the pull request? Gustavo On Tue, Jun 10, 2014 at 11:14 AM, Keith Campbell wrote: > Thanks for the kind words. I'll put together a pull request. > > On Tuesday, June 10, 2014 10:01:36 AM UTC-4, Gustavo Lacerda wrote: >> >> hey Keith, >> >> Your solution

Re: [julia-users] [ANN] MultivariateStats

2014-07-18 Thread Stefan Karpinski
I shouldn't even be surprised at this point, Dahua, but I'm still impressed – this is quite a spectacular list of algorithms. I wish I had these in Matlab or R years ago. On Fri, Jul 18, 2014 at 6:13 PM, Dahua Lin wrote: > Recently, I developed a new package for Julia (under JuliaStats): > Mult

Re: [julia-users] [ANN] MultivariateStats

2014-07-18 Thread wildart
Looks like I have to move manifold learning methods from DimensionalityReduction to somewhere else. -- Art On Friday, July 18, 2014 10:13:16 PM UTC-4, Dahua Lin wrote: > > John, > > I guess what you intended to say is to deprecate DimensionalityReduction > (instead of "deprecate MultivariateSt

Re: [julia-users] [ANN] MultivariateStats

2014-07-18 Thread John Myles White
Yes, that is what I meant. Sorry for the typo. -- John On Jul 18, 2014, at 10:13 PM, Dahua Lin wrote: > John, > > I guess what you intended to say is to deprecate DimensionalityReduction > (instead of "deprecate MultivariateStats") ? > > Dahua > > > On Friday, July 18, 2014 9:11:08 PM UT

Re: [julia-users] [ANN] MultivariateStats

2014-07-18 Thread Dahua Lin
John, I guess what you intended to say is to deprecate DimensionalityReduction (instead of "deprecate MultivariateStats") ? Dahua On Friday, July 18, 2014 9:11:08 PM UTC-5, John Myles White wrote: > > This is really great, Dahua. We should probably deprecate > MultivariateStats, which was al

Re: [julia-users] [ANN] MultivariateStats

2014-07-18 Thread John Myles White
This is really great, Dahua. We should probably deprecate MultivariateStats, which was always pretty unreliable. -- John On Jul 18, 2014, at 9:13 PM, Dahua Lin wrote: > Recently, I developed a new package for Julia (under JuliaStats): > MultivariateStats, for multivariate statistical analysi

[julia-users] [ANN] MultivariateStats

2014-07-18 Thread Dahua Lin
Recently, I developed a new package for Julia (under JuliaStats): MultivariateStats , for multivariate statistical analysis. Currently, the following functionalities have been implemented: - Data Whitening - Principal Component Analysis

[julia-users] Advice for a flight mechanics simulation

2014-07-18 Thread daniel . matz
First, I'm having a blast learning Julia. Thanks to all those who have worked on it. I'm an aerospace engineer who works on the design and analysis of planetary entry vehicles. Our workhorse tools are flight mechanics/dynamics simulations, which at their core just integrate the equations of m

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Steven G. Johnson
On Friday, July 18, 2014 6:01:07 PM UTC-4, Hans W Borchers wrote: > Wouldn't it be more appropriate to put more functions of special areas > into their own packages, > as for instance Python does with the SciPy module (and others). > I think that the thinking goes: 1) breaking Base into subm

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Hans W Borchers
> Note that linspace defaults to interpolating 100 points; > this is pretty inefficient here, ... > Also, there is the cis(x) function which does the same thing as exp(x*im). I know. Please not that this was meant as a test case only. And I wanted to the integration along the unit circle, not a

Re: [julia-users] Setting RNG seeds for parallel computing

2014-07-18 Thread Viral Shah
One thing we can do is use SFMT Jump. It's dependencies are not so straightforward to build, and I am not sure how well supported this is, but it may be the best way to get parallel streams. http://www.math.sci.hiroshima-u.ac.jp/~%20m-mat/MT/SFMT/JUMP/index.html -viral On Wednesday, July 16, 2

[julia-users] Re: erroneous cholfact behavior in conjunction with addprocs()

2014-07-18 Thread Viral Shah
This is now fixed now on master by using a new openblas release that fixes the bug. You can get the fix in tomorrow's nightly. Thanks for reporting! -viral On Thursday, July 10, 2014 4:20:07 AM UTC+5:30, Thomas Covert wrote: > > I have found cholfact to behave differently (erroneously?) under pa

[julia-users] Re: Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Viral Shah
Do also look at the "teaching" section of the Julia website. I guess we really should split it into "teaching" and "learning", since both are currently mixed up in there. -viral On Friday, July 18, 2014 8:53:47 PM UTC+5:30, Michael Bullman wrote: > > > Thank you all for the replies! Not going t

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

2014-07-18 Thread Viral Shah
Thanks Iain! Inline IJulia input is really useful. -viral On Friday, July 18, 2014 1:14:07 AM UTC+5:30, Iain Dunning wrote: > > Version 0.2 now has arrows and IJulia inline output! > > On Friday, July 4, 2014 3:54:33 PM UTC-4, Iain Dunning wrote: >> >> Like I said, pure Julia, but otherwise prett

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-18 Thread Viral Shah
I think that most new users are unlikely to know about apropos. Perhaps we should put it in the julia banner. We can say something like: Type "help()" for function usage or "apropos()" to search the documentation. apropos() could then just print a message about how to use it, just like help() d

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Steven G. Johnson
On Friday, July 18, 2014 4:11:34 PM UTC-4, Peter Simon wrote: > > Also, there is the cis(x) function which does the same thing as exp(x*im). > But I notice that it isn't (yet?) vectorized, > Should be fixed now in git master.

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Peter Simon
Also, there is the cis(x) function which does the same thing as exp(x*im). But I notice that it isn't (yet?) vectorized, so before using it with an array argument you must add @vectorize_1arg Number Base.cis On Friday, July 18, 2014 12:46:54 PM UTC-7, Steven G. Johnson wrote: > > > > On Fr

Re: [julia-users] Troubling memory allocation

2014-07-18 Thread Jameson Nash
Julia doesn't optimize code run in the global scope. Try putting your code in a function On Friday, July 18, 2014, eric l wrote: > I just started with Julia > > I run with Julia 0.2.1 under Mac OSX 10.9.4 (Intel Core i7 with 8 GB @ > 1600MHz) > > > As a first try I decided to write a bit size bi

[julia-users] Troubling memory allocation

2014-07-18 Thread eric l
I just started with Julia I run with Julia 0.2.1 under Mac OSX 10.9.4 (Intel Core i7 with 8 GB @ 1600MHz) As a first try I decided to write a bit size bitmap module. I am Using Uint (Uint 64 on my laptop) I got some strange memory allocation value: julia> bmv = zeros (Uint, 2^20) 1048576-el

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Steven G. Johnson
On Friday, July 18, 2014 3:08:34 PM UTC-4, Hans W Borchers wrote: > > > julia> x = linspace(0, 2*pi); > > julia> points = exp(x*1im); > > julia> quadgk(z -> 1 ./ z, points...) > (-2.1630337481358435e-17 + 6.283185307179583im,5.957695483631124e-16) > Note that linspace defaults to

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Steven G. Johnson
On Friday, July 18, 2014 3:08:34 PM UTC-4, Hans W Borchers wrote: > > Okay, thanks, what was not so clear to me is how to use the "three dots" > notation to hand some points over to the integration function. > (The three dots are called "splicing" or "splatting", see http://julia.readthedocs.o

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Hans W Borchers
Okay, thanks, what was not so clear to me is how to use the "three dots" notation to hand some points over to the integration function. For example, to integrate 1/z along the unit circle around the pole at the origin: julia> x = linspace(0, 2*pi); julia> points = exp(x*1im); julia

[julia-users] Re: Strassen algorithm in Julia

2014-07-18 Thread Blake Johnson
I think what you want is a view rather than a copy. This will probably come to base Julia in the next release cycle, but for now you might check out the ArrayViews.jl package: https://github.com/lindahua/ArrayViews.jl On Friday, July 18, 2014 12:00:05 PM UTC-4, Yimin Zhong wrote: > > I tried to

Re: [julia-users] Re: Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Stefan Karpinski
For some people, it takes a while to get used to just how much you can do in the Julia REPL. It's basically an IDE with a very unassuming interface. The Julia REPL is has really good multiline editing and history, is multimodal ("?" for help, ";" for shell commands), does contextual tab completion,

[julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Steven G. Johnson
On Friday, July 18, 2014 7:12:32 AM UTC-4, Andrei Berceanu wrote: > > Space is an issue, yes, but I agree, I can process them one by one using > some sed scripting. I just thought there is a simple idiom corresponding to > Python's 2-liner above. > Sure, you can do: datastring = replace(reada

[julia-users] Re: Setting RNG seeds for parallel computing

2014-07-18 Thread Gray Calhoun
On Tuesday, July 15, 2014 5:25:11 PM UTC-5, Gray Calhoun wrote: > Hi everyone, I'm trying to start using Julia for some Monte > Carlo simulations (not MCMC) which I'd like to parallelize. I > haven't found any documentation for setting the RNG's seed for > parallelization. The naive approach gives

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Steven G. Johnson
On Friday, July 18, 2014 8:06:25 AM UTC-4, Hans W Borchers wrote: > > First, I think, Steven is talking about line integrals along a path, and > these integrals are one-dimensional. > > And secondly, of course you should avoid poles along your path, by making > the radius big enough, or similar

[julia-users] Re: Strassen algorithm in Julia

2014-07-18 Thread Yimin Zhong
by the way, I am making some notes on numerical stuff with julia. I plan to include this in my note. http://nbviewer.ipython.org/github/GaZ3ll3/Step_In_Julia/blob/master/notebook/Linear%20Algebra.ipynb On Friday, July 18, 2014 11:00:05 AM UTC-5, Yimin Zhong wrote: > > I tried to implement Strasse

Re: [julia-users] Issue with Pkg.new()

2014-07-18 Thread Keno Fischer
You are looking at the 0.1 docs. You probably want the latest ones: http://docs.julialang.org/en/latest/manual/packages/ On Fri, Jul 18, 2014 at 8:52 AM, wrote: > Right now I have a shared library written in C that I would like to turn > into a julia package. I attempted to create a new package

[julia-users] Strassen algorithm in Julia

2014-07-18 Thread Yimin Zhong
I tried to implement Strassen algorithm for matrix multiplication in julia. And here is the gist, a naive implementation. a sample benchmark is included at beginning of the file. https://gist.github.com/GaZ3ll3/87df748f76b119199fed It can beat Julia's A_mul_B!(). around 2~8% faster, depending

[julia-users] Issue with Pkg.new()

2014-07-18 Thread daniel . haugh
Right now I have a shared library written in C that I would like to turn into a julia package. I attempted to create a new package using Pkg.new("myCLib") but the interpreter said that Pkg.new was not defined. Is it feasible to attempt this. I was trying to use instructions detailed at http://d

Re: [julia-users] Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Michael Bullman
I was afraid to ask a stupid question, but good to know that it's not necessarily people being rude. Sometimes, they are just being concise. On Friday, July 18, 2014 11:13:33 AM UTC-4, Isaiah wrote: > > It's ok to ask "stupid" questions - often they aren't, and often they lead > to interesting

[julia-users] Re: Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Michael Bullman
Thank you all for the replies! Not going to lie, I was bit afraid of getting unfriendly responses since it was such a simple question, but this has been great. Looks like the general consensus is to make simple progress through trial by fire ;). Hopefully I'll eventually get to a point where I

Re: [julia-users] Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Isaiah Norton
It's ok to ask "stupid" questions - often they aren't, and often they lead to interesting discussions. Also be aware that basic questions might get a seemingly curt, one-line, "here try this command/look here in the manual/google this term" response [1]. Don't take it personally! Do try to follow u

Re: [julia-users] Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Gregg Reynolds
On Fri, Jul 18, 2014 at 8:49 AM, Michael Bullman wrote: > Sorry if this was a long winded question, but basically, what do I need to > know before I can start learning to use Julia? > > You already know enough to start learning. I recommend a change in perspective, from "what do I need to know?

Re: [julia-users] Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Leah Hanson
I agree with what John said. Additionally, as you have more specific questions that you get stuck on, please ask this mailing list. The manual is certainly incomplete; I went to look relevant section to direct you to, but the section on Networking & Streams is very networking focused. I have a gi

Re: [julia-users] Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread John Myles White
This might seem like just a reframing of the situation, rather than an answer, but I personally don't think there's any background knowledge you need to get started using Julia. What you need is a willingness to figure out what's going on by doing some digging through the manual, the general web

[julia-users] Background Knowledge needed to Start working with/learning Julia?

2014-07-18 Thread Michael Bullman
Hey Everyone, I'm very interested in learning Julia, but I feel like I'm missing some crucial background knowledge to really understand how Julia works. Just to give you guys my background, My first language was Java in high school, I got fairly good using it then, but in college I only barely

Re: [julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Andrei Berceanu
Seems like my files also contained blank lines periodically. I added blank line removal to the sed script and now it all works. Thanks a lot! On Friday, July 18, 2014 2:35:18 PM UTC+2, Mauro wrote: > > on julia0.3 this works: > > julia> readdlm("fl") > 3x3 Array{Float64,2}: > -70.0 -70.0

Re: [julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Mauro
on julia0.3 this works: julia> readdlm("fl") 3x3 Array{Float64,2}: -70.0 -70.0 3.0982e-10 -69.4531 -70.0 2.54816e-10 -68.9063 -70.0 2.23406e-10 julia> readdlm("fl", Float64) 3x3 Array{Float64,2}: -70.0 -70.0 3.0982e-10 -69.4531 -70.0 2.54816e-10 -68.9063 -70.0 2.23406e-1

Re: [julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Andrei Berceanu
Here are a few lines from one of my files, after sed preprocessing: -70.0 -70.0 3.098203380460164E-010 -69.453125000 -70.0 2.548160684589544E-010 -68.90625 -70.0 2.234061987906998E-010 There are

Re: [julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Andrei Berceanu
Here is 1 line from one of my files, after sed-magic: -70.0 -70.0 3.098203380460164E-010 -69.453125000 -70.0 2.548160684589544E-010 -68.90625 -70.0 2.234061987906998E-010 There are 2 spaces at th

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Hans W Borchers
First, I think, Steven is talking about line integrals along a path, and these integrals are one-dimensional. And secondly, of course you should avoid poles along your path, by making the radius big enough, or similar. These things are standard techniques in complex analysis. As an example, I

Re: [julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Mauro
> Space is an issue, yes, but I agree, I can process them one by one using > some sed scripting. I just thought there is a simple idiom corresponding to > Python's 2-liner above. > In fact, I am wondering, how difficult would it be to make julia accept the > Fortran double precision format nativ

[julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Andrei Berceanu
First, thank you both for your time. Space is an issue, yes, but I agree, I can process them one by one using some sed scripting. I just thought there is a simple idiom corresponding to Python's 2-liner above. In fact, I am wondering, how difficult would it be to make julia accept the Fortran d

Re: [julia-users] issubtype introspection oddities

2014-07-18 Thread Mauro
> Done and done [1]. I do however observe the same bug on 0.2.1 for the > test code that I supplied. That's a bit odd, I just checked again with 0.2.1 and no bug for me. Thanks!

[julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Tomas Lycken
Although you could, probably, do this in pure Julia, is there a reason to not write a small preprocessing script using sed (or your OS’s equivalent) to create altered *copies* of the data before reading it? If HDD space is an issue, you could do this one file at a time using Julia’s run method

[julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Tomas Lycken
Although you could, probably, do this in pure Julia, is there a reason to not write a small preprocessing script using `sed` (or your OS's equivalent) to create altered *copies* of the data before reading it? If HDD space is an issue, you could do this one file at a time using Julia's `run` met

[julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Andrei Berceanu
I would prefer to keep my original files intact. In Python I can do *import stringimport numpy as nprule = string.maketrans('D', 'E')data = np.loadtxt(fname, usecols=(2,3),\ converters = {2: lambda val: float(val.translate(rule)),\3: lambda

[julia-users] Re: reading data file using fortran's D scientific notation

2014-07-18 Thread Ivar Nesje
If you have a reasonable editor, you should be able to open all your files and issue a global search and replace operation that changes D to E. If you have many files you can use sed to automate the process. kl. 11:41:12 UTC+2 fredag 18. juli 2014 skrev Andrei Berceanu følgende: > > Hi all, > >

Re: [julia-users] issubtype introspection oddities

2014-07-18 Thread Pontus Stenetorp
Hello Mauro, On 18 July 2014 18:32, Mauro wrote: > > this is a bug. Running it inside vs outside of a function shows the > same issue: > > julia> @show issubtype(fieldtype(foo, :bar), Array) > issubtype(fieldtype(foo,:bar),Array) => true > true > > julia> f() = @show issubtype(fieldtype(foo,

[julia-users] Re: finding all roots of complex function

2014-07-18 Thread Andrei Berceanu
Say I would like to do the integral using quadgk. There are 2 caveats, however. Quoting from the Julia manual "These quadrature rules work best for smooth functions within each interval, so if your function has a known discontinuity or other singularity, it is best to subdivide your interval to

[julia-users] reading data file using fortran's D scientific notation

2014-07-18 Thread Andrei Berceanu
Hi all, I have a lot of datafiles containing numbers in Fortran's double precision notation (http://math.hawaii.edu/wordpress/fortran-3/#double), i.e. 1.23D-3, instead of the usual E scientific notation. Is there a simple way to import the data as Float64? Tnx! Andrei

[julia-users] Double subsetting of arrays

2014-07-18 Thread Tomas Krehlik
Hello, I am currently using the neat ability to be able to subset (create matrices) Vectors by passing Int array into the [...]. When using this technique with Matrix, one needs to first create a subset vector and subset that one by the indices array. If it is a bit cryptic, look at the code. I

Re: [julia-users] issubtype introspection oddities

2014-07-18 Thread Mauro
Hi Pontus, this is a bug. Running it inside vs outside of a function shows the same issue: julia> @show issubtype(fieldtype(foo, :bar), Array) issubtype(fieldtype(foo,:bar),Array) => true true julia> f() = @show issubtype(fieldtype(foo, :bar), Array) f (generic function with 1 method) julia

[julia-users] Re: "Visualising Algorithms" by Mike Bostock - inspiration for iJulia feature wishlist?

2014-07-18 Thread Job van der Zwan
On Friday, 18 July 2014 11:20:15 UTC+2, Job van der Zwan wrote: > > Hi all! I'm sure most of you have seen this come by a while ago on > reddit/HN or the blogosphere, but nevertheless, I'd like to draw your > attention to this wonderful interactive essay: > > http://bost.ocks.org/mike/algorithms/

[julia-users] "Visualising Algorithms" by Mike Bostock - inspiration for iJulia feature wishlist?

2014-07-18 Thread Job van der Zwan
Hi all! I'm sure most of you have seen this come by a while ago on reddit/HN or the blogosphere, but nevertheless, I'd like to draw your attention to this wonderful interactive essay: http://bost.ocks.org/mike/algorithms/ It really reminded me of iJulia notebooks, don't you agree?. I was wonde

[julia-users] issubtype introspection oddities

2014-07-18 Thread Pontus Stenetorp
Everyone, I recently took the introspection aspects of Julia for a spin and tried to pick out the values of all the fields of a composite type that were of a subtype of a certain type. What I observed puzzled me and after some time staring at the code I constructed the following minimal example t

[julia-users] CoolProp

2014-07-18 Thread Leon Bevc
You can use CoolProp in Julia language. CoolProp is an open-source database of fluid and humid air properties, formulated based on the most accurate formulations in open literature. It has been validated against the most accurate data available from the relevant references. http://coolprop.sour