transcendental.hh
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __GECODE_FLOAT_TRANSCENDENTAL_HH__
00035 #define __GECODE_FLOAT_TRANSCENDENTAL_HH__
00036
00037 #include <gecode/float.hh>
00038
00044 namespace Gecode { namespace Float { namespace Transcendental {
00045
00054 template<class A, class B>
00055 class Exp : public MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND> {
00056 protected:
00057 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x0;
00058 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x1;
00059
00061 Exp(Space& home, Exp& p);
00063 Exp(Home home, A x0, B x1);
00064 public:
00066 virtual Actor* copy(Space& home);
00068 virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
00070 static ExecStatus post(Home home, A x0, B x1);
00071 };
00072
00073
00082 template<class A, class B>
00083 class Pow : public MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND> {
00084 protected:
00085 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x0;
00086 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x1;
00087 FloatNum base;
00088
00090 Pow(Space& home, Pow& p);
00092 Pow(Home home, FloatNum base, A x0, B x1);
00093 public:
00095 virtual Actor* copy(Space& home);
00097 virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
00099 static ExecStatus post(Home home, FloatNum base, A x0, B x1);
00100 };
00101
00102 }}}
00103
00104 #include <gecode/float/transcendental/exp-log.hpp>
00105
00106 #endif
00107
00108