JuliaArrays / BlockArrays.jl

BlockArrays for Julia
http://juliaarrays.github.io/BlockArrays.jl/
Other
194 stars 27 forks source link

ERROR: BoundsError #56

Closed nhavt closed 6 years ago

nhavt commented 6 years ago

Hi there, when I ran the following code:

design = zeros(Int16,6,9);
BlockArray(design,[6],[4,5]);

I have an error: ERROR: BoundsError: attempt to access 2-element Array{Int64,1} at index [3].

Could you please have a look at it? My guess is that the current package does not support for a single row block? Thanks in advance!

dlfivefifty commented 6 years ago

It's actually only an error in show, if you do A = BlockArray(design,[6],[4,5]); it should work fine.

I'll but in a fix now

nhavt commented 6 years ago

Thanks very much for fixing this error. Is it possible to update the BlockArrays package via Pkg.update() now? Or will you have an updated version for the package soon? Thanks in advance!

dlfivefifty commented 6 years ago

It's fixed in the tagged version v0.5

nhavt commented 6 years ago

Thanks for your quick response!