[julia-users] max function on sparse matrices

2015-07-10 Thread Huda Nassar
*julia> **A = sprand(5,5,2/5)* *5x5 sparse matrix with 9 Float64 entries:* *[3, 1] = 0.640396* *[3, 2] = 0.873544* *[3, 3] = 0.278582* *[4, 3] = 0.751313* *[1, 4] = 0.644883* *[2, 4] = 0.0778264* *[3, 4] = 0.848185* *

[julia-users] Re: Char Array to Integer Array Problem

2015-06-15 Thread Huda Nassar
You can use the parseint function: *julia> **a = '3'* *'3'* *julia> **typeof(a)* *Char* *julia> **b = parseint(a)* *3* *julia> **typeof(b)* *Int64* On Monday, June 15, 2015 at 12:39:14 PM UTC-4, James Byars wrote: > > Hey all, > > I am working through some Project Euler problem (#008) ab

[julia-users] Re: Set precision when printing to file

2015-06-15 Thread Huda Nassar
julia> f = open("test2.txt","w") IOStream() julia> @printf(f,"%0.2f",1/3) julia> close(f) This should do the job On Monday, June 15, 2015 at 9:50:17 AM UTC-4, Robert DJ wrote: > > Hi, > > I would like to write floating point numbers to a file and limit the > number of digits/decimals. With e.g

[julia-users] Re: Set precision when printing to file

2015-06-15 Thread Huda Nassar
julia> f = open("test.txt","w") IOStream() julia> @printf(f,"%0.2f",1/3) julia> close(f) This should do the job On Monday, June 15, 2015 at 9:50:17 AM UTC-4, Robert DJ wrote: > > Hi, > > I would like to write floating point numbers to a file and limit the > number of digits/decimals. With

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Huda Nassar
You shouldn't need root access. Just did this few weeks ago (downloaded and installed 0.3.8). Should work in any directory you have write access on. On Sunday, June 14, 2015 at 10:17:03 AM UTC-4, Daniel Carrera wrote: > > I never cease to be impressed by Julia's speed. I just wrote a test > prog

Re: [julia-users] Pkg.update()

2015-06-02 Thread Huda Nassar
; If you need the functionality it could be worthwhile making a fork of it > and getting it working on Julia 0.3 and later again. > > Thanks, > Iain > > On Tuesday, June 2, 2015 at 1:01:05 PM UTC-4, Huda Nassar wrote: >> >> Ah! Works now! Thank you :) >> >> Hoping that next versions will resolve such issues. >> >>> >>>

Re: [julia-users] Pkg.update()

2015-06-02 Thread Huda Nassar
Ah! Works now! Thank you :) Hoping that next versions will resolve such issues. > >

Re: [julia-users] Pkg.update()

2015-06-02 Thread Huda Nassar
Huda, > > Without a little more information, it's a little unclear. Did you > recently upgrade from Julia 0.2 to 0.3? Can you give the output of > Pkg.status()? > > Cheers, > Kevin > > > On Mon, Jun 1, 2015 at 11:05 PM, Huda Nassar > wrote: > &g

[julia-users] Pkg.update()

2015-06-02 Thread Huda Nassar
I think the following is self explanatory: julia> Pkg.update() INFO: Updating METADATA... INFO: Updating cache of WoodburyMatrices... INFO: Updating RobustStats... INFO: Computing changes... ERROR: Rmath can't be installed because it has no versions that support 0.3.7 of julia. You may need to up