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
00035
00036
00037
00038 #ifndef __GECODE_FLOAT_TRANSCENDENTAL_HH__
00039 #define __GECODE_FLOAT_TRANSCENDENTAL_HH__
00040
00041 #include <gecode/float.hh>
00042
00048 namespace Gecode { namespace Float { namespace Transcendental {
00049
00058 template<class A, class B>
00059 class Exp : public MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND> {
00060 protected:
00061 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x0;
00062 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x1;
00063
00065 Exp(Space& home, bool share, Exp& p);
00067 Exp(Home home, A x0, B x1);
00068 public:
00070 virtual Actor* copy(Space& home, bool share);
00072 virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
00074 static ExecStatus post(Home home, A x0, B x1);
00075 };
00076
00077
00086 template<class A, class B>
00087 class Pow : public MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND> {
00088 protected:
00089 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x0;
00090 using MixBinaryPropagator<A,PC_FLOAT_BND,B,PC_FLOAT_BND>::x1;
00091 FloatNum base;
00092
00094 Pow(Space& home, bool share, Pow& p);
00096 Pow(Home home, FloatNum base, A x0, B x1);
00097 public:
00099 virtual Actor* copy(Space& home, bool share);
00101 virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
00103 static ExecStatus post(Home home, FloatNum base, A x0, B x1);
00104 };
00105
00106 }}}
00107
00108 #include <gecode/float/transcendental/exp-log.hpp>
00109
00110 #endif
00111
00112