diff src/LazyTensors/LazyTensors.jl @ 1323:95cac1ee8476

Merging bugfix/lazy_tensors/tensorcomposition
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Mon, 01 May 2023 11:37:09 +0200
parents a922aa69eb83
children dfb43fdac9fc 8b64df6cadba
line wrap: on
line diff
--- a/src/LazyTensors/LazyTensors.jl	Tue Feb 21 21:01:46 2023 +0100
+++ b/src/LazyTensors/LazyTensors.jl	Mon May 01 11:37:09 2023 +0200
@@ -30,6 +30,7 @@
 
 # Composing lazy tensors
 Base.:∘(s::LazyTensor, t::LazyTensor) = TensorComposition(s,t)
+Base.:∘(s::TensorComposition, t::LazyTensor) = s.t1∘(s.t2∘t)
 
 # Outer products of tensors
 ⊗(a::LazyTensor, b::LazyTensor) = LazyOuterProduct(a,b)