Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-09 Thread David P. Sanders
El jueves, 10 de julio de 2014 01:00:30 UTC-5, Stefan Karpinski escribió: > > This is really excellent. I thought you might appreciate that Jeff, Keno, > Viral and I are all sitting around watching this and thoroughly enjoying it. > > That is great to hear, thanks a lot :) > > On Wed, Jul 9,

Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-09 Thread Stefan Karpinski
This is really excellent. I thought you might appreciate that Jeff, Keno, Viral and I are all sitting around watching this and thoroughly enjoying it. On Wed, Jul 9, 2014 at 10:22 PM, David P. Sanders wrote: > Hi, > > I gave a 4-hour Julia tutorial at the SciPy 2014 meeting in Austin a > couple

[julia-users] New Julia tutorial from SciPy now online

2014-07-09 Thread David P. Sanders
Hi, I gave a 4-hour Julia tutorial at the SciPy 2014 meeting in Austin a couple of days ago. The video is now available online at https://www.youtube.com/watch?v=vWkgEddb4-A The IJulia notebooks are available at https://github.com/dpsanders/scipy_2014_julia Due to the nature of the audience

[julia-users] Composite type with dependent fields (using Base.setindex!)

2014-07-09 Thread Spencer Lyon
I have a very simple composite type: type DiscreteRv{T <: Real} q::Vector{T} Q::Vector{T} end DiscreteRv{T <: Real}(x::Vector{T}) = DiscreteRv(x, cumsum(x)) Here q represents a probability vector for a discrete random variable. Q is the associated cdf. I want to make sure that the r

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

2014-07-09 Thread Thomas Covert
Here's are two additional pieces to the puzzle. tl;dr is that the parallel version and serial version generate different cholesky factors, and that conditional on those computed factors, a "serial" call to cholfact(inv(C)) works fine on both computed factors, while a "parallel" call doesn't wor

Re: [julia-users] Interest in a Julia <-> Stan interface?

2014-07-09 Thread John Myles White
Thanks for the clarification. I had assumed that the core Stan library provides all substantive functionality. -- John On Jul 9, 2014, at 12:38 PM, Rob J. Goedman wrote: > HI John, > > CmdStan is the (C++) command line user interface to work with Stan, the > equivalent of what PyStan is for

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

2014-07-09 Thread Thomas Covert
I have found cholfact to behave differently (erroneously?) under parallel processing contexts than under standard settings. What I mean by "parallel processing" is simply having previously called addprocs(). Here is some example code that I am running on my mid-2009 MacBook Pro using a somewha

[julia-users] Re: efficient iterative updating for dataframe subsets

2014-07-09 Thread Steven G. Johnson
On Wednesday, July 9, 2014 1:59:46 PM UTC-4, Steve Bellan wrote: > > Hi Josh, thanks for the response. I've managed to get a working version up > with an Array. Its about twice as fast as R and I'm wondering if there are > still ways I can speed it up. Here's the Julia version: > > > (s__, mb_a

Re: [julia-users] Re: Setting the axis scale on Gadfly

2014-07-09 Thread Lucas Simões
Thank you very much, it worked exactly as I wanted! Lucas Silva Simões Curso de Ciências Moleculares, T22 2014-07-09 16:38 GMT-03:00 Darwin Darakananda : > Guide.xticks might be what you're looking for. For example: > > plot(sin, 0, pi, Guide.xticks(ticks=[0:0.2:pi])) > > > The y-axis can be s

Re: [julia-users] Interest in a Julia <-> Stan interface?

2014-07-09 Thread Rob J. Goedman
HI John, CmdStan is the (C++) command line user interface to work with Stan, the equivalent of what PyStan is for Python and RStan for R. My remark reflected recent issues where the feature set in RStan and CmdStan diverted slightly as these interfaces are never 'just' user interfaces but ofte

[julia-users] Re: Setting the axis scale on Gadfly

2014-07-09 Thread Darwin Darakananda
Guide.xticks might be what you're looking for. For example: plot(sin, 0, pi, Guide.xticks(ticks=[0:0.2:pi])) The y-axis can be specified with Guide.yticks On Wednesday, July 9, 2014 10:53:58 AM UTC-7, Lucas Simões wrote: > > I tried looking on the manual but I couldn't find anything clearly:

[julia-users] Re: early termination of @parallel for code

2014-07-09 Thread Thomas Covert
Thanks, @sync was exactly what I needed! On Wednesday, July 9, 2014 11:26:57 AM UTC-5, Johan Sigfrids wrote: > > I think that if you do > > @sync @parallel for nn in doset > ... > end > > Then it will wait to finish before continuing execution. > > > On Wednesday, July 9, 2014 7:22:06 PM UTC+3

[julia-users] trouble removing and re-adding package

2014-07-09 Thread Gustavo Lacerda
julia> Pkg.rm("Rif") INFO: No packages to install, update or remove INFO: Package database updated julia> Pkg.status() 2 required packages: - DataFrames0.5.6 - Distributions 0.5.2 25 additional packages: - Rif 0.0.0 9066

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

