Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/tensor_mapping.jl @ 498:5a600ec40ccc feature/outer_product
Merge in default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 05 Nov 2020 15:27:04 +0100 |
parents | cd509e57f898 |
children | 76e5682d0e52 |
line wrap: on
line diff
--- a/src/LazyTensors/tensor_mapping.jl Thu Nov 05 12:48:30 2020 +0100 +++ b/src/LazyTensors/tensor_mapping.jl Thu Nov 05 15:27:04 2020 +0100 @@ -64,4 +64,11 @@ export range_size, domain_size +""" + eltype(::TensorMapping{T}) + +The type of elements the TensorMapping acts on. +""" +Base.eltype(::TensorMapping{T}) where T = T + # TODO: Think about boundschecking!