diff src/LazyTensors/LazyTensors.jl @ 1365:4684c7f1c4cb feature/variable_derivatives

Merge with default
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sun, 21 May 2023 21:55:14 +0200
parents a922aa69eb83
children dfb43fdac9fc 8b64df6cadba
line wrap: on
line diff
--- a/src/LazyTensors/LazyTensors.jl	Sat May 20 14:26:36 2023 +0200
+++ b/src/LazyTensors/LazyTensors.jl	Sun May 21 21:55:14 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)