Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/lazy_tensor_operations.jl @ 1650:8250cf5a3ce9 feature/grids/manifolds
Merge feature/grids/curvilinear
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 12:42:28 +0200 |
parents | df1856b0e2f0 |
children | 164e26a6cf79 8b64df6cadba |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Wed Jun 26 11:06:32 2024 +0200 +++ b/src/LazyTensors/lazy_tensor_operations.jl Wed Jun 26 12:42:28 2024 +0200 @@ -121,6 +121,7 @@ Base.:*(a::T, tm::LazyTensor{T}) where T = TensorComposition(ScalingTensor{T,range_dim(tm)}(a,range_size(tm)), tm) Base.:*(tm::LazyTensor{T}, a::T) where T = a*tm +Base.:-(tm::LazyTensor) = (-one(eltype(tm)))*tm """ InflatedTensor{T,R,D} <: LazyTensor{T,R,D}