Re: [julia-users] How to enter a file using gallium?

2016-11-21 Thread Michele Zaffalon
How would you do that in MATLAB? On Mon, Nov 21, 2016 at 5:00 PM, wrote: > Well, if A is a complicated object/structure, it'll be almost impossible to > first make up an A and call @enter function_to_debug(A). > > > > On Monday, November 21, 2016 at 2:32:16 PM UTC, Isaiah

Re: [julia-users] How to enter a file using gallium?

2016-11-19 Thread Michele Zaffalon
> Thanks!! > > > On Saturday, November 19, 2016 at 12:26:38 PM UTC, Michele Zaffalon wrote: >> >> The @enter should be prepended to the function in the REPL, not in the >> file itself. It should be something like this: >> >> julia> include("

Re: [julia-users] How to enter a file using gallium?

2016-11-19 Thread Michele Zaffalon
gt; ERROR: LoadError: AssertionError: isa(arg,Expr) && arg.head == :call > in include_from_node1(::String) at ./loading.jl:488 > while loading /home/calvin/Documents/git/codes/fc.jl/examples/test.jl, in > expression starting on line 19 > > Am I missing anything? Thanks! > > >

Re: [julia-users] How to enter a file using gallium?

2016-11-18 Thread Michele Zaffalon
You @enter the function, not the file. What function would you call once you include test.jl? That is the function to which you should prepend @enter. On Fri, Nov 18, 2016 at 6:49 PM, wrote: > > > Hi there, > > I'm totally new to the new debuggers. What I'm aiming at is to

[julia-users] Re: How to stop program execution at some point

2016-11-07 Thread Michele Zaffalon
If I understand correctly and die raises an exception in Perl, then error() is the equivalent in Julia. `break` can only be used inside a loop, for instance when a condition is met: while true cond && break end On Monday, November 7, 2016 at 11:21:14 AM UTC+1, Fred wrote: > > Hi, > > I

Re: [julia-users] anonymous function

2016-10-28 Thread Michele Zaffalon
Thank you for the clarification. On Fri, Oct 28, 2016 at 8:23 PM, Yichao Yu <yyc1...@gmail.com> wrote: > On Fri, Oct 28, 2016 at 2:19 PM, Michele Zaffalon > <michele.zaffa...@gmail.com> wrote: > > I have read somewhere that your second approach is doing two thing

Re: [julia-users] anonymous function

2016-10-28 Thread Michele Zaffalon
I have read somewhere that your second approach is doing two things at the same time: defining an anonymous function and assigning the name f to it. On Fri, Oct 28, 2016 at 8:12 PM, digxx wrote: > So an anonymous function I can write like this > > f=x->x^2 > > is it

Re: [julia-users] Binary read

2016-10-25 Thread Michele Zaffalon
mbers.dat") > > a = read(f, Int32) > > a = read(f, Int32) > > a = read(f, Int32) > > > then a is different each time. I believe I read something about that you > should use command close() each you opened something. Is this correct? > > > вторник, 25 октяб

Re: [julia-users] Binary read

2016-10-25 Thread Michele Zaffalon
You open the file in the correct way. To read the integer, do read(f, Int32) followed by read(f, Float64, 1_000_000) to read the million floats. See the manual at http://docs.julialang.org/en/release-0.5/stdlib/io-network/ On Tue, Oct 25, 2016 at 10:05 PM, Aleksandr Mikheev

Re: [julia-users] How to save an object of a defined type

2016-10-24 Thread Michele Zaffalon
Can you post a bit more of the code? From the error message, it looks like you are trying to open an already opened file... On Sat, Oct 22, 2016 at 7:42 PM, wrote: > I have a module defined as module *Core* within which I have defined > several types (*Node*, *Edge*, *Res*).

Re: [julia-users] Re: canonical binary representation for Array

2016-10-23 Thread Michele Zaffalon
write does > only dump the memory on disk this is also not going to change. > > Cheers, > > Tobi > > > Am Mittwoch, 19. Oktober 2016 09:03:49 UTC+2 schrieb Michele Zaffalon: >> >> On Thursday, October 13, 2016 at 3:38:36 PM UTC+2, Steven G. Johnson >> wrote

Re: [julia-users] Re: Float64: 1.0 vs. 1.

2016-10-23 Thread Michele Zaffalon
See also here: https://groups.google.com/d/msg/julia-users/hIVawSgFvOs/9EpbqwWWBgAJ and the conclusion was: avoid writing 1. (which will not be allowed by the parser some time) and write 1.0 instead. On Mon, Oct 24, 2016 at 3:40 AM, J Luis wrote: > It parses .+ as

Re: [julia-users] Julia 0.5 precompilation failures

2016-10-21 Thread Michele Zaffalon
I am not sure if this is the reason, but the manual ( http://docs.julialang.org/en/release-0.5/manual/modules/) says you should put _precompile_() before the module starts. On Fri, Oct 21, 2016 at 10:56 PM, Rohit Varkey Thankachan < rohitvar...@gmail.com> wrote: > Hi, > > I've been trying to use

Re: [julia-users] Testing uncommitted changes to a package

2016-10-21 Thread Michele Zaffalon
And that command would be push!(LOAD_PATH, $PWD/src) On Fri, Oct 21, 2016 at 5:36 PM, Yichao Yu wrote: > Add $PWD/src to LOAD_PATH instead. This way you can also make sure you are > not using Pkg incorrectly in your package. > > > On Fri, Oct 21, 2016 at 11:11 AM, Chandrakant

Re: [julia-users] congratulations to Indian dost

2016-10-19 Thread Michele Zaffalon
Tim Holy: I had hoped you learnt to be more careful with untested versions. See what happened this time around: https://www.theguardian.com/science/2016/oct/20/bad-day-for-space-probes-one-lost-on-mars-another-in-safe-mode-at-jupiter? On Wednesday, September 24, 2014 at 5:27:52 PM UTC+2, Tim

Re: [julia-users] Re: product of Int64 and Float64 is Int64

2016-10-19 Thread Michele Zaffalon
t; this. personally, i would not even allow this syntax at all. > > On Wednesday, October 19, 2016 at 1:11:38 PM UTC+2, Michele Zaffalon wrote: >> >> I am confused by the type of the result of `1.*80`, which is `Int64`, >> despite the fact that `1.` is `Float64`, and that `Float64(1)*80` is a >> `Float64`: >> >

Re: [julia-users] product of Int64 and Float64 is Int64

2016-10-19 Thread Michele Zaffalon
Thanks. On Wed, Oct 19, 2016 at 1:46 PM, <lapeyre.math1...@gmail.com> wrote: > Or include a space. > > parse("1. * 80") --> :(1.0 * 80) > > parse("1.* 80") --> :(1 .* 80) > > On Wednesday, October 19, 2016 at 1:30:27 PM UTC+2, Mauro wrote

Re: [julia-users] product of Int64 and Float64 is Int64

2016-10-19 Thread Michele Zaffalon
And julia> parse("1.*80") :(1 .* 80) julia> parse("1.0*80") :(1.0 * 80) On Wednesday, October 19, 2016 at 1:36:00 PM UTC+2, Michele Zaffalon wrote: > > I should have realized that: > > julia> promote(1., 80) > (1.0,80.0) > julia> 80*1. > 8

Re: [julia-users] product of Int64 and Float64 is Int64

2016-10-19 Thread Michele Zaffalon
I should have realized that: julia> promote(1., 80) (1.0,80.0) julia> 80*1. 80.0 Thank you. On Wednesday, October 19, 2016 at 1:30:27 PM UTC+2, Mauro wrote: > > On Wed, 2016-10-19 at 13:11, Michele Zaffalon <michele@gmail.com > > wrote: > > I am confused by t

[julia-users] product of Int64 and Float64 is Int64

2016-10-19 Thread Michele Zaffalon
I am confused by the type of the result of `1.*80`, which is `Int64`, despite the fact that `1.` is `Float64`, and that `Float64(1)*80` is a `Float64`: julia> typeof(1.), typeof(80), typeof(1.*80), typeof(Float64(1.)*80) (Float64,Int64,Int64,Float64) Does it have to do with the fact that both

Re: [julia-users] Re: canonical binary representation for Array

2016-10-19 Thread Michele Zaffalon
On Thursday, October 13, 2016 at 3:38:36 PM UTC+2, Steven G. Johnson wrote: > > write on a numeric array will output the raw bytes, i.e. Column-major data > in the native byte order. > > > Would it be a reasonable assumption that reshaping will not change the ordering in future Julia

Re: [julia-users] Re: quadgk with 2 arguments

2016-10-19 Thread Michele Zaffalon
You are right. On Wed, Oct 19, 2016 at 12:37 AM, Steven G. Johnson <stevenj@gmail.com> wrote: > > > On Tuesday, October 18, 2016 at 4:34:38 PM UTC-4, Michele Zaffalon wrote: >> >> quadgk(t -> cis(gamma(t)), 0, 1) >> > > No, this is wrong because you forgot the Jacobian factor. >

Re: [julia-users] Re: quadgk with 2 arguments

2016-10-18 Thread Michele Zaffalon
quadgk(t -> cis(gamma(t)), 0, 1) On Tue, Oct 18, 2016 at 10:27 PM, digxx wrote: > do u have an example for how to use a contour? > quadgk(cis,0,1+1*im) > probably integrates over the straight line so how can I integrate over the > line gamma(t)=t+im*t^2 >

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Michele Zaffalon
No worries, I had the same question and I happened to have that web page open. On Fri, Oct 14, 2016 at 1:05 AM, Florian Oswald <florian.osw...@gmail.com> wrote: > Oh! Sorry I didn't get that. Thanks! > > > On Thursday, 13 October 2016, Michele Zaffalon <michele.zaffa.

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Michele Zaffalon
>From ASTInterpreter's README: - `stuff runs stuff in the current frame's context On Thu, Oct 13, 2016 at 5:47 PM, Florian Oswald <florian.osw...@gmail.com> wrote: > how can I print the value of a variable while in debug mode? > > > > On Thursday, 13 October 2016

Re: [julia-users] How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-10-13 Thread Michele Zaffalon
Aside from Gallium.jl, you should also check ASTInterpreter.jl 's README which gives the list of commands. The documentation seems to be spread across the two packages. On Thu, Oct 13, 2016 at 5:15 PM, Florian Oswald wrote: >

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I wish there was documentation for the file format aside from the MATLAB implementation which also just uses `reshape`. The only sure thing about the format is that the first byte of the file is the endianness. On Thu, Oct 13, 2016 at 3:38 PM, Steven G. Johnson wrote:

Re: [julia-users] Re: canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I guess I was not clear enough: I cannot change the file format, so a Julia-specific solution is not going to work. On Thu, Oct 13, 2016 at 2:54 PM, FANG Colin wrote: > Are you trying to serialise Julia objects? Why don't you try json or > msgpack or so as your encoding? >

Re: [julia-users] How to write data to new line in outfile.txt

2016-10-13 Thread Michele Zaffalon
What about a newline with write(f, "\n") before writing the next block of data into the file? On Thu, Oct 13, 2016 at 1:08 PM, wrote: > How to write data to new line in outfile.txt file, in this script data i > still writing in the same line > > io=open("outfile.txt",

[julia-users] Re: Dictionary type inference

2016-10-13 Thread Michele Zaffalon
With one element only, type inference gives: julia> typeof(Dict(sin => sin)) Dict{Base.#sin,Base.#sin} On Thursday, October 13, 2016 at 9:26:37 AM UTC+2, David van Leeuwen wrote: > > Hello, > > I have stumbled across the following type inference issue for `Dict`s in > julia-v0.5: > > julia>

[julia-users] canonical binary representation for Array

2016-10-13 Thread Michele Zaffalon
I need to write a 4 dimensional a array to file and use write(f, a). What is the canonical binary representation of a ? It looks like the the line above is equivalent to write(f, reshape(a, prod(size(a Is the

Re: [julia-users] Re: read binary file with endianness

2016-10-07 Thread Michele Zaffalon
Thank you. On Thu, Oct 6, 2016 at 8:42 PM, Steven G. Johnson wrote: > Yes, just read in the first byte, and then read in the rest of the data, > calling ntoh or hton as needed on each datum. >

[julia-users] read binary file with endianness

2016-10-06 Thread Michele Zaffalon
I am porting MATLAB code to read a binary file for which the endianness is encoded in the first byte of the file. The MATLAB code opens the file to read the first byte, and reopens the file with `fopen` which takes as one of the arguments the endianness. What is the Julian equivalent? So far I

Re: [julia-users] Generators vs Comprehensions, Type-stability?

2016-09-25 Thread Michele Zaffalon
In an email a few days back, Steven Johnson wrote: "We could use type inference on the function t -> t^2 (which is buried in the generator) to determine a more specific eltype." A feature request, maybe? On Sun, Sep 25, 2016 at 11:29 PM, Christoph Ortner < christophortn...@gmail.com> wrote: > >

Re: [julia-users] Generators vs Comprehensions, Type-stability?

2016-09-25 Thread Michele Zaffalon
On Sat, Sep 24, 2016 at 8:54 PM, Steven G. Johnson wrote: > > julia> (begin;println(t);t^2;end for t=1:10) >> Base.Generator{UnitRange{Int64},##37#38}(#37,1:10) >> > > Julia knows that the input to the generator is a UnitRange{Int64}, i.e. > 1:10, so the input elements are

Re: [julia-users] Generators vs Comprehensions, Type-stability?

2016-09-24 Thread Michele Zaffalon
On Fri, Sep 23, 2016 at 1:14 PM, Steven G. Johnson <stevenj@gmail.com> wrote: > > > On Friday, September 23, 2016 at 2:42:00 AM UTC-4, Michele Zaffalon wrote: >> >> On Fri, Sep 23, 2016 at 2:23 AM, Steven G. Johnson <steve...@gmail.com> >> wrote:

Re: [julia-users] Generators vs Comprehensions, Type-stability?

2016-09-23 Thread Michele Zaffalon
gt; why would type inference for sum(t^2 for t in r) be different from [t^2 > for t in r] ? > > On Friday, 23 September 2016 07:42:00 UTC+1, Michele Zaffalon wrote: >> >> On Fri, Sep 23, 2016 at 2:23 AM, Steven G. Johnson <steve...@gmail.com> >> wrote: >>>

Re: [julia-users] Generators vs Comprehensions, Type-stability?

2016-09-23 Thread Michele Zaffalon
On Fri, Sep 23, 2016 at 2:23 AM, Steven G. Johnson wrote: > > > We could use type inference on the function t -> t^2 (which is buried in > the generator) to determine a more specific eltype. > Does this not require evaluating the function on all inputs thereby losing the

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-13 Thread Michele Zaffalon
in this case make perfect sense. Coming > from other languages, you may find it surprising, but that's always part > of learning a new language. My own preference is to write quite a bit of > code in a language before commenting on whether certain features "make > sense", but Y

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-13 Thread Michele Zaffalon
r to copy its > first argument or not, which would be a mess. > > On Tue, Sep 13 2016, Michele Zaffalon wrote: > > > I have been bitten by this myself. Is there a user case for having an > array > > filled with references to the same object? Why would one want this > > beha

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Michele Zaffalon
I have been bitten by this myself. Is there a user case for having an array filled with references to the same object? Why would one want this behaviour? On Tue, Sep 13, 2016 at 4:45 AM, Yichao Yu wrote: > > > On Mon, Sep 12, 2016 at 10:33 PM, Zhilong Liu

Re: [julia-users] [JuliaOpt] Beginner questions?

2016-09-10 Thread Michele Zaffalon
There is the julia-opt forum: https://groups.google.com/forum/#!forum/julia-opt On Sat, Sep 10, 2016 at 2:38 PM, Colin Beckingham wrote: > OK for Optim beginner questions here? >

Re: [julia-users] different Eigenvalue results Julia vs Matlab

2016-09-10 Thread Michele Zaffalon
You mean they are not simply permuted? Can you report the MATLAB and Julia results in the two cases for a small covX matrix? On Sat, Sep 10, 2016 at 1:34 PM, Dennis Eckmeier < dennis.eckme...@neuro.fchampalimaud.org> wrote: > Hi, > > I am new to Julia and rather lay in math. For practice, I am

Re: [julia-users] Julia equivalent to Matlab's [Q, R, P] = qr(A)?

2016-09-06 Thread Michele Zaffalon
I think you should use qrfact(A,value{true}): http://docs.julialang.org/en/release-0.4/stdlib/linalg/?highlight=qrfact#Base.qrfact On Wed, Sep 7, 2016 at 3:37 AM, Stuart Brorson wrote: > Hello Julia users, > > Matlab has a variant of the QR decomposition invoked like this: > >

Re: [julia-users] How to avoid LOAD_PATH at each julia session

2016-09-06 Thread Michele Zaffalon
And here: http://docs.julialang.org/en/release-0.4/manual/modules/?highlight=juliarc On Tue, Sep 6, 2016 at 4:05 PM, Michele Zaffalon <michele.zaffa...@gmail.com > wrote: > Put that line in .juliarc as described in the docs: http://docs.julialang. > org/en/release-0.4/manual/get

Re: [julia-users] How to avoid LOAD_PATH at each julia session

2016-09-06 Thread Michele Zaffalon
Put that line in .juliarc as described in the docs: http://docs.julialang.org/en/release-0.4/manual/getting-started/?highlight=juliarc On Tue, Sep 6, 2016 at 4:00 PM, Ahmed Mazari wrote: > hello > push!(LOAD_PATH," the path") > > how can l avoid putting this line of

Re: [julia-users] Julia with fewer dependencies?

2016-09-06 Thread Michele Zaffalon
Is this maybe what you are looking for https://groups.google.com/d/msg/julia-users/WStpLtrKiFA/JhiAbc-vAwAJ? On Mon, Sep 5, 2016 at 11:10 PM, Joaquim Masset Lacombe Dias Garcia < joaquimdgar...@gmail.com> wrote: > > The basic question is "Can I compile a smaller version of julia?" > > For

Re: [julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Michele Zaffalon
Did you notice that Igor said Windows 7 x64 only for the moment? On Thu, Aug 25, 2016 at 1:27 PM, Henri Girard wrote: > That's what I got in julia, I put the so lib in /usr/lib/ > The linux app qwtw is working properly. > > > > julia> using qwtwplot > ERROR: LoadError:

Re: [julia-users] New to Julia - Need some basic help

2016-08-19 Thread Michele Zaffalon
What code did you download? On Fri, Aug 19, 2016 at 10:24 AM, Pigskin Ablanket < pigskinablan...@gmail.com> wrote: > Ok, I am trying to familiarize myself with a study published using Julia. > I have Julia up and running, but cant seep to get the actual code open. > > Here is what I done so far:

Re: [julia-users] PyCall: keyword arguments that are reserved in Julia

2016-07-13 Thread Michele Zaffalon
ase_build.graphene_nanoribbon(3, 4, kind="armchair")? On Wed, Jul 13, 2016 at 10:19 AM, Christoph Ortner < christophortn...@gmail.com> wrote: > I was recently trying to > ```julia > @pyimport ase.build as ase_build > ase_build.graphene_nanoribbon(3, 4, type="armchair") > ``` > which throws the

Re: [julia-users] Re: integrate.odeint(f,t)

2016-06-20 Thread Michele Zaffalon
And remember to change your f(y,t) because Julia has 1-based arrays. On Mon, Jun 20, 2016 at 9:32 PM, Michele Zaffalon < michele.zaffa...@gmail.com> wrote: > Also linspace(0.01,0) is not the same as [0.01,0] > > On Mon, Jun 20, 2016 at 8:15 PM, Henri Girard <henri.gir...@

Re: [julia-users] Re: integrate.odeint(f,t)

2016-06-20 Thread Michele Zaffalon
Also linspace(0.01,0) is not the same as [0.01,0] On Mon, Jun 20, 2016 at 8:15 PM, Henri Girard wrote: > After correction still doesn't work. > I have this function from another programme which is working, i wonder if > it's not my odeint(f,y,t) which is wrong ? > > > Le

Re: [julia-users] integrate.odeint(f,t)

2016-06-20 Thread Michele Zaffalon
Your first line should be @pyimport scipy.integrate as integrate. On Mon, Jun 20, 2016 at 5:32 PM, Henri Girard wrote: > I am trying to convert from python to julia, but I don't know how to use > y1=integrate.odeint(f,t), apparently I should have add a derivativ ? > >

Re: [julia-users] ComplexPhasePortrait

2016-06-18 Thread Michele Zaffalon
What is it? Is it a function in a package? On Sat, Jun 18, 2016 at 8:52 AM, Henri Girard wrote: > HI, > I would like to use complexphaseportrait but I can't find any examples, > somebody can guide me to these ? > Regards > HG >

Re: [julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Michele Zaffalon
Henri, you gave two examples with two different values of R: 40 in the first case and 1000 in the second. In the case with R=1000, the resonance is so damped that the peak at 1 / sqrt(LC) has disappeared, and the curve simply bends downwards. You should define your frequency correctly, like fr=

Re: [julia-users] how to plot a point in julia with pyplot

2016-06-16 Thread Michele Zaffalon
using PyPlot # in 2D plot([1.], [2.], "o") # in 3D plot3D([1.], [2.], [3.], "o") On Thu, Jun 16, 2016 at 12:37 PM, SHORE SHEN wrote: > how to plot a point in julia with pyplot >

Re: [julia-users] Re: Plots 2 pic ?

2016-06-16 Thread Michele Zaffalon
2*pi*R*C does not have the same value as z*s. On Thu, Jun 16, 2016 at 10:36 AM, Henri Girard wrote: > Angular pulsation with pyplot works as whishes : > > using PyPlot > plt=PyPlot > R=40;L=1/pi*360E-2;C=1/(pi*360E+2);ω=1/(sqrt(L*C)) > fr=linspace(0,2ω) >

Re: [julia-users] Plots 2 pic ?

2016-06-16 Thread Michele Zaffalon
Maybe because you are missing factors of 2pi and (2pi)^2in your formula for y? On Thu, Jun 16, 2016 at 9:22 AM, Henri Girard wrote: > Hi, > When I make my plots I have two plots, but before I hadn't this... > w is the resoning frequency, but it should appear at 0 (zéro)

[julia-users] plans to add an extended standard library section?

2016-06-02 Thread Michele Zaffalon
Related to the recent discussion https://groups.google.com/d/msg/julia-users/IV4ulyX_dCc/fseYrc7xPgAJ Are there any plans to add the documentation for StatsBase.jl to http://docs.julialang.org/, maybe as an "extended standard library" section? I for myself, use DataStructures often and the

Re: [julia-users] random number generation

2016-06-01 Thread Michele Zaffalon
shuffle(collect(1:14))[1:6] but I remember seeing a method that picks n random elements from an array. By the way, shuffle(1:14) does not seem to work. On Wed, Jun 1, 2016 at 8:32 PM, El suisse wrote: > I think like this: > > `rand(1:14, 6)` > > 2016-06-01 15:24 GMT-03:00

Re: [julia-users] Re: julia equivalent of python [] (Part II)

2016-06-01 Thread Michele Zaffalon
What is OP? On Wed, Jun 1, 2016 at 12:14 PM, Milan Bouchet-Valat wrote: > Le mercredi 01 juin 2016 à 02:35 -0700, Lutfullah Tomak a écrit : > > julia> b_prime = ["8",9,10,c] > > > > This works with Any. > > > > julia> Any["3", 4, 14, c] > > 4-element Array{Any,1}: > >"3"

Re: [julia-users] Re: Quadratic equation solver ?

2016-05-31 Thread Michele Zaffalon
JuMP is a modeling language for linear and quadratic optimization problems, see http://www.juliaopt.org/ On Tue, May 31, 2016 at 1:26 PM, Mosè Giordano wrote: > which one is a good solver(open source) for quadratic equation using jump >> ? Thank you >> > > What is

Re: [julia-users] This application has requested the Runtime to terminate it in an unusual way

2016-05-27 Thread Michele Zaffalon
User/x86_64-w64-mingw32/sys-root/mingw/include/Line3934 > Expression: i <numberparameter" > > > > On Friday, May 27, 2016 at 5:41:54 AM UTC+2, Michele Zaffalon wrote: >> >> You should at least provide some information on the system (e.g. what >> Juli

Re: [julia-users] This application has requested the Runtime to terminate it in an unusual way

2016-05-26 Thread Michele Zaffalon
You should at least provide some information on the system (e.g. what Julia version you were using by copying the output of versioninfo()) and a minimal script to reproduce the problem. On Thu, May 26, 2016 at 10:47 PM, wrote: > When i execute the problem . This message

Re: [julia-users] Redefine constant

2016-05-26 Thread Michele Zaffalon
At the REPL, you can use workspace() On Thu, May 26, 2016 at 12:10 PM, wrote: > when i defined the const like > > Const a_max = [30,30] > Const a_min = [0,10] > > I fined the warning

Re: [julia-users] Set PATH in windows 10

2016-05-09 Thread Michele Zaffalon
When Julia installs, it creates a link in the Start menu. If you right click on the Julia icon, you should be able to figure out the path to the Julia executable, julia.exe. That path should be ending with ...\bin\julia.exe. On Fri, May 6, 2016 at 6:56 AM, Yu Tony wrote: >

[julia-users] TensorSpace in ApproxFun

2016-05-03 Thread Michele Zaffalon
Hello, I am confused by `ApproxFun.TensorSpace`. I understand the following. dom1, dom2 = Fourier(), Chebyshev() dom = dom1 ⊗ dom2 @assert TensorSpace(Fourier(), Chebyshev()) == dom1 ⊗ dom2 d1, d2 = Derivative(dom1), Derivative(dom2) @assert Derivative(dom1, 1) == Derivative(dom1) Here are the

Re: [julia-users] sparse function

2016-05-02 Thread Michele Zaffalon
> On Monday, May 2, 2016 at 11:10:12 PM UTC-5, Michele Zaffalon wrote: >> >> Can you post the code that generate the error? >> >> On Tue, May 3, 2016 at 5:47 AM, new to Julia <weini...@gmail.com> wrote: >> >>> Hi all: >>> >>> when

Re: [julia-users] sparse function

2016-05-02 Thread Michele Zaffalon
Can you post the code that generate the error? On Tue, May 3, 2016 at 5:47 AM, new to Julia wrote: > Hi all: > > when I use sparse function in Julia coding, I have the following error: > > LoadError: MethodError: `sparse` has no method matching >

Re: [julia-users] Strange Behavior Whereby Shared Arrays Requires Indexing

2016-04-27 Thread Michele Zaffalon
Can you update Julia to the current 0.4.5? Your version is year old. (I keep asking the same question over and over.) On Wed, Apr 27, 2016 at 6:56 PM, Michael Wojnowicz wrote: > > Here's some behavior using Julia's parallel processing that really > surprised me. I'm not sure

Re: [julia-users] Re: build issue on v0.4.2

2016-04-25 Thread Michele Zaffalon
Would it not be better to update to 0.4.5 first? On Mon, Apr 25, 2016 at 1:57 PM, wrote: > it seems that > > /home/vagrant/julia-0.4.2/base/precompile.jl > > crashed because of memory overflow (i watched htop). > > i'll try the build with more memory on my test virtual

Re: [julia-users] bounds error / inexacterror

2016-04-18 Thread Michele Zaffalon
It looks like your `ratio` is a scalar number and you are trying to get the k-th element of it. On Sun, Apr 17, 2016 at 3:32 PM, Yichao Yu wrote: > On Sun, Apr 17, 2016 at 9:14 AM, Emeline Lépine > wrote: > > Hi, > > > > According the index line 37

Re: [julia-users] Failed process

2016-04-15 Thread Michele Zaffalon
Changing the global git config used to work: https://groups.google.com/d/msg/julia-users/nI7CgwGEd3A/AUZ-10J_04cJ On Fri, Apr 15, 2016 at 9:49 AM, wrote: > > Hello, > > I have installed Julia 0.4.5 on Windows 7. > > When I run *Pkg.init(),* I get the following error message: >

Re: [julia-users] append! multiple collections

2016-03-19 Thread Michele Zaffalon
times instead of just >> once? >> >> On Wednesday, March 16, 2016 at 9:45:02 AM UTC-4, Stefan Karpinski wrote: >>> >>> Yes, wonderful! Thanks for contributing it. If you add a test, it'll get >>> merged rapidamente. >>> >>> On Wed, Mar

Re: [julia-users] append! multiple collections

2016-03-16 Thread Michele Zaffalon
issue. > > On Tue, Mar 15, 2016 at 12:43 PM, Michele Zaffalon < > michele.zaffa...@gmail.com> wrote: > >> I have some arrays I would like to `append!` to the first. At the moment >> I do >> >> reduce(append!, array_1, [array_2, array_3, ...]), >> &g

Re: [julia-users] Status of Plots.jl?

2016-03-10 Thread Michele Zaffalon
On Thu, Mar 10, 2016 at 4:54 PM, Daniel Carrera wrote: > > On 10 March 2016 at 14:18, Tom Breloff wrote: > >> Yes it's come a long way. Documentation is coming slower than >> functionality (typical open source...). However I added this yesterday, >> which

Re: [julia-users] 3D scatter / meshed surface color map

2016-03-02 Thread Michele Zaffalon
Is https://github.com/stevengj/PyPlot.jl#3d-plotting not what your need? On Thu, Mar 3, 2016 at 4:52 AM, wrote: > Hello Julia users, > > I would like to know if anyone knows how we can have 3D scatter plots or > meshed surfaces color plots using Julia. > > My problem is

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Michele Zaffalon
But the original point is still valid: using the search box in the official documentation page http://docs.julialang.org/en/release-0.4, searching for "standard deviation" does not bring up any useful hit, despite the fact that Base.std is fairly well documented and contains the words standard

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread Michele Zaffalon
On mine, it points to the functions randn and randn! On Fri, Feb 12, 2016 at 11:48 AM, Lutfullah Tomak wrote: > For reference, it shows up in my search. > > > http://docs.julialang.org/en/release-0.4/search/?q=standard+deviation_keywords=yes=default > > About google side,

Re: [julia-users] Re: ANN: Julia v0.4.3 released

2016-01-19 Thread Michele Zaffalon
Under Debian (at least), the generic Linux binaries work fine. On Tue, Jan 19, 2016 at 1:06 PM, Kacper Kornet wrote: > > > On Thursday, January 14, 2016 at 6:27:48 PM UTC, Tony Kelman wrote: >> >> Hello all! The latest bugfix release of the Julia 0.4.x line has been >>

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-11-22 Thread Michele Zaffalon
Thank you, I should have checked the issues list first. On Fri, Nov 20, 2015 at 4:13 PM, Milan Bouchet-Valat <nalimi...@club.fr> wrote: > Le vendredi 20 novembre 2015 à 04:54 -0800, Michele Zaffalon a écrit : > > Should `linspace` act as an array for `repeat`? > Yes, the s

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-11-20 Thread Michele Zaffalon
rs. Those are the type of >>>>> surprises that are not welcome mainly for matlab users. >>>>> >>>>> quarta-feira, 30 de Setembro de 2015 às 16:53:57 UTC+1, Christoph >>>>> Ortner escreveu: >>>>>> >>>>>>

[julia-users] rand under Windows returns almost always 1

2015-11-18 Thread Michele Zaffalon
Hi all, I would be glad if somebody could explain to me why the following function which generates a pair of random integer between 1 and 6 and if they are equal generates another pair function fun() d, N = 6, 50 for n = 1:N a, b = rand(1:d), rand(1:d) if a == b

Re: [julia-users] rand under Windows returns almost always 1

2015-11-18 Thread Michele Zaffalon
On Wed, Nov 18, 2015 at 5:43 PM, Yichao Yu <yyc1...@gmail.com> wrote: > On Wed, Nov 18, 2015 at 11:37 AM, Michele Zaffalon > <michele.zaffa...@gmail.com> wrote: > > Hi all, > > > > I would be glad if somebody could explain to me why the following > functi

Re: [julia-users] rand under Windows returns almost always 1

2015-11-18 Thread Michele Zaffalon
On Wed, Nov 18, 2015 at 8:33 PM, Yichao Yu wrote: > On Wed, Nov 18, 2015 at 2:28 PM, Stefan Karpinski > wrote: > > Sometimes you've looked at your own code too long to see these things. > > Someone else sees it right away. > > Disclaimer, I didn't see it

[julia-users] find element in sorted list

2015-11-07 Thread Michele Zaffalon
What is the best way of telling whether an element `x` is present in a sorted list `a`? Using `searchsortedlist`, I also need to check that the element is present in the list. This is what I do function isinsortedlist(a, x) n = searchsortedfirst(a, x) n <= length(a) && a[n] == x end

Re: [julia-users] find element in sorted list

2015-11-07 Thread Michele Zaffalon
On Sat, Nov 7, 2015 at 4:34 PM, Milan Bouchet-Valat <nalimi...@club.fr> wrote: > Le samedi 07 novembre 2015 à 06:37 -0800, Michele Zaffalon a écrit : > > What is the best way of telling whether an element `x` is present in > > a sorted list `a`? > > > > Usin

Re: [julia-users] Re: How to fill a (general) subarray with a single object

2015-11-04 Thread Michele Zaffalon
What Matt is saying is that the first option is probably what you do _not_ want: all elements of the matrix z point to the same location in memory. Just try to change one of them! On Tue, Nov 3, 2015 at 4:10 PM, Ján Dolinský wrote: > Hi Matt, > > Thanks for the tips.

Re: [julia-users] How to get first number from Int64

2015-10-24 Thread Michele Zaffalon
There is also the builtin http://docs.julialang.org/en/latest/stdlib/numbers/#Base.digits On Sat, Oct 24, 2015 at 3:51 PM, Tamas Papp wrote: > A trivial (but not necessarily the fastest) solution is > > function firstdigit(i,base=10) > while (i >= base) > i =

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Michele Zaffalon
Just curious: linspace returns a Range object, but logspace returns a vector because there is no much use case for a LogRange object? @feza: I have also seen the deprecation warning going away after a couple of calls, but I am not sure why. If you restart Julia, the deprecations reappear. On

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Michele Zaffalon
On Wed, Sep 30, 2015 at 9:50 AM, Milan Bouchet-Valat <nalimi...@club.fr> wrote: > Le mercredi 30 septembre 2015 à 08:55 +0200, Michele Zaffalon a écrit : > > Just curious: linspace returns a Range object, but logspace returns a > > vector because there is no much use case

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Michele Zaffalon
I just realize that the thread is about 0.3.11 and I am showing output for 0.4.0-rc2. Sorry for the noise. On Wed, Sep 30, 2015 at 11:17 AM, Michele Zaffalon < michele.zaffa...@gmail.com> wrote: > > On Wed, Sep 30, 2015 at 9:50 AM, Milan Bouchet-Valat <nalimi...@club.fr>

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Michele Zaffalon
On Wed, Sep 30, 2015 at 4:32 PM, Tamas Papp wrote: > On Wed, Sep 30 2015, Christian Peel wrote: > > > 1) Matlab has great high-level vectorized notation. If you're a student > or > > engineer, it's dramatically easier to solve a linear system in Matlab >

Re: [julia-users] @code_warntype and for loops

2015-09-24 Thread Michele Zaffalon
On Thursday, September 24, 2015 at 9:21:47 AM UTC+2, Mauro wrote: > > >> This is the lowered and typed abstract syntax tree that you're seeing, > >> so two steps removed from what you've typed already (and another two > >> steps to go to get to machine code). Thus it gets more verbose. I >

Re: [julia-users] @code_warntype and for loops

2015-09-24 Thread Michele Zaffalon
On Wednesday, September 23, 2015 at 11:06:51 AM UTC+2, Mauro wrote: > > > Thank you, Kristoffer. I have read the manual and your post about not > > getting carried away by the red == bad assumption > > < >

Re: [julia-users] @code_warntype and for loops

2015-09-23 Thread Michele Zaffalon
Thank you, Kristoffer. I have read the manual and your post about not getting carried away by the red == bad assumption . Yet, for a for loop, one would not expect so much

Re: [julia-users] Deprecation of require

2015-09-17 Thread Michele Zaffalon
I answer your first question only: > > First, where can I find the .juliarc.jl file? > It's in the HOME directory. Alternatively in Windows in the directory pointed to by HOMEDRIVE\HOMEPATH > Second, is there an easier way to load a .jl file from my working > directory into Julia onto a local

Re: [julia-users] ANN: graphics video tutorials

2015-09-16 Thread Michele Zaffalon
Nice tutorial and very useful. Could you please also post the file julia_gui.jl mentioned at the end of your video? michele On Fri, Sep 11, 2015 at 8:08 PM, Tom Breloff wrote: > Thanks Tim... this was a very easy to follow video. > > On Fri, Sep 11, 2015 at 1:39 PM, Tim Holy

Re: [julia-users] Re: abs() returning negative numbers??

2015-09-07 Thread Michele Zaffalon
Thank you. On Mon, Sep 7, 2015 at 1:48 PM, Yichao Yu <yyc1...@gmail.com> wrote: > On Mon, Sep 7, 2015 at 12:05 AM, Michele Zaffalon > <michele.zaffa...@gmail.com> wrote: > > Why does > > input_len::Uint = sizeof(bytes_input) > > work in the body of the functi

[julia-users] Re: abs() returning negative numbers??

2015-09-06 Thread Michele Zaffalon
Why does input_len::Uint = sizeof(bytes_input) work in the body of the function but not at the REPL? Inside the function, it is converted to _var0 = sizeof(bytes_input::Array{Uint8,1})::Int64 input_len = (top(box))(Uint64,_var0::Int64)::Uint64 # line 3: On Sunday, September 6, 2015 at 4:31:35

  1   2   >