codac 1.5.6
Loading...
Searching...
No Matches
codac2_CtcFixpoint.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "codac2_CtcWrapper.h"
13#include "codac2_Collection.h"
16
17namespace codac2
18{
19 class CtcFixpoint : public Ctc<CtcFixpoint,IntervalVector>
20 {
21 public:
22
23 template<typename C>
24 requires IsCtcBaseOrPtr<C,IntervalVector>
25 CtcFixpoint(const C& c, double ratio = 0.1)
26 : Ctc<CtcFixpoint,IntervalVector>(size_of(c)), _ctc(c),
27 _r(ratio)
28 { }
29
30 void contract(IntervalVector& x) const;
31
32 protected:
33
34 const Collection<CtcBase<IntervalVector>> _ctc;
35 const double _r;
36 };
37}