catmat fix

This commit is contained in:
ylxdzsw 2017-05-11 15:46:13 +01:00 committed by Mike J Innes
parent d1bf158565
commit 019e34194d

View File

@ -15,7 +15,7 @@ size(b::CatMat) = (size(b.data, 1),)
getindex(b::CatMat, i)::eltype(b) = slicedim(b.data, 1, i)
setindex!(b::CatMat, v, i) = b[i, :] = v
setindex!(b::CatMat, v, i) = b.data[i, :] = v
allequal(xs) = all(x -> x == first(xs), xs)