2014-07-09 Thread Robert Ennis
Fixed, and the demo now includes a basic example of mouse interaction. If you have any further trouble, feel free to open an issue on the github page: https://www.github.com/rennis250/Processing.jl Best, Rob On Wednesday, July 9, 2014 10:02:40 AM UTC+2, Job van der Zwan wrote: > > Ah, nice! A

[julia-users] Setting the axis scale on Gadfly

2014-07-09 Thread Lucas Simões
I tried looking on the manual but I couldn't find anything clearly: is there any way to set the scale on some aixs? More specifically I want to set the division step with which the numbers should appear on the x axis Thank you and sorry about the poor english =/

[julia-users] Re: Symmetric view of a Sparse Matrix

2014-07-09 Thread Eduardo Lenz
Hi.. I missed a :0) in my last comment, since I have no idea how to implement it ...

[julia-users] Re: Symmetric view of a Sparse Matrix

2014-07-09 Thread Eduardo Lenz
OK, I was thinking about general symmetric matrices (therefore I was thinking about LU - UMFPACK), though my operators are, indeed, positive definite. I never realized that Julia uses two different libraries for solving sparse matrices, but it makes sense. Good to know that it is a matter of cha

[julia-users] Re: Symmetric view of a Sparse Matrix

2014-07-09 Thread Douglas Bates
On Wednesday, July 9, 2014 11:41:59 AM UTC-5, Eduardo Lenz wrote: > > Thank you. > I just thought that, as Julia uses UMFPACK to solve it, one can just > inform UMFPACK that the matrix is symmetric (UMFPACK 4.1> can handle this > kind of matrix). Off course, it does not addresses other types of

Re: [julia-users] Re: ANN: Gumbo.jl (HTML parsing library)

2014-07-09 Thread Leah Hanson
This might be what you're looking for: https://github.com/Keno/URIParser.jl -- Leah On Wed, Jul 9, 2014 at 10:15 AM, Yuuki Soho wrote: > I've used it a little bit and it's very nice, great job! > > Just a related question, is there something to deal with html links > currently in Julia, parsin

[julia-users] Julia version on Elliot's PPA julia-nightlies

2014-07-09 Thread Douglas Bates
At least for the Trusty (14.04) Ubuntu distribution the last version of Julia in the julia-nightlies ppa seems to be Version 0.3.0-prerelease+3921 (2014-06-28 02:01 UTC) Commit 0b46af5* (11 days old master) Are there any indications of when a more recent version may become available? I ask be

[julia-users] Re: Symmetric view of a Sparse Matrix

2014-07-09 Thread Eduardo Lenz
Thank you. I just thought that, as Julia uses UMFPACK to solve it, one can just inform UMFPACK that the matrix is symmetric (UMFPACK 4.1> can handle this kind of matrix). Off course, it does not addresses other types of operations, like for example matrix products. But again, thank you for this

[julia-users] Re: early termination of @parallel for code

2014-07-09 Thread Johan Sigfrids
I think that if you do @sync @parallel for nn in doset ... end Then it will wait to finish before continuing execution. On Wednesday, July 9, 2014 7:22:06 PM UTC+3, Thomas Covert wrote: > > alright that didn't do it either. when I run this code interactively the > "write to disk" steps ge

[julia-users] Re: early termination of @parallel for code

2014-07-09 Thread Thomas Covert
alright that didn't do it either. when I run this code interactively the "write to disk" steps get executed before the @parallel for is done running, even if the contents of the for is just a function call. is there a way to not execute the stuff after the @parallel for until that code itsel

Re: [julia-users] Interest in a Julia <-> Stan interface?

2014-07-09 Thread John Myles White
I’m not sure I understand how a C++ FFI affects whether we’re interchangeable with Stan or CmdStan. Isn’t the use of CmdStan a hack necessitated by the absence of a strong C++ FFI, which would allow us to interface directly with Stan itself? — John On Jul 9, 2014, at 8:43 AM, Rob J. Goedman

[julia-users] Re: early termination of @parallel for code

2014-07-09 Thread Thomas Covert
I don't quite have a solution to my own question, but does this have to do with the multi-line nature of the above @parallel for? i.e., if I were to wrap up the if statement into a single function call, would things work properly? On Wednesday, July 9, 2014 8:40:26 AM UTC-5, Thomas Covert wro

Re: [julia-users] Interest in a Julia <-> Stan interface?

2014-07-09 Thread Rob J. Goedman
Viral, Didn't know about the 'shared grant proposal', certainly a tasty bit of info that should not get lost! John, Both Ben (Goodrich) and Bob (Carpenter) of the Stan team pointed me to another Julia package: https://github.com/brian-j-smith/Mamba.jl Brian has contributed and maintained th

Re: [julia-users] Ideomatic way to write a function that works with a collection of any Number (any subtype of type)

