diff src/LazyTensors/tensor_mapping.jl @ 509:b7e42384053a feature/boundary_ops

Merge w. default
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sun, 08 Nov 2020 16:01:39 +0100
parents cd509e57f898
children 76e5682d0e52
line wrap: on
line diff
--- a/src/LazyTensors/tensor_mapping.jl	Mon Oct 19 19:02:48 2020 +0200
+++ b/src/LazyTensors/tensor_mapping.jl	Sun Nov 08 16:01:39 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!