codac 1.5.6
Loading...
Searching...
No Matches
codac2_CtcLazy.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 CtcLazy : public Ctc<CtcLazy,IntervalVector>
20 {
21 public:
22
23 template<typename C>
24 requires IsCtcBaseOrPtr<C,IntervalVector>
25 CtcLazy(const C& c)
26 : Ctc<CtcLazy,IntervalVector>(size_of(c)), _ctc(c),
27 _r(1./std::pow(2,size_of(c)-1))
28 { }
29
30 void contract(IntervalVector& x) const;
31
32 protected:
33
34 const Collection<CtcBase<IntervalVector>> _ctc;
35 const double _r;
36 };
37}
Interval pow(const Interval &x, int n)
Returns , .
Definition codac2_Interval_operations_impl.h:33