batch vcat

This commit is contained in:
Mike J Innes 2017-06-06 17:15:22 +01:00
parent 3c52622896
commit e5df1c31dd

View File

@ -60,6 +60,8 @@ rawbatch(xs::Batchable) = rawbatch(storage(xs))
size(xs::Batchable) = size(storage(xs)) size(xs::Batchable) = size(storage(xs))
getindex(xs::Batchable, i) = getindex(storage(xs), i) getindex(xs::Batchable, i) = getindex(storage(xs), i)
Base.vcat{T<:Batchable}(xs::T, ys::T)::T = vcat(rawbatch(xs), rawbatch(ys))
typerender(B::Type) = B typerender(B::Type) = B
typerender(B::Type{<:Batchable}) = typerender(B::Type{<:Batchable}) =
Row(Juno.typ("$(typename(B).name)"), text"{", typerender(eltype(B)), text"}") Row(Juno.typ("$(typename(B).name)"), text"{", typerender(eltype(B)), text"}")