Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 1609:df1856b0e2f0 feature/boundary_conditions
Remove extra `where T`
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 09 Jun 2024 23:03:04 +0200 |
parents | 1388149b54ad |
children | 164e26a6cf79 8b64df6cadba |
comparison
equal
deleted
inserted
replaced
1605:1388149b54ad | 1609:df1856b0e2f0 |
---|---|
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. |