comparison src/LazyTensors/lazy_tensor_operations.jl @ 530:7f969ea03a01 feature/inflated_tensormapping_transpose

Remove todo
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 25 Nov 2020 21:00:31 +0100
parents f9bc746f37da
children 36dfc57e8e0b
comparison
equal deleted inserted replaced
527:f9bc746f37da 530:7f969ea03a01
238 InflatedTensorMapping(before::IdentityMapping, tm::TensorMapping{T}) where T = InflatedTensorMapping(before,tm,IdentityMapping{T}()) 238 InflatedTensorMapping(before::IdentityMapping, tm::TensorMapping{T}) where T = InflatedTensorMapping(before,tm,IdentityMapping{T}())
239 InflatedTensorMapping(tm::TensorMapping{T}, after::IdentityMapping) where T = InflatedTensorMapping(IdentityMapping{T}(),tm,after) 239 InflatedTensorMapping(tm::TensorMapping{T}, after::IdentityMapping) where T = InflatedTensorMapping(IdentityMapping{T}(),tm,after)
240 # Resolve ambiguity between the two previous methods 240 # Resolve ambiguity between the two previous methods
241 InflatedTensorMapping(I1::IdentityMapping{T}, I2::IdentityMapping{T}) where T = InflatedTensorMapping(I1,I2,IdentityMapping{T}()) 241 InflatedTensorMapping(I1::IdentityMapping{T}, I2::IdentityMapping{T}) where T = InflatedTensorMapping(I1,I2,IdentityMapping{T}())
242 242
243 # TODO: Implement syntax and constructors for products of different combinations of InflatedTensorMapping and IdentityMapping
244
245 # TODO: Implement some pretty printing in terms of ⊗. E.g InflatedTensorMapping(I(3),B,I(2)) -> I(3)⊗B⊗I(2) 243 # TODO: Implement some pretty printing in terms of ⊗. E.g InflatedTensorMapping(I(3),B,I(2)) -> I(3)⊗B⊗I(2)
246 244
247 function range_size(itm::InflatedTensorMapping) 245 function range_size(itm::InflatedTensorMapping)
248 return flatten_tuple( 246 return flatten_tuple(
249 range_size(itm.before), 247 range_size(itm.before),