Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/lazy_tensor_operations.jl @ 1225:6567e38b05ca refactor/LazyTensors/tuple_manipulation
Replace flatten_tuple with concatenate_tuple
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 18 Feb 2023 12:24:44 +0100 |
parents | 6f51160c7ca7 |
children | 8f4259fbd39c |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Sat Feb 18 12:18:34 2023 +0100 +++ b/src/LazyTensors/lazy_tensor_operations.jl Sat Feb 18 12:24:44 2023 +0100 @@ -176,7 +176,7 @@ # TODO: Implement some pretty printing in terms of ⊗. E.g InflatedTensor(I(3),B,I(2)) -> I(3)⊗B⊗I(2) function range_size(itm::InflatedTensor) - return flatten_tuple( + return concatenate_tuples( range_size(itm.before), range_size(itm.tm), range_size(itm.after), @@ -184,7 +184,7 @@ end function domain_size(itm::InflatedTensor) - return flatten_tuple( + return concatenate_tuples( domain_size(itm.before), domain_size(itm.tm), domain_size(itm.after),