Mercurial > repos > public > sbplib_julia
comparison src/Grids/manifolds.jl @ 1568:90af15f38c62 feature/grids/manifolds
Update todos
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 25 Apr 2024 13:51:17 +0200 |
| parents | 35fe4375b35f |
| children | 157c43966b06 |
comparison
equal
deleted
inserted
replaced
| 1567:64baaf29ae4e | 1568:90af15f38c62 |
|---|---|
| 83 """ | 83 """ |
| 84 function parameterspace end | 84 function parameterspace end |
| 85 | 85 |
| 86 (c::Chart{D})(x̄::SVector{D}) where D = c(x̄...) | 86 (c::Chart{D})(x̄::SVector{D}) where D = c(x̄...) |
| 87 | 87 |
| 88 | |
| 89 # TODO: Add trait for if there is a jacobian available? | |
| 90 # Add package extension to allow calling the getter function anyway if it's not available | |
| 91 # And can we add an informative error that ForwardDiff could be loaded to make it work? | |
| 92 # Or can we handle this be custom implementations? For sometypes in the library it can be implemented explicitly. | |
| 93 # And as an example for ConcreteChart it can be implemented by the user like | |
| 94 # c = ConcreteChart(...) | |
| 95 # jacobian(c::typeof(c)) = ... | |
| 88 | 96 |
| 89 struct ConcreteChart{D, PST<:ParameterSpace{D}, MT} <: Chart{D} | 97 struct ConcreteChart{D, PST<:ParameterSpace{D}, MT} <: Chart{D} |
| 90 mapping::MT | 98 mapping::MT |
| 91 parameterspace::PST | 99 parameterspace::PST |
| 92 end | 100 end |
