Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 1106:b4ee47f2aafb feature/boundary_conditions
Start implementing functions for boundary conditions associated with Laplace
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 13 Jun 2022 13:46:24 +0200 |
parents | 2e606d4c0ab1 |
children | bdcdbd4ea9cd |
comparison
equal
deleted
inserted
replaced
1086:74c54996de6a | 1106:b4ee47f2aafb |
---|---|
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{T}) where T = (-one(T))*tm | |
124 | 125 |
125 """ | 126 """ |
126 InflatedTensor{T,R,D} <: LazyTensor{T,R,D} | 127 InflatedTensor{T,R,D} <: LazyTensor{T,R,D} |
127 | 128 |
128 An inflated `LazyTensor` with dimensions added before and afer its actual dimensions. | 129 An inflated `LazyTensor` with dimensions added before and afer its actual dimensions. |