Thanks again!

On Tuesday, April 8, 2014 2:00:50 AM UTC-4, Ivar Nesje wrote:
>
> This should be fixed with https://github.com/JuliaLang/julia/pull/6462
>
> kl. 07:39:05 UTC+2 tirsdag 8. april 2014 skrev Ivar Nesje følgende:
>>
>> Thanks for the report.
>>
>> I found the bug in 
>> https://github.com/JuliaLang/julia/blob/master/base/statistics.jl#L470, 
>> because it tries to calculate length(edg) - 1, but actually calculates 
>> length(edg - 1), which is kind of useless.
>>
>> I'll work on a patch (and maybe add a test).
>>
>> Ivar
>>
>> kl. 01:26:43 UTC+2 tirsdag 8. april 2014 skrev Stephen Voinea følgende:
>>>
>>> If I recall correctly, it used to be that for a matrix M, hist(M)[2] 
>>> would return a matrix whose ith column would be the histogram of the ith 
>>> column of M. I know 'hist' was recently updated, and now whenever I call it 
>>> on a matrix, I get the following error:
>>>
>>> julia> x = rand(10,10);
>>>
>>> julia> hist(x)
>>> ERROR: Incorrect size of H.
>>>  in hist! at statistics.jl:460
>>>  in hist at statistics.jl:470
>>>  in hist at statistics.jl:472
>>>
>>> I get this even if I provide the number of bins or bin edges. I believe 
>>> H is where hist! is writing the column-wise histogram, but I'm not sure why 
>>> it's always of the wrong size. I may be misusing the updated 'hist', but I 
>>> can't figure out how from the code and documentation. Thanks in advance for 
>>> any help.
>>>
>>> https://github.com/JuliaLang/julia/blob/master/base/statistics.jl
>>>
>>> julia> versioninfo()
>>> Julia Version 0.3.0-prerelease+2503
>>> Commit 2990c29 (2014-04-06 04:30 UTC)
>>> Platform Info:
>>>   System: Darwin (x86_64-apple-darwin13.1.0)
>>>   CPU: Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
>>>   WORD_SIZE: 64
>>>   BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
>>>   LAPACK: libopenblas
>>>   LIBM: libopenlibm
>>>
>>

Reply via email to