[julia-users] Compilation error help??

2014-06-24 Thread Freddy Chua
../kernel/x86_64/dgemm_kernel_4x4_haswell.S:2548: Error: no such instruction: `vpermpd $ 0xb1,%ymm3,%ymm3' make[4]: *** [dtrmm_kernel_RN_HASWELL.o] Error 1 make[3]: *** [libs] Error 1 *** Clean the OpenBLAS build with 'make -C deps clean-openblas'. Rebuild with 'make OPENBLAS_USE_THREAD=0

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Tim Holy
If your image has transparency, then imwrite(I, name.png) should Just Work. There are many ways to get an image with transparency: for example, you might load one from disk. If you want to construct one from scratch, here's a demo: A = rand(100, 128, 4);# random colors

[julia-users] Re: Compilation error help??

2014-06-24 Thread Baurzhan Muftakhidinov
On Tuesday, June 24, 2014 3:18:46 PM UTC+6, Freddy Chua wrote: ../kernel/x86_64/dgemm_kernel_4x4_haswell.S:2548: Error: no such instruction: `vpermpd $ 0xb1,%ymm3,%ymm3' make[4]: *** [dtrmm_kernel_RN_HASWELL.o] Error 1 make[3]: *** [libs] Error 1 *** Clean the OpenBLAS build with 'make

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Yakir Gagnon
Great! I didn't know it was that simple, but if I have an indexed image I created with ImageCmap, how would I first convert it to a direct image so that I'll be able to concatenate the alpha layer? On Tuesday, June 24, 2014 9:30:00 PM UTC+10, Tim Holy wrote: If your image has transparency,

Re: [julia-users] Re: Incoming Gadfly changes

2014-06-24 Thread Mike Innes
Fantastic sleuthing, I never would've found that. It works like a charm for getting the scripts out. The only issue now is this line https://github.com/dcjones/Compose.jl/blob/264d87d87d74857437cc05690bbfa53e70cadd96/src/svg.jl#L338. Node.js provides its own require function, so when the script

[julia-users] How do I create a function signature for a 2x2 matrix?

2014-06-24 Thread Rick Muller
I want to create a function signature for the *(a,b) operator where a is a 2x2 matrix. Can I do this? *(a::Array{??,2},b) = whatever ??? is anything than can multiply a Complex vector. Do I have to explicitly promote this to Complex, in which case I guess it would be

[julia-users] Re: How do I create a function signature for a 2x2 matrix?

2014-06-24 Thread Ivar Nesje
Do you mean *{T}(a::Array{T,2}, b) = whatever ? Ivar kl. 15:10:23 UTC+2 tirsdag 24. juni 2014 skrev Rick Muller følgende: I want to create a function signature for the *(a,b) operator where a is a 2x2 matrix. Can I do this? *(a::Array{??,2},b) = whatever ??? is anything than can

Re: [julia-users] How do I create a function signature for a 2x2 matrix?

2014-06-24 Thread John Myles White
(1) The size of arrays isn’t part of their type signature, so you can’t use multiple dispatch to do this. You’ll end up overwriting the existing Array multiplication function. (2) You’d want to do something like *{S : Number, T : Number}(a::Array{S, 2},b::Array{T,1}) to indicate that you’re

[julia-users] Re: Compilation error help??

2014-06-24 Thread Glen Hertz
Hi, I also ran into that error so thanks for the tip. My compilation gets further but errors out at: CC src/jltypes.o CC src/gf.o FLISP src/julia_flisp.boot /bin/sh: ./flisp/flisp: No such file or directory make[2]: *** [julia_flisp.boot] Error 127 make[1]: *** [julia-release]

Re: [julia-users] Re: How to improve performance in cumsum

2014-06-24 Thread Charles Novaes de Santana
Thank you, Dahua, for your suggestion. I will definitely take a look in this package! :) Best, Charles On Mon, Jun 23, 2014 at 4:35 PM, Dahua Lin linda...@gmail.com wrote: Hi, Charles, Looks like you are doing sampling based on given/computed probabilities. You might want to checkout the

Re: [julia-users] How do I create a function signature for a 2x2 matrix?

2014-06-24 Thread Rick Muller
Thanks. That makes sense. On Tuesday, June 24, 2014 8:20:37 AM UTC-6, John Myles White wrote: (1) The size of arrays isn’t part of their type signature, so you can’t use multiple dispatch to do this. You’ll end up overwriting the existing Array multiplication function. (2) You’d want to

[julia-users] Re: How do I create a function signature for a 2x2 matrix?

2014-06-24 Thread Rick Muller
Yes, I think that's what I meant. But, coming from Python, this whole typing thing is alien to me. Thanks for your help. On Tuesday, June 24, 2014 8:15:45 AM UTC-6, Ivar Nesje wrote: Do you mean *{T}(a::Array{T,2}, b) = whatever ? Ivar kl. 15:10:23 UTC+2 tirsdag 24. juni 2014 skrev

