[julia-users] Re: Any way of recovering a corrupted .julia?

2016-09-21 Thread Jānis Erdmanis
I would suggest to start over, but keep REQUIRE file. Then do Pkg.init(), put REQUIRE file back and Pkg.update(). On Tuesday, September 20, 2016 at 10:07:36 PM UTC+3, J Luis wrote: > > Hi, > > So I did it again. While trying to install ImageMagick and at same time > attempting to convince

[julia-users] JuliaCon 2016 Escher.jl examples

2016-07-06 Thread Jānis Erdmanis
Hello everybody, I am impressed by a recent Escher.jl JuliaCon presentation - youtube . I would like to try and tinker on these talk codes myself, is it possible now?

[julia-users] JuliaCon 2016 Escher.jl examples

2016-07-06 Thread Jānis Erdmanis
Hello everybody, I am impressed by a recent Escher.jl JuliaCon presentation - youtube . I would like to try and tinker on these talk codes myself, is it possible now?

[julia-users] Check if file is included in a another

2016-06-08 Thread Jānis Erdmanis
Hello everyone. Is it possible to tell if file is included another one? For example if I have file #test1.jl if (am I included in another file?) println("Nothing to do") else println("Testing the functions ...") end and another one #test2.jl include("test1.jl") I could be able

[julia-users] Re: Interfacing C++ function which takes structure and arrays

2016-04-07 Thread Jānis Erdmanis
g functionality as-needed, so if you hit other > problems like this feel free to create an issue on Github. > > Cheers, > > Bart > > > On Wednesday, April 6, 2016 at 9:51:39 PM UTC+2, Jānis Erdmanis wrote: >> >> Hello, >> >> are anyone using CxxWrap.jl l

[julia-users] Interfacing C++ function which takes structure and arrays

2016-04-06 Thread Jānis Erdmanis
Hello, are anyone using CxxWrap.jl library? I am trying to figure out a way to pass array to the function. So far I have came up to to this nonworking (makes julia to crash) code #include #include std::string greet(float * mem) { return "hello, world"; }

[julia-users] Extending REPL with a background process

2016-02-09 Thread Jānis Erdmanis
Hi, I am trying to make background plotting from values of specific variables defined at Julia interactive console (REPL). A minimal example for workflow which I want to achieve is: - Lets set value for variable x at REPL - execute magicfunction() which starts background process for printing x

[julia-users] Re: Extending REPL with a background process

2016-02-09 Thread Jānis Erdmanis
Single @spawn was sufficient for this difficult looking task :)) On Wednesday, February 10, 2016 at 1:45:34 AM UTC+2, Jānis Erdmanis wrote: > > Hi, > > I am trying to make background plotting from values of specific variables > defined at Julia interactive console (REPL). A

[julia-users] Re: Clebsch-Gordan and/or 3j symbols in julia ?

2015-12-07 Thread Jānis Erdmanis
You might try to interface fortran implementation https://github.com/valandil/wignerSymbols/blob/master/src/wignerSymbols-fortran.f , but I never have done such thing. On Monday, December 7, 2015 at 10:59:57 AM UTC+2, Ferran Mazzanti wrote: > > Hi folks, > > since I'm in the quantum mechanics

[julia-users] Spliting file in to multiple piecies

2015-11-26 Thread Jānis Erdmanis
Some code for my calculation can be generated automatically with different program. For now I just copy and paste the relevant output in my code which now looks like > > function UnitTriangleIntegration(f::Function,NP=16) > > >> xw = [0., 0., 0.] > > >> if NP==16 > >

[julia-users] Re: Spliting file in to multiple piecies

2015-11-26 Thread Jānis Erdmanis
On Thursday, November 26, 2015 at 5:34:46 PM UTC+2, Steven G. Johnson wrote: > > Macros are a much more powerful way of including code generation directly > in your source code in Julia. It feels like that this small snippet will solve my future issues :) macro barr() return :(a*2) end

[julia-users] Re: Collection of YAsnippets for Julia

2015-10-27 Thread Jānis Erdmanis
It looks useful, but I have no experience of configuring Yasnipet. Could you post relevant part of .emacs and also give some instructions where should I put these files? Also how to call these snippets are unknown to me ;) On Thursday, September 3, 2015 at 4:54:55 PM UTC+3, andreas wrote: > >

Re: [julia-users] Re: Converting an expression to the function

2015-10-22 Thread Jānis Erdmanis
er way to do this, but this should work: >> >> julia> fngen(expr,fn) = eval(parse(string(fn)* "=" * string(expr))) >> fngen (generic function with 1 method) >> >> julia> expr = :(x + y) >> :(x + y) >> >> julia> fngen(expr,:(f(x,y))) &g

[julia-users] Converting an expression to the function

2015-10-22 Thread Jānis Erdmanis
I am implementing boundary element method with curved elements. As it is daunting task to evaluate derivatives I thought about using `Calculus` symbolic differentiation which as output gives expression. Now I need to convert this expression to a function, but how can I do it? As an example

[julia-users] Using parallel reduce inside module

2015-09-15 Thread Jānis Erdmanis
For now I have following code which does the job outside module: module MyModule function parallel_inside(a::Array{Float64,1}) s = @parallel (+) for i in 1:100 sum(a) end end end function notparallel(a::Array{Float64,1}) s = 0 for i in 1:100 s += sum(a)