Skip to content

Commit

Permalink
Merge pull request #172 from SimonRohou/codac2_dev
Browse files Browse the repository at this point in the history
Solving Doxygen issue with template specializations
  • Loading branch information
SimonRohou authored Jan 8, 2025
2 parents 519a690 + 04a7233 commit 50664bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/04_explored_area/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ int main()

Interval tdomain(0,5);
auto sampled_f = AnalyticTrajectory(f,tdomain).sampled(0.8);
sampled_f[6] = {0,-1};
sampled_f[6] = {0,-1}; // appending the position (0,-1) at t=6

VectorVar w(3);
auto g = sampled_f.as_function();
AnalyticFunction h {
{w},
{w}, // w=(t,x,y)
sqr(w[0]-g(w[2])[0])+sqr(w[1]-g(w[2])[1])
};

Expand Down
4 changes: 2 additions & 2 deletions examples/04_explored_area/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

tdomain = [0,5]
sampled_f = AnalyticTrajectory(f,tdomain).sampled(0.8)
sampled_f[6] = [0,-1]
sampled_f[6] = [0,-1] # appending the position (0,-1) at t=6

w = VectorVar(3)
g = sampled_f.as_function()
h = AnalyticFunction(
[w],
[w], # w=(t,x,y)
sqr(w[0]-g(w[2])[0])+sqr(w[1]-g(w[2])[1])
)

Expand Down
4 changes: 4 additions & 0 deletions src/core/separators/codac2_SepWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

namespace codac2
{
/// \cond SepWrapper_<T>

template<typename T>
class SepWrapper_ : public Sep<SepWrapper_<T>>
{
Expand All @@ -30,6 +32,8 @@ namespace codac2
const T _y;
};

/// \endcond

template<>
class SepWrapper_<IntervalVector> : public SepCtcPair
{
Expand Down

0 comments on commit 50664bf

Please sign in to comment.