[julia-users] Good example of reproducible research with Julia

2016-11-09 Thread Charles Novaes de Santana
Hi people, I just found a very interesting paper (published in Nature Genetics in January/2016) about cancer evolution modeling in which the authors used Julia to implement their model. More than this, they did a nice notebook to make their research reproducible. paper -

Re: [julia-users] Julia and Fortran: passing floating point numbers

2016-11-09 Thread Angel de Vicente
Hi, Alexey Cherkaev writes: > To cut long story short, I have a problem of passing floating-point numbers > from > Julia to Fortran subroutine. Documentation suggests, that each parameter to > Fortran's program needs "Ref{T}" wrapper as they are passed by reference

[julia-users] Re: How to built an array with some keys of a dictionary ?

2016-11-09 Thread David P. Sanders
El lunes, 7 de noviembre de 2016, 9:18:03 (UTC-5), Steven G. Johnson escribió: > > > > On Monday, November 7, 2016 at 9:02:44 AM UTC-5, Fred wrote: >> >> Hi, >> >> I have many problems to build arrays with the keys of a dictionary except >> for the simple situation : >> >> a = [uppercase(key)

Re: [julia-users] Iterating over non-zero entries of a sparse matrix

2016-11-09 Thread Milan Bouchet-Valat
Le mercredi 09 novembre 2016 à 05:37 -0800, Christoph Ortner a écrit : > Is there as iterator implemented that allows me to iterate over all > non-zero entries of a sparse matrix or vector? E.g.  > > for (i, j, z) in nonzeros(A)  > > > (I realise that nonzeros does something else!) As the docs

[julia-users] Julia and Fortran: passing floating point numbers

2016-11-09 Thread Alexey Cherkaev
I have encountered a rather strange error as I'm trying to create a wrapper for Fortran's TWPBVP (ODE BVP) solver. Full code is available at https://github.com/mobius-eng/TWPBVP.jl After downloading (to julia's package directory), run Pkg.build("TWPBVP") and Pkg.test("TWPBVP") The issue

[julia-users] Re: Iterating over non-zero entries of a sparse matrix

2016-11-09 Thread randmstring
Use findnz . Am Mittwoch, 9. November 2016 14:37:11 UTC+1 schrieb Christoph Ortner: > > Is there as iterator implemented that allows me to iterate over all > non-zero entries of a sparse matrix or vector? E.g. > > for (i, j, z) in

[julia-users] Iterating over non-zero entries of a sparse matrix

2016-11-09 Thread Christoph Ortner
Is there as iterator implemented that allows me to iterate over all non-zero entries of a sparse matrix or vector? E.g. for (i, j, z) in nonzeros(A) (I realise that nonzeros does something else!)

Re: [julia-users] Julia and Fortran: passing floating point numbers

2016-11-09 Thread Alexey Cherkaev
On a smaller example I can see that it is indeed is because floats are not double floats. It's seem to be the statement implicit double precision (a-h,o-z) in Fortran code that throws things upside down. I'm not so familiar with the Fortran standard and especially with gfortran extensions,

Re: [julia-users] Julia and Fortran: passing floating point numbers

2016-11-09 Thread Angel de Vicente
Alexey Cherkaev writes: > Found the problem: "double precision" on my machine (presumably, any 64-bit > machine) with "-fdefault-real-8" flag will be "real*16" (something like > non-existent "Float128" in Julia). In Fortran, if you want your code to be portable and

Re: [julia-users] Julia and Fortran: passing floating point numbers

2016-11-09 Thread Alexey Cherkaev
Found the problem: "double precision" on my machine (presumably, any 64-bit machine) with "-fdefault-real-8" flag will be "real*16" (something like non-existent "Float128" in Julia). On Wednesday, November 9, 2016 at 4:05:59 PM UTC+2, Alexey Cherkaev wrote: > > On a smaller example I can see

Re: [julia-users] Iterating over non-zero entries of a sparse matrix

2016-11-09 Thread Christoph Ortner
So `findnz` converts the matrix to a tuple of arrays (triplet), and it creates a copy of all data. So it is not quite what I was looking for. An iterator would be better.

Re: [julia-users] Iterating over non-zero entries of a sparse matrix

2016-11-09 Thread Christoph Ortner
missed that - thank you.

Re: [julia-users] Iterating over non-zero entries of a sparse matrix

2016-11-09 Thread Christoph Ortner
nzrange will work but is not as convenient.

Re: [julia-users] errorbar plot in Plots.jl

2016-11-09 Thread Li Zhang
the default color is all black, how to set the colors for errorbars? On Friday, October 14, 2016 at 10:23:34 PM UTC-7, franck...@gmail.com wrote: > > Beautiful, thank you! > > On Saturday, October 15, 2016 at 12:06:39 AM UTC+2, Tom Breloff wrote: >> >> Already implemented as attributes: yerror

[julia-users] ANN: StaticArrays.jl v0.1.0

2016-11-09 Thread Andy Ferris
Hi all, I would like to announce the upcoming v0.1.0 version of StaticArrays, which marks a certain point of maturity in this package. Bluntly put, the goal of StaticArrays is to improve performance over `Base.Array` for small arrays and when the size of an array is a (compile-time) constant.

[julia-users] Value assignment of compound expression

2016-11-09 Thread wangrui
Hi guys, I am new to Julia and learning from scratch. I ran into the compound expression like this: tri=base=5;height=10;1/2*base*height This is to calculate the triangle area. The result is right. But I am concerned about the value of "tri". What is it after the calculation. Shouldn't

[julia-users] Re: Value assignment of compound expression

2016-11-09 Thread Valentin Churavy
Welcome to Julia. Similar to other programming language you can (but you do not need to) use a semicolon as a separator between statements. So your code example is equivalent to: tri=base=5 height=10 1/2*base*height so there is no assignment to tri after the first line, and thus the value is

Re: [julia-users] Re: How to built an array with some keys of a dictionary ?

2016-11-09 Thread Fabian Gans
I usually use a = String[] Fabian