[julia-users] Re: how to save array to text file "correctly"?

2016-06-26 Thread Hoang-Ngan Nguyen
Thanks, Ngan On Friday, June 24, 2016 at 2:50:56 AM UTC-7, Pieterjan Robbe wrote: > > f = open("myfile.csv","w") > > for i in 1:length(data) > > write(f,@sprintf("%20.16f\n",data[i])) > > end > > close(f) > > > shell> cat myfile.csv > > -0.5000 > > 0. > > -0.000

Re: [julia-users] ODE.jl - backwards (negative in time) integration

2016-06-26 Thread Chris Rackauckas
Nevermind, I realize that thought was silly because of how linear stability is defined. Carry on. Though I would still give a fixed timestep method a try to narrow down the bug to adaptive stepping. There may be some issue somewhere, something weird like how it chooses min/max timesteps? On Mo

Re: [julia-users] ODE.jl - backwards (negative in time) integration

2016-06-26 Thread Chris Rackauckas
Won't some of the Runge-Kutta solvers be really unstable with a small negative Delta t? What happens when you use a fixed time step method: does it run and diverge? On Friday, June 24, 2016 at 8:50:42 PM UTC+1, Mauro wrote: > > This is a bug, could you file an issue? Thanks! Note that some solv

[julia-users] Re: [ANN] Measurements.jl v0.1.1: Error propagation library

2016-06-26 Thread ggggg
Hello, This looks very nice. I will use it next time I have a need. I took a brief look at the code, and I have one question. Why did you choose to "tag" your Measurement types with a random Float64, instead of an incrementing integer? > >

Re: [julia-users] Segfault when defining generated method

2016-06-26 Thread Yichao Yu
On Sun, Jun 26, 2016 at 9:38 PM, Darwin Darakananda wrote: > That example seems to work on the version I'm using (commit c20199e). Could > they be separate issues? Unlikely > > On Sunday, June 26, 2016 at 5:47:36 PM UTC-7, Yichao Yu wrote: >> >> On Sun, Jun 26, 2016 at 8:15 PM, Darwin Darakanan

Re: [julia-users] Segfault when defining generated method

2016-06-26 Thread Darwin Darakananda
That example seems to work on the version I'm using (commit c20199e). Could they be separate issues? On Sunday, June 26, 2016 at 5:47:36 PM UTC-7, Yichao Yu wrote: > > On Sun, Jun 26, 2016 at 8:15 PM, Darwin Darakananda > > wrote: > > Hi All, > > > > Note that this is not related to generate

Re: [julia-users] Oracle ODBC

2016-06-26 Thread John Kim
In R, there are direct Oracle OCI drivers. According to the oracle benchmarks, they are 3x faster than the ODBC versions. Any idea if direct OCI will be supported for Julia? On Monday, May 9, 2016 at 1:03:25 AM UTC-7, Stefan Karpinski wrote: > > You have to install ODBC drivers yourself – the

Re: [julia-users] Segfault when defining generated method

2016-06-26 Thread Yichao Yu
On Sun, Jun 26, 2016 at 8:15 PM, Darwin Darakananda wrote: > Hi All, > Note that this is not related to generated function but the function signature (the segfault is in `jl_method_def`) Simpler repro ``` function update!(::Tuple) end function update!{N}(::Vararg{Tuple,N}) end ``` Please open

[julia-users] Segfault when defining generated method

