Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 1614:13063028d604 feature/boundary_conditions
Merge heads
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Sun, 09 Jun 2024 16:53:03 -0700 |
parents | df1856b0e2f0 |
children | 164e26a6cf79 8b64df6cadba |
comparison
equal
deleted
inserted
replaced
1613:15488c889a50 | 1614:13063028d604 |
---|---|
119 return tmi | 119 return tmi |
120 end | 120 end |
121 | 121 |
122 Base.:*(a::T, tm::LazyTensor{T}) where T = TensorComposition(ScalingTensor{T,range_dim(tm)}(a,range_size(tm)), tm) | 122 Base.:*(a::T, tm::LazyTensor{T}) where T = TensorComposition(ScalingTensor{T,range_dim(tm)}(a,range_size(tm)), tm) |
123 Base.:*(tm::LazyTensor{T}, a::T) where T = a*tm | 123 Base.:*(tm::LazyTensor{T}, a::T) where T = a*tm |
124 Base.:-(tm::LazyTensor) where T = (-one(eltype(tm)))*tm | 124 Base.:-(tm::LazyTensor) = (-one(eltype(tm)))*tm |
125 | 125 |
126 """ | 126 """ |
127 InflatedTensor{T,R,D} <: LazyTensor{T,R,D} | 127 InflatedTensor{T,R,D} <: LazyTensor{T,R,D} |
128 | 128 |
129 An inflated `LazyTensor` with dimensions added before and after its actual dimensions. | 129 An inflated `LazyTensor` with dimensions added before and after its actual dimensions. |