Mercurial > repos > public > sbplib_julia
comparison src/RegionIndices/RegionIndices.jl @ 542:011ca1639153 refactor/tensor_index_coupling
Remove Index{Unknown} and replace with general Any implementations
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 27 Nov 2020 11:27:37 +0100 |
| parents | 91e015880ae6 |
| children | b41180efb6c2 |
comparison
equal
deleted
inserted
replaced
| 541:62d96e2cd165 | 542:011ca1639153 |
|---|---|
| 2 | 2 |
| 3 abstract type Region end | 3 abstract type Region end |
| 4 struct Interior <: Region end | 4 struct Interior <: Region end |
| 5 struct Lower <: Region end | 5 struct Lower <: Region end |
| 6 struct Upper <: Region end | 6 struct Upper <: Region end |
| 7 struct Unknown <: Region end | |
| 8 | 7 |
| 9 export Region, Interior, Lower, Upper, Unknown | 8 export Region, Interior, Lower, Upper |
| 10 | 9 |
| 11 struct Index{R<:Region, T<:Integer} | 10 struct Index{R<:Region, T<:Integer} |
| 12 i::T | 11 i::T |
| 13 | 12 |
| 14 Index{R,T}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) | 13 Index{R,T}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) |
