comparison src/LazyTensors/lazy_tensor_operations.jl @ 484:b995f056ad1f feature/compose_identity_mappings

Export SizeMismatch
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Nov 2020 10:47:31 +0100
parents d5032c58c67a
children 4b49f03bdb98
comparison
equal deleted inserted replaced
483:d5032c58c67a 484:b995f056ad1f
100 100
101 struct SizeMismatch <: Exception 101 struct SizeMismatch <: Exception
102 tm::TensorMapping 102 tm::TensorMapping
103 sz 103 sz
104 end 104 end
105 export SizeMismatch
105 106
106 function Base.showerror(io::IO, err::SizeMismatch) 107 function Base.showerror(io::IO, err::SizeMismatch)
107 print(io, "SizeMismatch: ") 108 print(io, "SizeMismatch: ")
108 print(io, "attempt to apply TensorMapping with domain size $(domain_size(err.tm)) to a domain of size $(err.sz)") 109 print(io, "attempt to apply TensorMapping with domain size $(domain_size(err.tm)) to a domain of size $(err.sz)")
109 end 110 end