Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/lazy_tensor_operations.jl @ 419:2958b4ebd565 feature/tensor_composition
Change error message to fit guidelines
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 18 Oct 2020 21:50:03 +0200 |
parents | 264af2bb646f |
children | 7327a3e41df0 cffdac9c612d |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Fri Oct 16 20:35:41 2020 +0200 +++ b/src/LazyTensors/lazy_tensor_operations.jl Sun Oct 18 21:50:03 2020 +0200 @@ -85,7 +85,7 @@ @inline function TensorMappingComposition(t1::TensorMapping{T,R,K}, t2::TensorMapping{T,K,D}) where {T,R,K,D} @boundscheck if domain_size(t1) != range_size(t2) - throw(DimensionMismatch("The first argument has domain size $(domain_size(t1)) while the second has range size $(range_size(t2)) ")) + throw(DimensionMismatch("the first argument has domain size $(domain_size(t1)) while the second has range size $(range_size(t2)) ")) end return new{T,R,K,D, typeof(t1), typeof(t2)}(t1,t2) end