Mercurial > repos > public > sbplib_julia
changeset 158:a3fac8298e3c boundary_conditions
Add domain_size() method
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 10 May 2019 15:04:54 +0200 |
parents | 63b495d5dbc7 |
children | b790082032da |
files | TensorMappings.jl |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/TensorMappings.jl Mon Apr 29 11:47:26 2019 +0200 +++ b/TensorMappings.jl Fri May 10 15:04:54 2019 +0200 @@ -8,7 +8,8 @@ domain_dim(::TensorMapping{T,R,D}) where {T,R,D} = D range_size(::TensorOperator{T,D}, domain_size::NTuple{D,Integer}) where {T,D} = domain_size -# More prciese domain_size type? +domain_size(::TensorOperator{T,D}, range_size::NTuple{D,Integer}) where {T,D} = range_size +# More precise domain_size/range_size type? # Should be implemented by a TensorMapping # ======================================== @@ -19,7 +20,9 @@ # range_size(::TensorMapping{T,R,D}, domain_size::NTuple{D,Integer}) where {T,R,D} = # More prciese domain_size type? -# range_size_of_transpose()??? +# domain_size(::TensorMapping{T,R,D}, range_size::NTuple{R,Integer}) where {T,R,D} = + +# Implementing apply_transpose and domain_size is only needed if you want to take transposes of the TensorMapping.