comparison src/LazyTensors/LazyTensors.jl @ 1328:f00a205ae347 refactor/grids

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 02 May 2023 20:14:39 +0200
parents a922aa69eb83
children dfb43fdac9fc 8b64df6cadba
comparison
equal deleted inserted replaced
1327:a956fc8e79a6 1328:f00a205ae347
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