[julia-users] Re: Compilation error help??

2014-06-24 Thread J Luis
You seam to be in the situation I was in https://github.com/JuliaLang/julia/issues/7254 but see also https://github.com/JuliaLang/julia/issues/7394 Terça-feira, 24 de Junho de 2014 15:39:04 UTC+1, Glen Hertz escreveu: Hi, I also ran into that error so thanks for the tip. My compilation

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Tim Holy
convert(Image, img) where img is your ImageCmap --Tim On Tuesday, June 24, 2014 05:13:20 AM Yakir Gagnon wrote: Great! I didn't know it was that simple, but if I have an indexed image I created with ImageCmap, how would I first convert it to a direct image so that I'll be able to concatenate

Re: [julia-users] How do I create a function signature for a 2x2 matrix?

2014-06-24 Thread Tim Holy
On Tuesday, June 24, 2014 07:20:33 AM John Myles White wrote: (1) The size of arrays isn’t part of their type signature But see ImmutableArrays.jl and https://github.com/JuliaLang/julia/issues/5857 --Tim

Re: [julia-users] Re: juliabloggers.com is now live!

2014-06-24 Thread Randy Zwitch
Sorry I missed this before...is this still an issue? WordPress RSS feeds should be pretty standardized to work with any reader, but if there is an issue, I can see if there's a setting I'm missing. On Tuesday, June 17, 2014 5:17:02 PM UTC-4, K leo wrote: I use g2reader

[julia-users] Julia simple

2014-06-24 Thread JuliaFan
Why do these three loops perform so differently? type MyCounter i::Integer end up!(x::MyCounter) = (x.i += 1; x) up!(x::Integer) = (x += 1; x) cc = MyCounter(0) dd = MyCounter(0) ee = 0 @time for i in 1:100 up!(cc) end @time for i in 1:100 dd.i=up!(dd.i) end @time for i in

Re: [julia-users] Julia simple

2014-06-24 Thread John Myles White
(1) Are you including compilation time in your timings? (2) Your MyCounter type isn't very similar to your other examples, since the i::Integer field has type-uncertainty, whereas the other examples don't. -- John On Jun 24, 2014, at 2:26 PM, JuliaFan lam...@gmail.com wrote: Why do these

[julia-users] Re: Julia simple

2014-06-24 Thread JuliaFan
It was the type uncertainty - thanks for pointing that out.

Re: [julia-users] DataFrames.jl problem

2014-06-24 Thread cnbiz850
using the latest build and most updated packages, I don't have that problem. | | |_| | | | (_| | | Version 0.3.0-prerelease+3863 (2014-06-24 04:00 UTC) _/ |\__'_|_|_|\__'_| | Commit c300f5f* (0 days old master) |__/ | x86_64-linux-gnu julia using DataFrames julia

[julia-users] DataFrames.jl problem

2014-06-24 Thread Matt Bauman
A lot has changed in Distributions lately, but Pkg isn't updating it for you because you have uncommitted modifications (it's dirty). Perhaps that could be causing this?

Re: [julia-users] DataFrames.jl problem

2014-06-24 Thread Travis Porco
You are right--the current daily build does NOT have the problem I cited. Thanks; I should have tried this before posting! On Tuesday, June 24, 2014 7:18:02 PM UTC-7, K leo wrote: using the latest build and most updated packages, I don't have that problem. | | |_| | | | (_| | |

Re: [julia-users] installation behind a few walls

2014-06-24 Thread Isaiah Norton
Hi Andreas, Unfortunately this seems like it might indeed be a proxy issue. A quick google gives some results indicating that other people have experienced similar issues when the size of a commit exceeds the single-transaction size limit for the proxy server. Isaiah On Mon, Jun 23, 2014 at

Re: [julia-users] Images imwrite PNG with Alpha transparency

2014-06-24 Thread Yakir Gagnon
Thank you so much! On Wednesday, June 25, 2014 3:10:28 AM UTC+10, Tim Holy wrote: convert(Image, img) where img is your ImageCmap --Tim On Tuesday, June 24, 2014 05:13:20 AM Yakir Gagnon wrote: Great! I didn't know it was that simple, but if I have an indexed image I created

[julia-users] Capture the output of Julia's console

2014-06-24 Thread Laszlo Hars
I tried to get answers in various threads to my question below, but so far nobody could help. Let me try in a separate thread… I use the latest Julia 0.3.0 nightly under Windows. The problem: I have computer generated Julia code. The simplest case is when a block of Julia instructions is

[julia-users] when run 'Using PKGxxx', it will try to find one in Pkg.dir() first?

2014-06-24 Thread yfractal
When I run tests in a directory, I hope the code is loaded in tests is from the directory, not the pkg path. Does this make sense? For example, I cloned the XXX, and added something to it, and run tests, oops, nothing changed ... Then I fond the code loaded is come from the Pkg.dir(). Did i