move convert method

This commit is contained in:
Mike J Innes 2016-10-25 14:10:27 +01:00
parent 1847809e99
commit 7438ee6108
1 changed files with 3 additions and 3 deletions

View File

@ -6,6 +6,9 @@ immutable CatMat{T,S} <: AbstractVector{T}
data::S
end
convert{T,S}(::Type{CatMat{T,S}},storage::S) =
CatMat{T,S}(storage)
eltype{T}(::CatMat{T}) = T
size(b::CatMat) = (size(b.data, 1),)
@ -45,6 +48,3 @@ end
rawbatch(xs) = xs
rawbatch(xs::CatMat) = xs.data
convert{T,S}(::Type{CatMat{T,S}},storage::S) =
CatMat{T,S}(storage)