Skip to content

Commit e9c4d62

Browse files
committed
Merge branch 'codac2_dev' of github.com:codac-team/codac into codac2_dev
2 parents 4221cfa + 727d46e commit e9c4d62

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎src/extensions/capd/codac2_peibos_capd.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ using namespace std;
1919

2020
namespace codac2
2121
{
22-
std::map<double, std::vector<T>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const vector<OctaSym>& Sigma, double epsilon, bool verbose)
22+
std::map<double, std::vector<PEIBOS_CAPD_Result>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const vector<OctaSym>& Sigma, double epsilon, bool verbose)
2323
{
2424
return PEIBOS(i_map, tf, dt, psi_0, Sigma, epsilon, Vector::zero(psi_0.output_size()), verbose);
2525
}
2626

27-
std::map<double, std::vector<T>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const vector<OctaSym>& Sigma, double epsilon, const Vector& offset, bool verbose)
27+
std::map<double, std::vector<PEIBOS_CAPD_Result>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const vector<OctaSym>& Sigma, double epsilon, const Vector& offset, bool verbose)
2828
{
2929
std::vector<double> time_points;
3030
for (double t = 0.; t <= tf; t += dt)
@@ -48,7 +48,7 @@ namespace codac2
4848
double true_eps = split(Interval(-1.,1.)*IntervalVector::Ones(m), epsilon, boxes);
4949

5050
int nthreads = nb_threads();
51-
std::vector<std::map<double, std::vector<T>>> thread_outputs(nthreads);
51+
std::vector<std::map<double, std::vector<PEIBOS_CAPD_Result>>> thread_outputs(nthreads);
5252

5353
struct WorkItem { const OctaSym* sigma; const IntervalVector* box; };
5454
std::vector<WorkItem> work;
@@ -109,7 +109,7 @@ namespace codac2
109109

110110
for (auto& th : threads) th.join();
111111

112-
std::map<double, std::vector<T>> output;
112+
std::map<double, std::vector<PEIBOS_CAPD_Result>> output;
113113

114114
for (auto& vec : thread_outputs)
115115
for (auto t : time_points)
@@ -130,7 +130,7 @@ namespace codac2
130130
return output;
131131
}
132132

133-
std::map<double,std::vector<Parallelepiped>> reach_set(const std::map<double, std::vector<T>>& peibos_output)
133+
std::map<double,std::vector<Parallelepiped>> reach_set(const std::map<double, std::vector<PEIBOS_CAPD_Result>>& peibos_output)
134134
{
135135
std::map<double,std::vector<Parallelepiped>> output;
136136

‎src/extensions/capd/codac2_peibos_capd.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace codac2
3636
Vector offset;
3737
};
3838

39-
using T = std::tuple<PEIBOS_CAPD_Key,IntervalVector,IntervalMatrix>;
39+
using PEIBOS_CAPD_Result = std::tuple<PEIBOS_CAPD_Key,IntervalVector,IntervalMatrix>;
4040

4141
/**
4242
* \brief PEIBOS algorithm using CAPD for guaranteed ODE propagation.
@@ -54,7 +54,7 @@ namespace codac2
5454
* \li The interval vector \f$\mathbf{z}\f$ containing the image \f$\bar{\mathbf{x}}(t))\f$
5555
* \li The interval Jacobian matrix \f$\mathbf{J_f}\f$ containing \f$D\mathbf{\left[x\right]}(t)\f$
5656
*/
57-
std::map<double, std::vector<T>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const std::vector<OctaSym>& Sigma, double epsilon, bool verbose = false);
57+
std::map<double, std::vector<PEIBOS_CAPD_Result>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const std::vector<OctaSym>& Sigma, double epsilon, bool verbose = false);
5858

5959
/**
6060
* \brief PEIBOS algorithm using CAPD for guaranteed ODE propagation.
@@ -73,7 +73,7 @@ namespace codac2
7373
* \li The interval vector \f$\mathbf{z}\f$ containing the image \f$\bar{\mathbf{x}}(t))\f$
7474
* \li The interval Jacobian matrix \f$\mathbf{J_f}\f$ containing \f$D\mathbf{\left[x\right]}(t)\f$
7575
*/
76-
std::map<double, std::vector<T>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const std::vector<OctaSym>& Sigma, double epsilon, const Vector& offset, bool verbose = false);
76+
std::map<double, std::vector<PEIBOS_CAPD_Result>> PEIBOS(const capd::IMap& i_map, double tf, double dt, const AnalyticFunction<VectorType>& psi_0, const std::vector<OctaSym>& Sigma, double epsilon, const Vector& offset, bool verbose = false);
7777

7878

7979
/**
@@ -84,5 +84,5 @@ namespace codac2
8484
* \return A timed map of reach set parallelepipeds. At each time \f$t\f$, the value is a vector of Parallelepipeds enclosing the reach set at time \f$t\f$.
8585
* The function \ref parallelepiped_inclusion is used to compute each Parallelepiped from the PEIBOS CAPD output.
8686
*/
87-
std::map<double, std::vector<Parallelepiped>> reach_set(const std::map<double, std::vector<T>>& peibos_output);
87+
std::map<double, std::vector<Parallelepiped>> reach_set(const std::map<double, std::vector<PEIBOS_CAPD_Result>>& peibos_output);
8888
}

0 commit comments

Comments
 (0)