comparison src/LazyTensors/tensor_mapping.jl @ 492:cd509e57f898 feature/tensormapping_eltype

Implement method eltype for TensorMapping
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Nov 2020 12:51:26 +0100
parents 7fe43d902a27
children 76e5682d0e52
comparison
equal deleted inserted replaced
490:7e698030c170 492:cd509e57f898
62 """ 62 """
63 function domain_size end 63 function domain_size end
64 64
65 export range_size, domain_size 65 export range_size, domain_size
66 66
67 """
68 eltype(::TensorMapping{T})
69
70 The type of elements the TensorMapping acts on.
71 """
72 Base.eltype(::TensorMapping{T}) where T = T
73
67 # TODO: Think about boundschecking! 74 # TODO: Think about boundschecking!