[julia-users] Re: including a Cholesky in a composite type

2014-05-22 Thread Simon Byrne
On Friday, 23 May 2014 04:48:29 UTC+1, Thomas Covert wrote: > > Why is the following code not allowed? > > *julia> **type TC* > >*c::Cholesky{Float64}* > >*end* > > *ERROR: Cholesky not defined* > > > For some reason the Cholesky type is not exported from the Base module. The easie

[julia-users] including a Cholesky in a composite type

2014-05-22 Thread Thomas Covert
I am writing code for a function that I wish to numerically optimize, and many steps within the function evaluation involve matrix algebra operations on large-ish matrices (e.g., thousands by thousands). Since I am trying to do things the 'Julian' way, I figured it would make sense to construct

[julia-users] Re: JuliaCon Question Thread

2014-05-22 Thread Paulo Castro
Remembering to put a link to the slides on video's description would also be useful. Thanks!

Re: [julia-users] should map on iterator return an iterator?

2014-05-22 Thread Jeff Bezanson
You're probably right. I'm not a fan of the fallback map() function we have; it's too slow to be useful in most cases. On Thu, May 22, 2014 at 8:01 PM, S Wade wrote: > Hi, > > I'm wondering why zip, enumerate and filter on iterators return iterators > whereas map is eager and it returns a concret

Re: [julia-users] Shameless plug for DotPlot.jl - plots in your terminal

2014-05-22 Thread Adam Smith
I added support scatter plots of vectors/matrices; will update docs and examples tomorrow. I also made the interface closer to Gadfly's. On Thursday, May 22, 2014 12:31:39 PM UTC-4, John Myles White wrote: > > I personally don’t really have much interest in plotting in the terminal. > I just pac

[julia-users] should map on iterator return an iterator?

2014-05-22 Thread S Wade
Hi, I'm wondering why zip, enumerate and filter on iterators return iterators whereas map is eager and it returns a concrete sequence. This was a surprise with code like this: ``` for i in map(x -> split(x, ","), eachline(f)) # ... end ``` The map causes memory usage for large files as it co

Re: [julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Miguel Bazdresch
That's true, but I think the best solution would be to have the same keybindings in the julia REPL and in vim. I think it'd be terribly confusing otherwise. -- mb On Thu, May 22, 2014 at 3:56 PM, Daniel Jones wrote: > Also for vim users who aren't aware of this: vim has a convenient way to > e

Re: [julia-users] Dataframe readtable change? Back to the original question ...

2014-05-22 Thread Rob J. Goedman
In a feeble attempt to help out here I inserted below statement as line 228 in io.jl (where blank lines are supposed to be removed) println("chr: ", chr, " next chr: ", nextchr) and a few lines down (in the beginning of the while loop): println("Blank line found!") Using an input file without

Re: [julia-users] Optim.jl: unexpected results when using gradient-based methods

2014-05-22 Thread John Myles White
Yeah, this case is tricky enough that we really need to get down to the lowest details: (1) Do Julia and Matlab perform similar numbers of function evaluations? (2) If they don't perform similar numbers of function evaluations, is one of them producing a better solution? Is the one that's produ

Re: [julia-users] Optim.jl: unexpected results when using gradient-based methods

2014-05-22 Thread Miles Lubin
I can get another 50% speedup by: - Running the optimization twice and timing the second run only, this is the more appropriate way to benchmark julia because it excludes the function compilation time - Setting autodiff=true - Breaking up the long chains of sums, apparently these seem to be slow

Re: [julia-users] Re: pager in the repl

2014-05-22 Thread Tim Holy
On Thursday, May 22, 2014 12:06:20 PM Andrea Pagnani wrote: > +1 for a pager in REPL!!! > > I was thinking to write something like this post just today You still can :). Just because it's an issue doesn't mean someone is working on it. --Tim > > Andrea > > On Thursday, May 22, 2014 8

Re: [julia-users] linear algebra speed comparisons with MATLAB

2014-05-22 Thread Thomas Covert
By the way, switching to Homebrew and compiling a recent git pull solved the problem. Now my matrix inversions occur at MATLAB speeds or faster. On Monday, May 19, 2014 7:58:06 AM UTC-5, Andreas Noack Jensen wrote: > > Thanks. Julia is calling the correct method. > > However, I didn't read your