2016-06-26 Thread Darwin Darakananda
Hi All, I'm running into a problem where Julia is segfaulting when creating a generated method for an existing function. This is the first time I'm using generated functions, so I'm not sure if I'm using it correctly. function update!(x::Vector{Int}, Δxs::Vector{Int}...) for i in eachindex(

[julia-users] Re: readdlm() pound sign at beginning of string is not read

2016-06-26 Thread Anonymous
oh ok, that makes sense, thanks! On Sunday, June 26, 2016 at 5:39:03 AM UTC-7, Dan wrote: > > Yes, this is the intended functionality because # is used a character > which starts a comment in the file which is not parsed. The simplest way > around this is to disble comments using the named param

Re: [julia-users] Efficient iteration for tensor dot product - alternatives to splatting

2016-06-26 Thread Tim Holy
I'd try TensorOperations.jl or AxisAlgorithms.jl Best, --Tim On Sunday, June 26, 2016 4:24:17 AM CDT Alex Williams wrote: > I'm trying to code an efficient implementation of the n-mode tensor > product. Basically, this amounts to taking a dot product between a vector > (b) and the mode-n fibers o

Re: [julia-users] Re: Segfaults in SharedArrays

2016-06-26 Thread Tim Holy
On Sunday, June 26, 2016 3:27:57 AM CDT Nils Gudat wrote: > Oh well that would explain why it had no effect then - is there some > version that contains this fix then? Would building the current 0.4.7+ > master from source do? (Sorry, I've stuck strictly to stable versions so > far so am not well v

[julia-users] [ANN] Measurements.jl v0.1.1: Error propagation library

2016-06-26 Thread Mosè Giordano
Hi all, I'm really happy to announce availability of Measurements.jl , v0.1.1, a full-fledged uncertainty propagation library. This is the list of features: - Support for most mathemati

[julia-users] Re: Tutorial Julia language brazilian portuguese

2016-06-26 Thread jmarcellopereira
ola a todos falantes do fonético português, hehehe. Estou com essa iniciativa de atrair usuários do matlab (em grande parte pirata) e acredito que Julia é muito promissora alternativa. Aqui na Unb ja está em andamento um minicurso com os calouros das engenharias e logo teremos mais participante

[julia-users] Re: readdlm() pound sign at beginning of string is not read

2016-06-26 Thread Dan
Yes, this is the intended functionality because # is used a character which starts a comment in the file which is not parsed. The simplest way around this is to disble comments using the named parameter `comments` like this: readdlm(file,'\t',comments=false) You can also change the character

Re: [julia-users] Re: Drop element from tuple

2016-06-26 Thread Tim Holy
On Saturday, June 25, 2016 6:45:05 AM CDT jw3126 wrote: > @Tim: Thanks for the insights! On my machine slowness starts to kick in at > size 9 already. Depends on which version of julia you're running (I'm running a recent julia-0.5-dev). > I tried to read the llvm code, but did not really > un

[julia-users] Re: pyplot how to change bground color ?

2016-06-26 Thread Henri Girard
Here is what I would like in ijulia it's in python, but I have problem to convert fig %matplotlib inline matplotlib.rcParams.update({'font.size': 12}) fig = matplotlib.pyplot.figure(figsize=(5,5), dpi=300, facecolor='black') fig.subpl

[julia-users] Efficient iteration for tensor dot product - alternatives to splatting

2016-06-26 Thread Alex Williams
I'm trying to code an efficient implementation of the n-mode tensor product. Basically, this amounts to taking a dot product between a vector (b) and the mode-n fibers of a higher-order Array. For example, the mode-3 product of a 4th order array is: ``` C[i,j,k] = dot(A[i,j,:,k], b) ``` After

[julia-users] Re: Segfaults in SharedArrays

2016-06-26 Thread Nils Gudat
Oh well that would explain why it had no effect then - is there some version that contains this fix then? Would building the current 0.4.7+ master from source do? (Sorry, I've stuck strictly to stable versions so far so am not well versed in how the master branches work)

[julia-users] Re: Drop element from tuple

2016-06-26 Thread jw3126
I did not mean to mutate the tuple. Just implement the index dropping by some code which directly specifies the bits of the new tuple as a function of the bits of the old tuple. On Saturday, June 25, 2016 at 5:40:08 PM UTC+2, Kristoffer Carlsson wrote: > > You cannot hack around the fact that a

[julia-users] Re: pyplot how to change bground color ?

2016-06-26 Thread Henri Girard
Here is the way I found to do it but that's quiet heavy. Plots it's so easy, but I don't convert ODE properly in julia. const g = 9.8# Accelaration of gravity const p = 1.2# Density of air # Caracteristics of the problem const m = 0.100 # A 100 g ba