Mercurial > repos > public > sbplib_julia
comparison LazyTensors/src/tensor_mapping.jl @ 285:e21dcda55163 boundary_conditions
Add type representing an unknown dimension in the domain of tensormappings
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 19 Jun 2020 12:20:31 +0200 |
parents | 8964b3165097 |
children |
comparison
equal
deleted
inserted
replaced
284:0b8e041a1873 | 285:e21dcda55163 |
---|---|
60 | 60 |
61 Return the resulting domain size for the mapping applied to a given range_size | 61 Return the resulting domain size for the mapping applied to a given range_size |
62 """ | 62 """ |
63 function domain_size end | 63 function domain_size end |
64 | 64 |
65 export range_size, domain_size | 65 """ |
66 Dummy type for representing dimensions of tensormappings when domain_size is unknown | |
67 """ | |
68 struct UnknownDim end | |
69 export range_size, domain_size, TensorMappingDim, UnknownDim | |
70 | |
66 # TODO: Think about boundschecking! | 71 # TODO: Think about boundschecking! |
67 | 72 |
68 | 73 |
69 """ | 74 """ |
70 TensorOperator{T,D} | 75 TensorOperator{T,D} |