[julia-users] Metaprogramming weirdness

2014-05-22 Thread Andrew McKinlay
I have been trying to grok Julia macros, so I've dived into the metaprogramming docs. Whilst playing around with the interpreter, I've run into some peculiarities that I don't quite understand. julia> versioninfo() Julia Version 0.3.0-prerelease+2690 Commit e4c2f68* (2014-04-20 12:15 UTC) ...

[julia-users] Re: How to return a range of values in a hash?

2014-05-22 Thread Stefan Schwarz
I didn't found a bracketing way also, so I decided to propose this: map((x) -> transt[x], [1:3]) which will return in your case an ASCIIString array, which you can index in your wished way. If someone can enlighten me...pretty welcome

[julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Patrick O'Leary
On Thursday, May 22, 2014 2:28:24 PM UTC-5, Steven G. Johnson wrote: > > ...Which means you need to come up with some keybinding to turn it on only > when you need it. > C-\ is bound to toggle-input-method by default.

Re: [julia-users] How to return a range of values in a hash?

2014-05-22 Thread Stefan Karpinski
[ transt[k] for k=1:3 ] does the trick. On Thu, May 22, 2014 at 4:37 PM, Cirrus McInnis wrote: > New to Julia.. > > Given a hash / dict / associative list like: > transt = { > 1 => "char", > 2 => "short", > 3 => "long", > 4 => "float" > } > > How would

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread Stefan Karpinski
I'm not sure that I have an opinion about that, honestly. If you think it will reduce complaints, then that's certainly something. On Thu, May 22, 2014 at 4:22 PM, John Myles White wrote: > So, do you want us to change the default so that we don't show column > summaries? For tables without a lo

[julia-users] How to return a range of values in a hash?

2014-05-22 Thread Cirrus McInnis
New to Julia.. Given a hash / dict / associative list like: transt = { 1 => "char", 2 => "short", 3 => "long", 4 => "float" } How would I get this?: println( transt[1:3]) > "char" "short" "long" Without resorting to an explicit loop (will if I

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread John Myles White
So, do you want us to change the default so that we don't show column summaries? For tables without a lot of columns, that may work better; it will certainly lower the number of complaints about how we print things. -- John On May 22, 2014, at 1:18 PM, Stefan Karpinski wrote: > Solid reasons

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread Stefan Karpinski
Solid reasons. I was just voicing my reaction. On Thu, May 22, 2014 at 4:16 PM, John Myles White wrote: > The original change that summarized large DataFrames was introduced by > Julia Evans and brought us closer into sync with pandas. I've been really > happy with it. > > Regarding the old way

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread John Myles White
The original change that summarized large DataFrames was introduced by Julia Evans and brought us closer into sync with pandas. I've been really happy with it. Regarding the old way of doing things, I think you should revert to the old display rules for a while and try them again before making

Re: [julia-users] Why is isdefined() only half boolean?

2014-05-22 Thread Stefan Karpinski
If you write isdefined(:x) you're asking if the symbol `x` has anything bound to it. If you write isdefined(x) you're asking if the value of x has anything bound to it. That question only makes sense if the value of x is a symbol. Not sure if that clarifies anything. On Thu, May 22, 2014 at 4:08

Re: [julia-users] pager in the repl

2014-05-22 Thread Stefan Karpinski
Now that we have native terminal support, it would be a reasonable project to write a pager in Julia. Why write our own pager (you ask)? Because it could allow you to do things like efficiently page around a huge array without having to print the whole thing. You could, e.g., instantly page to the

Re: [julia-users] Why is isdefined() only half boolean?

2014-05-22 Thread Cirrus McInnis
A-ha. Thanks. Seems odd to me, but I haven't picked up Julia's tune yet. On Thursday, May 22, 2014 4:00:30 PM UTC-4, Stefan Karpinski wrote: > > I suspect you're calling isdefined(x) when what you want is isdefined(:x). > This is a normal function and by the time it runs, the argument express

Re: [julia-users] Likely trivial question.

2014-05-22 Thread Stefan Karpinski
Also, the standard extension for Julia files is .jl not .ju. On Thu, May 22, 2014 at 3:04 PM, John Myles White wrote: > This is probably a problem because you're using an RTF file, which likely > contains mostly garbage rather than the actual code you want to run. > > -- John > > On May 22, 201

[julia-users] Re: Why is isdefined() only half boolean?

2014-05-22 Thread Steven G. Johnson
You're probably not passing a symbol for the second argument: julia> isdefined(:sum) true julia> isdefined(:foo) false julia> isdefined(Base, :foo) false julia> isdefined(Base, :sum) true If you call isdefined(foo), then it first tries to evaluate the variable "foo" and pass the result to "i

Re: [julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Stefan Karpinski
No true vim user types so slowly that this is a problem. On Thu, May 22, 2014 at 3:59 PM, Steven G. Johnson wrote: > > > On Thursday, May 22, 2014 3:03:39 PM UTC-4, Miguel Bazdresch wrote: >> >> In vim, you can do something like >> >> imap \alpha u03b1 >> >> to reproduce this behavior. >> > > Th

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread Stefan Karpinski
For what it's worth, I was much happier when dataframes showed their contents rather than a summary. I must have missed the discussion where that decision was made (ditto for all the extra ASCII chrome when displaying data frames these days). On Thu, May 22, 2014 at 3:01 PM, John Myles White wrot

Re: [julia-users] Why is isdefined() only half boolean?

2014-05-22 Thread Stefan Karpinski
I suspect you're calling isdefined(x) when what you want is isdefined(:x). This is a normal function and by the time it runs, the argument expression has already been evaluated and will cause an error if x is undefined. isdefined(x) should only work if x happens to be bound to a symbol, in which ca

Re: [julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Steven G. Johnson
On Thursday, May 22, 2014 3:03:39 PM UTC-4, Miguel Bazdresch wrote: > > In vim, you can do something like > > imap \alpha u03b1 > > to reproduce this behavior. > This works, sort of, but I find it a bit annoying. If you are too slow in typing "\alpha" then it doesn't perform the substitution.

[julia-users] Why is isdefined() only half boolean?

2014-05-22 Thread Cirrus McInnis
New to Julia.. I'm just trying to test for a var's existence. isdefined() seems to be the tool to use. If the result is true then "true" is returned. If false, "x not defined.." is returned. Shouldn't it return "false"? Is there another way to test for existence? -David

Re: [julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Daniel Jones
Also for vim users who aren't aware of this: vim has a convenient way to enter common special characters in the form of [1]digraphs which you can enter by pressing ctrl-k in insert mode. You have to learn the digraph for the symbol, but they are pretty mnemonic in their assignment (e.g 'C(' -> ⊂, '

Re: [julia-users] pager in the repl

2014-05-22 Thread Kevin Squire
Thanks! On Thursday, May 22, 2014 11:52:12 AM UTC-7, Bob Nnamtrop wrote: > > OK done. See https://github.com/JuliaLang/julia/issues/6921 > > > On Thu, May 22, 2014 at 12:20 PM, Kevin Squire > > > wrote: > >> I agree that that would be nice. Would you be willing to open up an >> issue for this?

[julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Steven G. Johnson
On Thursday, May 22, 2014 3:00:42 PM UTC-4, harven wrote: > > – Nice. 'Course there's an emacs command to do that. > – Oh yeah! Good ol' M-x set-input-method RET TeX RET > – Dammit, Emacs. > > http://www.emacswiki.org/emacs/TeXInputMethod > (Unfortunately, I find this mode is too insanely annoyi

Re: [julia-users] pager in the repl

2014-05-22 Thread Bob Nnamtrop
Agreed. But that is a different issue. Actually dump does a pretty good job on hashes and show should be switched to that. On Thu, May 22, 2014 at 1:01 PM, John Myles White wrote: > Honestly, I think dictionary printing is just kind of broken. > > -- John > > On May 22, 2014, at 12:01 PM, Bob N

[julia-users] Re: pager in the repl

2014-05-22 Thread Andrea Pagnani
+1 for a pager in REPL!!! I was thinking to write something like this post just today Andrea On Thursday, May 22, 2014 8:04:05 PM UTC+2, Bob Nnamtrop wrote: > > I often find myself wishing for a pager in the repl when outputing large > amount of output. I see that there is a Base.less b

Re: [julia-users] Likely trivial question.

2014-05-22 Thread John Myles White
This is probably a problem because you're using an RTF file, which likely contains mostly garbage rather than the actual code you want to run. -- John On May 22, 2014, at 12:02 PM, Alexander Dubbs wrote: > The following code gives the following error, and I have no idea why. There > are no

Re: [julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Miguel Bazdresch
In vim, you can do something like imap \alpha u03b1 to reproduce this behavior. -- mb On Thu, May 22, 2014 at 1:27 PM, Steven G. Johnson wrote: > A quick update for people who haven't been tracking git closely: > > The Julia REPL (#6911), IJulia, and (soon) Emacs julia-mode (#6920) now > allo

[julia-users] Likely trivial question.

2014-05-22 Thread Alexander Dubbs
The following code gives the following error, and I have no idea why. There are no comprehensions. I write require("loaddataju.ju.rtf"), which is below, and get the error: ERROR: syntax: invalid comprehension syntax in include at boot.jl:238 in include_from_node1 at loading.jl:114 in reload

Re: [julia-users] pager in the repl

2014-05-22 Thread John Myles White
Honestly, I think dictionary printing is just kind of broken. -- John On May 22, 2014, at 12:01 PM, Bob Nnamtrop wrote: > But julia often does show large screen dumps. Try: > > julia> h={1=>1}; for i=2:10 h[i]=i end; h > > :-) > > > On Thu, May 22, 2014 at 12:52 PM, Mauro wrote: > Oct

Re: [julia-users] pager in the repl

2014-05-22 Thread Bob Nnamtrop
But julia often does show large screen dumps. Try: julia> h={1=>1}; for i=2:10 h[i]=i end; h :-) On Thu, May 22, 2014 at 12:52 PM, Mauro wrote: > Octave has an automatic pager, which I don't like, but which I like > better than matlab's endless screen dumps. I think the Julian (and > Num

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread John Myles White
Nobody had time to integrate it anywhere. A pull request would help move things forward. -- John On May 22, 2014, at 11:57 AM, Bob Nnamtrop wrote: > OK. Thanks. That is helpful. > > Any reason why that page is not shown in the documentation given in the link > on the front page. > > > On

[julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread harven
Le jeudi 22 mai 2014 19:27:41 UTC+2, Steven G. Johnson a écrit : > > A quick update for people who haven't been tracking git closely: > > The Julia REPL (#6911), IJulia, and (soon) Emacs julia-mode (#6920) now > allows you to type many mathematical Unicode characters simply by typing > the LaTe

Re: [julia-users] It takes a long time to make a lot of Nothing (Sets are slow)

2014-05-22 Thread David Einstein
I now have Julia building on my machine and hacked together an implementation of Set that does not use a Dict with a value type of Nothing. I just took the Dict implementation any yanked out everything that referenced the value array. This speeds up the maximal_cliques function by 10%, not ne

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread Bob Nnamtrop
OK. Thanks. That is helpful. Any reason why that page is not shown in the documentation given in the link on the front page. On Thu, May 22, 2014 at 11:46 AM, John Myles White wrote: > head and tail don't actually print anything: they just give you a subset > of a DataFrame. So you're seeing t

Re: [julia-users] pager in the repl

2014-05-22 Thread Mauro
Octave has an automatic pager, which I don't like, but which I like better than matlab's endless screen dumps. I think the Julian (and Numpy) way of only showing a small part of a big output is the way to go. Although it would be nice to have `less` working with arrays (etc) in case one needs to

Re: [julia-users] pager in the repl

2014-05-22 Thread Bob Nnamtrop
OK done. See https://github.com/JuliaLang/julia/issues/6921 On Thu, May 22, 2014 at 12:20 PM, Kevin Squire wrote: > I agree that that would be nice. Would you be willing to open up an issue > for this? > > > On Thu, May 22, 2014 at 11:04 AM, Bob Nnamtrop wrote: > >> I often find myself wishing

Re: [julia-users] pager in the repl

2014-05-22 Thread Kevin Squire
I agree that that would be nice. Would you be willing to open up an issue for this? On Thu, May 22, 2014 at 11:04 AM, Bob Nnamtrop wrote: > I often find myself wishing for a pager in the repl when outputing large > amount of output. I see that there is a Base.less but it is only used on > files

[julia-users] pager in the repl

2014-05-22 Thread Bob Nnamtrop
I often find myself wishing for a pager in the repl when outputing large amount of output. I see that there is a Base.less but it is only used on files and not for outputting other stuff in the repl. In fact, it would be great to have support for less, head, and tail like functionality for looking

Re: [julia-users] A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread Jeff Bezanson
const global variables are not slow. On Thu, May 22, 2014 at 1:26 PM, Kevin Squire wrote: > Hi Sam, you might find it easier (and others might as well) if you make a > gist on GitHub with your code. > > Cheers, Kevin > > > On Thursday, May 22, 2014, sam cooper wrote: >>> >>> I put my profile and

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread John Myles White
head and tail don't actually print anything: they just give you a subset of a DataFrame. So you're seeing the usual show method's output, which can be overriden by explicitly requesting that you see the whole DataFrame. See https://github.com/JuliaStats/DataFrames.jl/blob/master/spec/show.md -

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread Bob Nnamtrop
An issue I noticed with Dataframes recently is that head(df) and tail(df) both list the show(df) summary (like those above) instead of listing the top and bottom of the dataframe. I just started using dataframes so I have no idea what they did in the past but it seems they should list the df and n

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread Rob J. Goedman
Thanks John. I should have filed it as an issue on DataFrames.jl but initially thought it could deeper than that. For now in Stan.jl I've included a 'small' cleanup step. Small for say 1000 samples, a bit bigger for 10 samples. Like you mentioned earlier, for years I've been using file-ou

Re: [julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Mike Innes
Great! This feature will be in Light Table soon, too – complete with fuzzy searching, so that it's easy to browse all available symbols :) On 22 May 2014 18:27, Steven G. Johnson wrote: > A quick update for people who haven't been tracking git closely: > > The Julia REPL (#6911), IJulia, and (s

[julia-users] Re: OT: entering Unicode characters

2014-05-22 Thread Steven G. Johnson
A quick update for people who haven't been tracking git closely: The Julia REPL (#6911), IJulia, and (soon) Emacs julia-mode (#6920) now allows you to type many mathematical Unicode characters simply by typing the LaTeX symbol and hitting TAB. e.g. you can type \alpha and get α, or x\hat and ge

Re: [julia-users] A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread Kevin Squire
Hi Sam, you might find it easier (and others might as well) if you make a gist on GitHub with your code. Cheers, Kevin On Thursday, May 22, 2014, sam cooper wrote: > I put my profile and ode sovler up but it's too much of a disgrace loads >> of errors etc. I've deleted the posts and will sort i

Re: [julia-users] Dataframe readtable change?

2014-05-22 Thread John Myles White
I need to find time to look into this, but could someone try a git bisect and see if some of the metaprogramming changes we made to readtable caused this? It might be that this file would have never worked, but if it once did, it would be good to point out the problematic code. — John On May

Re: [julia-users] DataFrames: Problems with Split-Apply-Combine strategy

2014-05-22 Thread John Myles White
Can you create an issue for the nrow error? That’s almost certainly a bug. — John On May 22, 2014, at 6:03 AM, Mike Innes wrote: > Link: > http://stackoverflow.com/questions/23806758/julia-dataframes-problems-with-split-apply-combine-strategy > > I definitely agree that having a greater pres

Re: [julia-users] colored text print

2014-05-22 Thread John Myles White
Check out print_with_color. You’ll need to do a search through Base to see all of the available colors. help> print_with_color INFO: Loading help data... Base.print_with_color(color::Symbol[, io], strings...) Print strings in a color specified as a symbol, for example ":red" or ":blue". O

[julia-users] colored text print

2014-05-22 Thread Tony Fong
Hello, It's hopefully a small thing. In REPL, is there a way to print text in color? I'm doing a bunch of poor man's debugging using println and having some color differentiation would help productivity. T

Re: [julia-users] Shameless plug for DotPlot.jl - plots in your terminal

2014-05-22 Thread John Myles White
I personally don’t really have much interest in plotting in the terminal. I just packaged the code other people had written so that it would be easily available to the community. I’m happy to let people who care about the topic take charge of things. — John On May 22, 2014, at 8:42 AM, Adam S

Re: [julia-users] Re: how to apply vector on diagonal of matrix ?

2014-05-22 Thread Dahua Lin
As a side note, I just cleaned up the Devectorize.jl package (tagged vs 0.4). Now it works well under Julia v0.3. I am now working on a major upgrade to this package. This may lead to a more transparent & extensible code generator and the support of arrays of arbitrary dimensions (with the help

Re: [julia-users] Re: JuliaCon Question Thread

2014-05-22 Thread Stefan Karpinski
We're reserving some tickets to make sure that all speakers get to go, so there will be some tickets freed up soon, but we're going to be either sold out or very close to it so getting on the waiting list now is a good idea. On Thu, May 22, 2014 at 12:03 PM, Jay Kickliter wrote: > After getting

Re: [julia-users] Serialize slow for string

2014-05-22 Thread Samuel Colvin
Thank you both, JLD was indeed what I needed, it's got a lot quicker since I last used it I think. Serialize is much faster now too which is great.

[julia-users] Re: JuliaCon Question Thread

2014-05-22 Thread Jay Kickliter
After getting really excited to go, I just noticed it appears to be sold out. I did did fill out the form to be waitlisted. Is there actually a chance of more slots opening up, or is the wait list just a default feature on Eventbrite?

Re: [julia-users] Gadfly: plotting histogram of a integer variable x

2014-05-22 Thread Daniel Jones
Hi Paulo, Try adding Scale.x_continuous to the plot. In your example the histogram is drawing a bar for every integer, which is why they're so narrow. On Wed, May 21, 2014, at 04:06 PM, Paulo Castro wrote: Hi guys, I'm having a problem when plotting data like this: data=int(round(dropna(o

[julia-users] Re: julia unable to install on Ubuntu 13.10

2014-05-22 Thread 'Stéphane Laurent' via julia-users
Excellent, I already had all the requited tools (gfortran, curl), and the installation has been successful. Thank you ! Le mardi 20 mai 2014 12:46:41 UTC+2, Ivo Balbaert a écrit : > > Sorry, message was posted too quickly: > > Here is my report of the build: > in /home/ivo/julia: > git clone g

Re: [julia-users] Shameless plug for DotPlot.jl - plots in your terminal

2014-05-22 Thread Adam Smith
TextPlot seems like a good name. Thanks for the offer on merging, but again, there's really nothing to merge. Adding scatterplots to dotplot will be trivial; I'll do that soon (making dotplot's features a superset of ASCIIPlots). There is nothing compatible/overlapping between these two (small)

Re: [julia-users] Re: JuliaCon Question Thread

2014-05-22 Thread Stefan Karpinski
Yes – that seems like a good place for videos to go. I'm not a big fan of any fancy talk websites. It's best to just edit together a video where the slides appear in the main part of the video and the speaker appears to the side of that. On Wed, May 21, 2014 at 7:32 PM, Paulo Roberto de Oliveira

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread sam cooper
> > I put my profile and ode sovler up but it's too much of a disgrace loads > of errors etc. I've deleted the posts and will sort it out properly after > I've got the sqrerror function working better and then post the profile so > as not to waste your time if your still interested in helping s

Re: [julia-users] Shameless plug for DotPlot.jl - plots in your terminal

2014-05-22 Thread Leah Hanson
Maybe something like TextPlot would be a good merged name? It conveys what the package does (text plots) rather than how it does it (Braille characters). Having a more complete plotting package for the terminal would move towards having a way to make `plot` just work when you start up a Julia REPL

Re: [julia-users] How do I get the reduced start up time for Julia 0.3-prerelease when installing from a binary package?

2014-05-22 Thread Omar Antolín Camarena
Thanks Elliot, that's good news! On Thursday, May 22, 2014 2:12:22 AM UTC-4, Elliot Saba wrote: > > Regarding #2: The Ubuntu nightlies may not have sys.so, since I don't > think JULIA_CPU_TARGET was being set. This has been > fixed

Re: [julia-users] How do I get the reduced start up time for Julia 0.3-prerelease when installing from a binary package?

2014-05-22 Thread Omar Antolín Camarena
Thanks for your response, James. > 1. The newest 0.3 binaries are supposed to contain the sys.dylib file > (it's sys.so on linux, and so I have started to just call it that > everywhere for simplicity) and thereby gain the accelerated startup > time. I'm not sure why this would be failing for

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread sam cooper
The solver is very rough though just noticed I need to get rid of t = linspace(0,maximum(tsample),maximum(tsample)) Don't worry about silly mistakes like that but if you see anything wrong with my style On Thursday, May 22, 2014 4:06:04 PM UTC+1, sam cooper wrote: > > And here is the code for

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread sam cooper
And here is the code for the solver: function odesolve(p::Vector{Float64},tsample::Vector{Int64},obsv::Vector{ Int64},initp::Vector{Int64}) t = linspace(0,maximum(tsample),maximum(tsample)) const tnum = length(t) h = t[2]-t[1] error_flag = false # --- set initial values /

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread sam cooper
Thankyou very much for offering help, I have very little experience in Julia, and most definitely don't understand the profile sorry. I have two solvers both forward Euler one with adaptive the other uniform stepsize. I'm not using CVODE from Sundials.jl as the number of error and warnings bein

Re: [julia-users] type conversion in dataframes

2014-05-22 Thread John Myles White
Something like df[:a] = int(df[:a]) or df[:a] = float64(df[:a]) might work. It might be worth noting that Julia doesn’t have any of the types you mentioned: Factor is somewhat approximated by PooledDataArray, which isn’t a scalar type, but a container type; character is more like UTF8String and

Re: [julia-users] Re: how to apply vector on diagonal of matrix ?

2014-05-22 Thread gael . mcdon
Le jeudi 22 mai 2014 16:12:12 UTC+2, Tobias Knopp a écrit : > > Sure I just made a very quick benchmark and it should not be taken too > seriously. I just thought we should not speculate too much on what Matlab > does but *better measure it*. > That's how I understood it. (But I can't deter my

Re: [julia-users] Optim.jl: unexpected results when using gradient-based methods

2014-05-22 Thread John Myles White
How many function evaluations is Matlab performing and how many is Julia performing? — John On May 22, 2014, at 6:53 AM, Holger Stichnoth wrote: > Thanks, it's faster now (by roughly a factor of 3 on my computer), but still > considerably slower than fminunc: > > Averages over 20 runs: > Ju

[julia-users] type conversion in dataframes

2014-05-22 Thread Atish
So i feel like this a simple question, but i can't find reference to it. lets say I read a file with readtable function in DataFrame package, Now I wish to change the type of a column eg. from character to Factor, or character to numeric. how to do that ? Sorry if i'm overlooking an easy a

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread sam cooper
I've just read more about composite types, they sound like they might give an advatage I'll implement them and try. p definitelly can be part of a composite type I can even initialise it with a defined length I guess this should speed thing up. Thankyou! On Thursday, May 22, 2014 3:18:42 PM UT

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread Tobias Knopp
It sounds to me that this should be handles using a composite type instead of a tuple. It may even be immutable if only the content of p changes but not the variable (pointer) itself. Am Donnerstag, 22. Mai 2014 15:23:53 UTC+2 schrieb sam cooper: > > Hi, > > I have an inner loop function which u

Re: [julia-users] Re: how to apply vector on diagonal of matrix ?

2014-05-22 Thread Tobias Knopp
Sure I just made a very quick benchmark and it should not be taken too seriously. I just thought we should not speculate too much on what Matlab does but better measure it. Am Donnerstag, 22. Mai 2014 15:38:15 UTC+2 schrieb gael@gmail.com: > > > > Le jeudi 22 mai 2014 09:51:44 UTC+2, Tobias

Re: [julia-users] Re: suggestion of OSX julia/ijulia setup

2014-05-22 Thread Adam Smith
This shell script automates the entire process of installing the latest binary snapshot on a mac: https://gist.github.com/sunetos/d887188e1429b11fd4da Just add it to your PATH somewhere and run whenever you want the latest version. On Wednesday, May 21, 2014 6:04:30 PM UTC-4, Cameron McBride wr

Re: [julia-users] Optim.jl: unexpected results when using gradient-based methods

2014-05-22 Thread Holger Stichnoth
Thanks, it's faster now (by roughly a factor of 3 on my computer), but still considerably slower than fminunc: Averages over 20 runs: Julia/Optim.optimize: 10.5s Matlab/fminunc: 2.6s Here are my Matlab settings: options = optimset('Display', 'iter', ... 'MaxIter', 2500, 'MaxFunEvals', 5

[julia-users] Re: A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread gael . mcdon
Le jeudi 22 mai 2014 15:23:53 UTC+2, sam cooper a écrit : > > Hi, > > I have an inner loop function which uses a 'constant' tuple: > > fhandle = (expdat,obsv,expdev,t) > > with types > > fhandle::(Matrix{Float64},Vector{Int64},Float64,Vector{Int64}) > > Currently I am passing fhandle to the funct

[julia-users] A 'constant' tuple is used by an inner loop function. How can I best improve performance?

2014-05-22 Thread sam cooper
Hi, I have an inner loop function which uses a 'constant' tuple: fhandle = (expdat,obsv,expdev,t) with types fhandle::(Matrix{Float64},Vector{Int64},Float64,Vector{Int64}) Currently I am passing fhandle to the function each time it's called and then reallocating a set of variables i.e. funct

Re: [julia-users] Optim.jl: unexpected results when using gradient-based methods

2014-05-22 Thread Miles Lubin
I was able to get a nearly 5x speedup by avoiding the matrix allocation and making the accumulators type stable: https://gist.github.com/mlubin/055690ddf2466e98bba6 How does this compare with Matlab now? On Thursday, May 22, 2014 6:38:44 AM UTC-4, Holger Stichnoth wrote: > > @ John: You are rig

Re: [julia-users] DataFrames: Problems with Split-Apply-Combine strategy

2014-05-22 Thread Mike Innes
Link: http://stackoverflow.com/questions/23806758/julia-dataframes-problems-with-split-apply-combine-strategy I definitely agree that having a greater presence on SO would be useful, so it might be best to answer there (sorry I can't be more directly helpful, OP) On 22 May 2014 13:56, Paulo Cast

[julia-users] DataFrames: Problems with Split-Apply-Combine strategy

2014-05-22 Thread Paulo Castro
*I made this question on StackOverflow, but I think I will get better results posting it here. We should use that platform more, so Julia is more exposed to R/Python/Matlab users needing something like it.* I have some data (from a R course assignment, but that doesn't matter) that I want to

Re: [julia-users] Shameless plug for DotPlot.jl - plots in your terminal

2014-05-22 Thread Adam Smith
I'm not totally opposed to it, but my initial reaction is not to: 1. I don't necessarily agree about the name. I personally think "dot plot" has a nice ring to it, and it is a more accurate description of what it does (using Braille characters). This very specifically exploits Unicode

Re: [julia-users] Optim.jl: unexpected results when using gradient-based methods

2014-05-22 Thread Holger Stichnoth
@ John: You are right, when I specify the function as clogit_ll(beta::Vector) instead of clogit_ll(beta::Vector{Float64}), autodiff = true works fine. Thanks for your help! @ Tim: I have set the rather strict default convergence criteria of Optim.optimize to Matlab's default values for fminunc,

Re: [julia-users] How do I zip files?

2014-05-22 Thread Ivar Nesje
That looks somewhat like https://github.com/fhs/ZipFile.jl/issues/2 It seems like that fix was included and that the new version was tagged to require Julia 0.3-prerelease. I do not know why. kl. 09:18:27 UTC+2 torsdag 22. mai 2014 skrev RecentConvert følgende: > > Unfortunately ZipFile didn't w

[julia-users] Re: Element-wise `and` for matrixes of booleans (i.e. BitArrays), and broadcasting

2014-05-22 Thread Tomas Lycken
Done: https://github.com/JuliaLang/julia/issues/6915 On Wednesday, May 21, 2014 6:51:54 PM UTC+2, Toivo Henningsson wrote: > > I believe that the intention is for & to be broadcasting, probably just > noone has gotten around to it. Please file an issue!

Re: [julia-users] Re: how to apply vector on diagonal of matrix ?

2014-05-22 Thread Tobias Knopp
To give this discussions some facts I have done some benchmarking on my own Matlab R2013a: function [ y ] = perf( ) N = 1000; x = rand(N,1); y = x + x .* x + x .* x; end >> tic;y=perf();toc; Elapsed time is 0.177664 seconds. Julia 0.3 prerelease function perf() N = 1000 x

Re: [julia-users] How do I zip files?

2014-05-22 Thread RecentConvert
Unfortunately ZipFile didn't work for me and I can't find my Git account details at the moment to submit a bug. julia> f = ZipFile.addfile(w,"C:\\Users\\Doe\\Desktop\\Test\\fileIO.m") WARNING: ERROR: key not found: 0x in getindex at dict.jl:500 in show at O:\.julia\v0.2\ZipFile\src\ZipFi