Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 464:73882867c121 feature/inflated_tensormapping
Align documentation
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 22 Oct 2020 10:27:29 +0200 |
parents | 5d6cbb7bfc23 |
children | f270d82fc9ad |
comparison
equal
deleted
inserted
replaced
463:5d6cbb7bfc23 | 464:73882867c121 |
---|---|
193 D = D_before+D_middle+D_after | 193 D = D_before+D_middle+D_after |
194 return new{T,R,D,D_before,R_middle,D_middle,D_after, typeof(tm)}(before, tm, after) | 194 return new{T,R,D,D_before,R_middle,D_middle,D_after, typeof(tm)}(before, tm, after) |
195 end | 195 end |
196 end | 196 end |
197 export InflatedTensorMapping | 197 export InflatedTensorMapping |
198 | 198 """ |
199 """ | 199 InflatedTensorMapping(before, tm, after) |
200 InflatedTensorMapping(before, tm, after) | |
201 | 200 |
202 The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s. | 201 The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s. |
203 """ | 202 """ |
203 InflatedTensorMapping(::IdentityMapping, ::TensorMapping, ::IdentityMapping) | |
204 | |
204 """ | 205 """ |
205 InflatedTensorMapping(before,tm) | 206 InflatedTensorMapping(before,tm) |
206 | 207 |
207 Constructs the InflatedTensorMapping where InflatedTensorMapping.after is the empty IdentityMapping | 208 The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s and `after` is empty. |
208 """ | 209 """ |
209 InflatedTensorMapping(before::IdentityMapping, tm::TensorMapping{T}) where T = InflatedTensorMapping(before,tm,IdentityMapping{T}()) | 210 InflatedTensorMapping(before::IdentityMapping, tm::TensorMapping{T}) where T = InflatedTensorMapping(before,tm,IdentityMapping{T}()) |
210 | 211 |
211 """ | 212 """ |
212 InflatedTensorMapping(tm,after) | 213 InflatedTensorMapping(tm,after) |
213 | 214 |
214 Constructs the InflatedTensorMapping where InflatedTensorMapping.before is the empty IdentityMapping | 215 The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s and `before` is empty. |
215 """ | 216 """ |
216 InflatedTensorMapping(tm::TensorMapping{T}, after::IdentityMapping) where T = InflatedTensorMapping(IdentityMapping{T}(),tm,after) | 217 InflatedTensorMapping(tm::TensorMapping{T}, after::IdentityMapping) where T = InflatedTensorMapping(IdentityMapping{T}(),tm,after) |
217 | 218 |
218 """ | 219 """ |
219 InflatedTensorMapping(I1,I2) | 220 InflatedTensorMapping(I1,I2) |