Mercurial > repos > public > sbplib_julia
diff 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 |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Thu Oct 22 10:02:36 2020 +0200 +++ b/src/LazyTensors/lazy_tensor_operations.jl Thu Oct 22 10:27:29 2020 +0200 @@ -195,23 +195,24 @@ end end export InflatedTensorMapping - """ -InflatedTensorMapping(before, tm, after) + InflatedTensorMapping(before, tm, after) The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s. """ +InflatedTensorMapping(::IdentityMapping, ::TensorMapping, ::IdentityMapping) + """ InflatedTensorMapping(before,tm) -Constructs the InflatedTensorMapping where InflatedTensorMapping.after is the empty IdentityMapping +The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s and `after` is empty. """ InflatedTensorMapping(before::IdentityMapping, tm::TensorMapping{T}) where T = InflatedTensorMapping(before,tm,IdentityMapping{T}()) """ InflatedTensorMapping(tm,after) -Constructs the InflatedTensorMapping where InflatedTensorMapping.before is the empty IdentityMapping +The outer product of `before`, `tm` and `after`, where `before` and `after` are `IdentityMapping`s and `before` is empty. """ InflatedTensorMapping(tm::TensorMapping{T}, after::IdentityMapping) where T = InflatedTensorMapping(IdentityMapping{T}(),tm,after)