comparison 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
comparison
equal deleted inserted replaced
1358:e7861cfb6ede 1365:4684c7f1c4cb
28 Base.:+(s::LazyTensor, t::LazyTensor) = ElementwiseTensorOperation{:+}(s,t) 28 Base.:+(s::LazyTensor, t::LazyTensor) = ElementwiseTensorOperation{:+}(s,t)
29 Base.:-(s::LazyTensor, t::LazyTensor) = ElementwiseTensorOperation{:-}(s,t) 29 Base.:-(s::LazyTensor, t::LazyTensor) = ElementwiseTensorOperation{:-}(s,t)
30 30
31 # Composing lazy tensors 31 # Composing lazy tensors
32 Base.:∘(s::LazyTensor, t::LazyTensor) = TensorComposition(s,t) 32 Base.:∘(s::LazyTensor, t::LazyTensor) = TensorComposition(s,t)
33 Base.:∘(s::TensorComposition, t::LazyTensor) = s.t1∘(s.t2∘t)
33 34
34 # Outer products of tensors 35 # Outer products of tensors
35 ⊗(a::LazyTensor, b::LazyTensor) = LazyOuterProduct(a,b) 36 ⊗(a::LazyTensor, b::LazyTensor) = LazyOuterProduct(a,b)
36 37
37 end # module 38 end # module