2014-07-09 Thread Steven G. Johnson
On Tuesday, July 8, 2014 9:19:51 PM UTC-4, Iain Dunning wrote: > > For your "additional" question: no overhead for the abstract version > versus the two specialized. Don't think of them as types like in C/C++ > function definition, think of them as a filter. Julia will compile a new > version fo

[julia-users] Re: ANN: Gumbo.jl (HTML parsing library)

2014-07-09 Thread Yuuki Soho
I've used it a little bit and it's very nice, great job! Just a related question, is there something to deal with html links currently in Julia, parsing all the ../, //, /, #, ? madness ? That would certainly be useful alongside Gumbo.

[julia-users] Re: The Meaning of `const`

2014-07-09 Thread Steven G. Johnson
On Tuesday, July 8, 2014 11:34:10 PM UTC-4, Leah Hanson wrote: > > I think I understand now, that `const` in Julia means that the type of the > variable must remain constant. This was very surprising to me. > `const` in Julia is supposed to mean that the symbol is always bound to the same vari

[julia-users] Re: Using a julia module inside function

2014-07-09 Thread Steven G. Johnson
No, you are not allowed to have a "using" statement inside a function. If you want to import a module but only use its symbols inside a specific function or set of functions, you have two options: 1) Use import: import Foo function bar(...) ... refer to Foo symbols via Foo.baz ... end

Re: [julia-users] Symmetric view of a Sparse Matrix

2014-07-09 Thread Andreas Noack
Not right now, but it is on the todo list to allow the Symmetric type to wrap sparse matrices. To be really useful, it would also require some methods that could exploit the symmetry, but that would probably come along the way. Maybe you already know that, but for positive definite sparse matrices

[julia-users] Symmetric view of a Sparse Matrix

2014-07-09 Thread Eduardo Lenz
Hi. I am new to Julia, so I apologize if this is a well known issue or if it has been discussed before. I work with symmetric sparse matrices and I would like to know if its possible to store just the upper (or lower) part of a matrix and inform Julia when using this matrix to solve a linear

[julia-users] early termination of @parallel for code

2014-07-09 Thread Thomas Covert
I'm having trouble debugging some @parallel for code, pasted below. In particular, Julia seems to execute the "saving to disk" code before all of the parallel workers have finished. Why is this? If the details are needed, "dsm" and "fnm" are bool arrays, (theta0,y,X,Ds,M,G,T,Xs) are data no

[julia-users] Using a julia module inside function

2014-07-09 Thread El Afrit Mariem
Hi, I was trying to use the Gaston module inside a function but I failed. I don't know if it's possible with Julia. If yes what is the correct syntax. Thank you very much.

[julia-users] Re: The Meaning of `const`

2014-07-09 Thread Mauro
You missed this: http://docs.julialang.org/en/latest/manual/variables-and-scoping/#constants However, it is not very clear, in particular concerning constant type vs constant value. So an update would be good. Also, does it belong into the scope-section? On Wednesday, July 9, 2014 4:34:10 AM

Re: [julia-users] Ideomatic way to write a function that works with a collection of any Number (any subtype of type)

2014-07-09 Thread Tim Holy
inference.jl exists to infer your types at compile time. There are cases where it can't do so successfully, in which case the type indeed has to be determined at runtime. But this failure happens relatively rarely, and a "git log --oneline | grep -i infer" will show you that a lot of work has go

[julia-users] Re: Using Sparse Matrix Algorithms: Spatial Econometrics

2014-07-09 Thread Simon Byrne
Hi Don, On Tuesday, 8 July 2014 20:51:42 UTC+1, Donald Lacombe wrote: > > 2) When I use A = sparse(In - rho*W) I get the following warning from > Julia and a break: > > julia> sar_gibbs > > LoadError("C:/Users/Don/Desktop/Julia Materials/SAR > Gibbs/sar_gibbs.jl",13,ErrorException("The inverse o

Re: [julia-users] The Meaning of `const`

2014-07-09 Thread Tim Holy
Interesting question. Perhaps an example like this: julia> const x = 10 10 julia> x = 11 Warning: redefining constant x 11 julia> x = 11.0 ERROR: invalid redefinition of constant x could come fairly early (maybe in "Variables"). I'd say mention of the array behavior could come in "Multi-dimens

Re: [julia-users] Types and interfaces

2014-07-09 Thread Tobias Knopp
Indeed this is looking very interesting. I still think that defining interfaces is worth as this is also about documentation, but for validation this is really cool. Am Mittwoch, 9. Juli 2014 06:12:54 UTC+2 schrieb Stefan Karpinski: > > That's a really cool idea. It will be really interesting to

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

2014-07-09 Thread Job van der Zwan
Ah, nice! Anyway, I ran into some trouble when trying to load the example, but from the looks of it the cause is not something inside Processing.js, right? ERROR: win not defined > in include at ./boot.jl:244 > in include_from_node1 at ./loading.jl:128 > in eval at no file > in include at ./