585 lines
123 KiB
XML
585 lines
123 KiB
XML
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
|
||
|
<compounddef id="float_2val_8hpp" kind="file">
|
||
|
<compoundname>val.hpp</compoundname>
|
||
|
<includedby refid="float_8hh" local="no">/usr/include/gecode/float.hh</includedby>
|
||
|
<invincdepgraph>
|
||
|
<node id="3394">
|
||
|
<label>/usr/include/gecode/float/val.hpp</label>
|
||
|
<link refid="float/val.hpp"/>
|
||
|
<childnode refid="3395" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="3395">
|
||
|
<label>/usr/include/gecode/float.hh</label>
|
||
|
<link refid="float_8hh_source"/>
|
||
|
<childnode refid="3396" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="3397" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="3398" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="3399" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="3399">
|
||
|
<label>/usr/include/gecode/float/rel.hh</label>
|
||
|
<link refid="float_2rel_8hh_source"/>
|
||
|
<childnode refid="3396" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="3396">
|
||
|
<label>/usr/include/gecode/float/arithmetic.hh</label>
|
||
|
<link refid="float_2arithmetic_8hh_source"/>
|
||
|
</node>
|
||
|
<node id="3398">
|
||
|
<label>/usr/include/gecode/float/linear.hh</label>
|
||
|
<link refid="float_2linear_8hh_source"/>
|
||
|
</node>
|
||
|
<node id="3397">
|
||
|
<label>/usr/include/gecode/float/branch.hh</label>
|
||
|
<link refid="float_2branch_8hh_source"/>
|
||
|
</node>
|
||
|
</invincdepgraph>
|
||
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
||
|
<innernamespace refid="namespaceGecode_1_1Float">Gecode::Float</innernamespace>
|
||
|
<briefdescription>
|
||
|
</briefdescription>
|
||
|
<detaileddescription>
|
||
|
</detaileddescription>
|
||
|
<programlisting>
|
||
|
<codeline lineno="1"><highlight class="comment">/*<sp/>-*-<sp/>mode:<sp/>C++;<sp/>c-basic-offset:<sp/>2;<sp/>indent-tabs-mode:<sp/>nil<sp/>-*-<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
||
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>Main<sp/>authors:</highlight></codeline>
|
||
|
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Vincent<sp/>Barichard<sp/><Vincent.Barichard@univ-angers.fr></highlight></codeline>
|
||
|
<codeline lineno="5"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/><sp/>Contributing<sp/>authors:</highlight></codeline>
|
||
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte<sp/><schulte@gecode.org></highlight></codeline>
|
||
|
<codeline lineno="8"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
||
|
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte,<sp/>2012</highlight></codeline>
|
||
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Vincent<sp/>Barichard,<sp/>2012</highlight></codeline>
|
||
|
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
||
|
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2013-01-29<sp/>17:43:05<sp/>+0100<sp/>(Tue,<sp/>29<sp/>Jan<sp/>2013)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13241<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="16"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>Gecode,<sp/>the<sp/>generic<sp/>constraint</highlight></codeline>
|
||
|
<codeline lineno="18"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
||
|
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
||
|
<codeline lineno="20"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/><sp/>Permission<sp/>is<sp/>hereby<sp/>granted,<sp/>free<sp/>of<sp/>charge,<sp/>to<sp/>any<sp/>person<sp/>obtaining</highlight></codeline>
|
||
|
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/><sp/>a<sp/>copy<sp/>of<sp/>this<sp/>software<sp/>and<sp/>associated<sp/>documentation<sp/>files<sp/>(the</highlight></codeline>
|
||
|
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/><sp/>"Software"),<sp/>to<sp/>deal<sp/>in<sp/>the<sp/>Software<sp/>without<sp/>restriction,<sp/>including</highlight></codeline>
|
||
|
<codeline lineno="24"><highlight class="comment"><sp/>*<sp/><sp/>without<sp/>limitation<sp/>the<sp/>rights<sp/>to<sp/>use,<sp/>copy,<sp/>modify,<sp/>merge,<sp/>publish,</highlight></codeline>
|
||
|
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/><sp/>distribute,<sp/>sublicense,<sp/>and/or<sp/>sell<sp/>copies<sp/>of<sp/>the<sp/>Software,<sp/>and<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/><sp/>permit<sp/>persons<sp/>to<sp/>whom<sp/>the<sp/>Software<sp/>is<sp/>furnished<sp/>to<sp/>do<sp/>so,<sp/>subject<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="27"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
||
|
<codeline lineno="28"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="29"><highlight class="comment"><sp/>*<sp/><sp/>The<sp/>above<sp/>copyright<sp/>notice<sp/>and<sp/>this<sp/>permission<sp/>notice<sp/>shall<sp/>be</highlight></codeline>
|
||
|
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/><sp/>included<sp/>in<sp/>all<sp/>copies<sp/>or<sp/>substantial<sp/>portions<sp/>of<sp/>the<sp/>Software.</highlight></codeline>
|
||
|
<codeline lineno="31"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/><sp/>THE<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>"AS<sp/>IS",<sp/>WITHOUT<sp/>WARRANTY<sp/>OF<sp/>ANY<sp/>KIND,</highlight></codeline>
|
||
|
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/><sp/>EXPRESS<sp/>OR<sp/>IMPLIED,<sp/>INCLUDING<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO<sp/>THE<sp/>WARRANTIES<sp/>OF</highlight></codeline>
|
||
|
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
||
|
<codeline lineno="35"><highlight class="comment"><sp/>*<sp/><sp/>NONINFRINGEMENT.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>AUTHORS<sp/>OR<sp/>COPYRIGHT<sp/>HOLDERS<sp/>BE</highlight></codeline>
|
||
|
<codeline lineno="36"><highlight class="comment"><sp/>*<sp/><sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>CLAIM,<sp/>DAMAGES<sp/>OR<sp/>OTHER<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>AN<sp/>ACTION</highlight></codeline>
|
||
|
<codeline lineno="37"><highlight class="comment"><sp/>*<sp/><sp/>OF<sp/>CONTRACT,<sp/>TORT<sp/>OR<sp/>OTHERWISE,<sp/>ARISING<sp/>FROM,<sp/>OUT<sp/>OF<sp/>OR<sp/>IN<sp/>CONNECTION</highlight></codeline>
|
||
|
<codeline lineno="38"><highlight class="comment"><sp/>*<sp/><sp/>WITH<sp/>THE<sp/>SOFTWARE<sp/>OR<sp/>THE<sp/>USE<sp/>OR<sp/>OTHER<sp/>DEALINGS<sp/>IN<sp/>THE<sp/>SOFTWARE.</highlight></codeline>
|
||
|
<codeline lineno="39"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="40"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="42"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="43"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
||
|
<codeline lineno="45"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Floating<sp/>point<sp/>value:<sp/>member<sp/>functions</highlight></codeline>
|
||
|
<codeline lineno="46"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="47"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="49" refid="classGecode_1_1FloatVal_1a8c1f572364da18672ffdb5b4ae1cb988" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8c1f572364da18672ffdb5b4ae1cb988" kindref="member">FloatVal::FloatVal</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{}</highlight></codeline>
|
||
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="51" refid="classGecode_1_1FloatVal_1ad3fd6e2fbb2da4dc54539e23eefb0264" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8c1f572364da18672ffdb5b4ae1cb988" kindref="member">FloatVal::FloatVal</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>n)<sp/>:<sp/>x(n)<sp/>{}</highlight></codeline>
|
||
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="53" refid="classGecode_1_1FloatVal_1a903214697885c415c7099af3fa99f56c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8c1f572364da18672ffdb5b4ae1cb988" kindref="member">FloatVal::FloatVal</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>l,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>u)<sp/>:<sp/>x(l,u)<sp/>{}</highlight></codeline>
|
||
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="55" refid="classGecode_1_1FloatVal_1ae022bb7b75eb4ed1ff5facdefb7c7b76" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8c1f572364da18672ffdb5b4ae1cb988" kindref="member">FloatVal::FloatVal</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classboost_1_1numeric_1_1interval" kindref="compound">FloatValImpType</ref>&<sp/>i)<sp/>:<sp/>x(i)<sp/>{}</highlight></codeline>
|
||
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
||
|
<codeline lineno="57" refid="classGecode_1_1FloatVal_1af77244f0cd00856e3cef162d6dc049d1" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8c1f572364da18672ffdb5b4ae1cb988" kindref="member">FloatVal::FloatVal</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>v)<sp/>:<sp/>x(v.x)<sp/>{}</highlight></codeline>
|
||
|
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="60" refid="classGecode_1_1FloatVal_1adbe613d0b1fd41faeda1562b99a56508" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1adbe613d0b1fd41faeda1562b99a56508" kindref="member">FloatVal::operator =</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>=<sp/>n;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="64" refid="classGecode_1_1FloatVal_1a1eb552c4ec6788c68c72acd79b554ded" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1adbe613d0b1fd41faeda1562b99a56508" kindref="member">FloatVal::operator =</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>v)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>=<sp/>v.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="69" refid="classGecode_1_1FloatVal_1a75295fb557a8fdbcb2241c65dfc9e24b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a75295fb557a8fdbcb2241c65dfc9e24b" kindref="member">FloatVal::assign</ref>(<ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&l,<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>&u)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.assign(l,u);</highlight></codeline>
|
||
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref></highlight></codeline>
|
||
|
<codeline lineno="74" refid="classGecode_1_1FloatVal_1a4cbc414ccc0f5c7a1c17ccacdbbe2769" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4cbc414ccc0f5c7a1c17ccacdbbe2769" kindref="member">FloatVal::min</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower();</highlight></codeline>
|
||
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref></highlight></codeline>
|
||
|
<codeline lineno="78" refid="classGecode_1_1FloatVal_1aece4088e555f3cebd5602579a4a32ca0" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1aece4088e555f3cebd5602579a4a32ca0" kindref="member">FloatVal::max</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper();</highlight></codeline>
|
||
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref></highlight></codeline>
|
||
|
<codeline lineno="82" refid="classGecode_1_1FloatVal_1a0692c12e6facdff1a69aa922106bad2e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a0692c12e6facdff1a69aa922106bad2e" kindref="member">FloatVal::size</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>boost::numeric::width(<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref></highlight></codeline>
|
||
|
<codeline lineno="86" refid="classGecode_1_1FloatVal_1a80af58494a18161fb91a1e2a2cad4a9e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a80af58494a18161fb91a1e2a2cad4a9e" kindref="member">FloatVal::med</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>boost::numeric::median(<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="89"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="91" refid="classGecode_1_1FloatVal_1ac3b5f2385affc59be2a14dab861a1434" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1ac3b5f2385affc59be2a14dab861a1434" kindref="member">FloatVal::tight</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(boost::numeric::singleton(<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>)<sp/>||<sp/></highlight></codeline>
|
||
|
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(nextafter(<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower(),<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper())<sp/>==<sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper()));</highlight></codeline>
|
||
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="96" refid="classGecode_1_1FloatVal_1a2ff264ceb49188e3bb470ba0d5911709" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a2ff264ceb49188e3bb470ba0d5911709" kindref="member">FloatVal::singleton</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>boost::numeric::singleton(<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="100" refid="classGecode_1_1FloatVal_1ac9b4066d7b98767bf276b9768a225d0f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1ac9b4066d7b98767bf276b9768a225d0f" kindref="member">FloatVal::in</ref>(<ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>n)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>boost::numeric::in(n,<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="104" refid="classGecode_1_1FloatVal_1ad3010b56030cc489d9a758b891660e8e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1ad3010b56030cc489d9a758b891660e8e" kindref="member">FloatVal::zero_in</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)</highlight><highlight class="keyword"><sp/>const<sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>boost::numeric::zero_in(<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="109" refid="classGecode_1_1FloatVal_1a7bdd469d171f204081a75e575aa1b38d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a7bdd469d171f204081a75e575aa1b38d" kindref="member">FloatVal::hull</ref>(<ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>x,<sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/>h(<ref refid="classGecode_1_1FloatVal_1a7bdd469d171f204081a75e575aa1b38d" kindref="member">FloatVal::hull</ref>(x,y));<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>h;</highlight></codeline>
|
||
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="113" refid="classGecode_1_1FloatVal_1ae7d1792e70f7a9d98d5e9b9b62548ee3" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1ae7d1792e70f7a9d98d5e9b9b62548ee3" kindref="member">FloatVal::pi_half</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/>p(boost::numeric::interval_lib::pi_half<FloatValImpType>());</highlight></codeline>
|
||
|
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>p;</highlight></codeline>
|
||
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="118" refid="classGecode_1_1FloatVal_1a64b19653958d3dc1dec5a6ba8382a9c9" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a64b19653958d3dc1dec5a6ba8382a9c9" kindref="member">FloatVal::pi</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/>p(boost::numeric::interval_lib::pi<FloatValImpType>());</highlight></codeline>
|
||
|
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>p;</highlight></codeline>
|
||
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="123" refid="classGecode_1_1FloatVal_1a48afdec0b932f517dcb00c5b3707ce3e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a48afdec0b932f517dcb00c5b3707ce3e" kindref="member">FloatVal::pi_twice</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref><sp/>p(boost::numeric::interval_lib::pi_twice<FloatValImpType>());</highlight></codeline>
|
||
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>p;</highlight></codeline>
|
||
|
<codeline lineno="126"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="129" refid="classGecode_1_1FloatVal_1a85ccaaa6514685a43e970d01f7562016" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a85ccaaa6514685a43e970d01f7562016" kindref="member">FloatVal::operator +=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>+=<sp/>n;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="133" refid="classGecode_1_1FloatVal_1a723a9e41c091d5268fa1700ffbe819ed" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a723a9e41c091d5268fa1700ffbe819ed" kindref="member">FloatVal::operator -=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>-=<sp/>n;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="135"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="137" refid="classGecode_1_1FloatVal_1a7b047e94822e7fbadb0248bcb746ca96" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a7b047e94822e7fbadb0248bcb746ca96" kindref="member">FloatVal::operator *=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>*=<sp/>n;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="139"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="140"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="141" refid="classGecode_1_1FloatVal_1a8addc7ca9f4f75d731340c14fa63c043" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8addc7ca9f4f75d731340c14fa63c043" kindref="member">FloatVal::operator /=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>/=<sp/>n;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="143"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="144"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="145"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="146" refid="classGecode_1_1FloatVal_1aa122ce240c3b0434c8756a3e96d6fe80" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a85ccaaa6514685a43e970d01f7562016" kindref="member">FloatVal::operator +=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>v)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>+=<sp/>v.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="149"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="150" refid="classGecode_1_1FloatVal_1a2d28e2e903b7b4938bc0e4c605022e2a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a723a9e41c091d5268fa1700ffbe819ed" kindref="member">FloatVal::operator -=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>v)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>-=<sp/>v.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="152"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="154" refid="classGecode_1_1FloatVal_1aeca33a5b957c31292337defacb10ed92" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a7b047e94822e7fbadb0248bcb746ca96" kindref="member">FloatVal::operator *=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>v)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>*=<sp/>v.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="156"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&</highlight></codeline>
|
||
|
<codeline lineno="158" refid="classGecode_1_1FloatVal_1a57b70fc98aeee276d82503569145db59" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a8addc7ca9f4f75d731340c14fa63c043" kindref="member">FloatVal::operator /=</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>v)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>/=<sp/>v.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="160"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="161"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
||
|
<codeline lineno="163"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Operators<sp/>and<sp/>functions<sp/>on<sp/>float<sp/>values</highlight></codeline>
|
||
|
<codeline lineno="164"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="165"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="166"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="168" refid="classGecode_1_1FloatVal_1ada7487044541afa7b5e640379187803a" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>+(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(+x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="172" refid="classGecode_1_1FloatVal_1a36b3ceba1855f4c32fa2d2e8c47b0584" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>-(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>mmi<sp/>=<sp/>(x.min()<sp/>==<sp/>0.0)<sp/>?<sp/>0.0<sp/>:<sp/>-x.min();</highlight></codeline>
|
||
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>mma<sp/>=<sp/>(x.max()<sp/>==<sp/>0.0)<sp/>?<sp/>0.0<sp/>:-x.max();</highlight></codeline>
|
||
|
<codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(mma,mmi);</highlight></codeline>
|
||
|
<codeline lineno="176"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="178" refid="classGecode_1_1FloatVal_1ae1ec3066bc18538324ae8872805b9b6f" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>+(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>+y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="180"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="181"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="182" refid="classGecode_1_1FloatVal_1aa0522b989b143d174d65dd8ff6e228cf" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>+(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>+y);</highlight></codeline>
|
||
|
<codeline lineno="184"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="185"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="186" refid="classGecode_1_1FloatVal_1af946d16e3ea1110af417e591c999731f" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>+(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x+y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="188"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="189"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="190"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="191" refid="classGecode_1_1FloatVal_1abc5522e64b8aa96d1c35454c7be82457" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>-(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>-y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="193"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="194"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="195" refid="classGecode_1_1FloatVal_1aeb85a77febae259405755d186488a14d" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>-(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>-y);</highlight></codeline>
|
||
|
<codeline lineno="197"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="198"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="199" refid="classGecode_1_1FloatVal_1a7e0e093039386f84fb1f26232ddce20f" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>-(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x-y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="201"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="202"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="203"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="204" refid="classGecode_1_1FloatVal_1a468a5f73772d9742faa5027110e678f2" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>*(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>*y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="206"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="207"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="208" refid="classGecode_1_1FloatVal_1abcebf04586da174b535cbe618eade4af" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>*(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>*y);</highlight></codeline>
|
||
|
<codeline lineno="210"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="211"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="212" refid="classGecode_1_1FloatVal_1a61e83968107d1f012fec244735823a72" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>*(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x*y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="214"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="215"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="216"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="217" refid="classGecode_1_1FloatVal_1a6c9dd4e315f40b7d48e0a50521c503a0" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>/(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>/y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="219"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="220"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="221" refid="classGecode_1_1FloatVal_1acf527ebe56ecadb61506be00330a31b7" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>/(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>/y);</highlight></codeline>
|
||
|
<codeline lineno="223"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="224"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="225" refid="classGecode_1_1FloatVal_1af52eab828bfffc57717a7e1bc3920081" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>/(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x/y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="227"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="228"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="229"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="230" refid="classGecode_1_1FloatVal_1a2b9c7d723705ab1304ada91d8713f57b" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/><<sp/>y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="236"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="237"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="238" refid="classGecode_1_1FloatVal_1a96a1155549b33686d4fb79fbe7ee498f" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/><<sp/>y;</highlight></codeline>
|
||
|
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="244"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="245"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="246"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="247" refid="classGecode_1_1FloatVal_1a2cc360f0897079ea136afc95c1d6ca36" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/><=<sp/>y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="253"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="254"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="255" refid="classGecode_1_1FloatVal_1ae2abd8dee42f3daf615ab1c1835f203d" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/><=<sp/>y;</highlight></codeline>
|
||
|
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="261"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="262"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="263"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="264" refid="classGecode_1_1FloatVal_1aa05fcd669862116972c6c92f885c0a6e" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>><sp/>y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="270"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="271"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="272" refid="classGecode_1_1FloatVal_1aa8db89df70c826dadec6ce12aea44292" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>><sp/>y;</highlight></codeline>
|
||
|
<codeline lineno="275"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="278"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="279"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="280"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="281" refid="classGecode_1_1FloatVal_1a82c2a353119aee23edc19e30165cef5c" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>>=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>>=<sp/>y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="287"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="288"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="289" refid="classGecode_1_1FloatVal_1a1249c8a1fea55598d84a2d8949ddbf3c" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>>=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>>=<sp/>y;</highlight></codeline>
|
||
|
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="295"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="296"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="297"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="298" refid="classGecode_1_1FloatVal_1a1ad3eedc6c345b176ad782ba17b7713e" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>==(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="299"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>==<sp/>y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="301"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="304"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="305"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="306" refid="classGecode_1_1FloatVal_1a76ee5502be1d4d15159e4f9c124ce44a" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>==(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="structboost_1_1numeric_1_1interval__lib_1_1checking__strict" kindref="compound">boost::numeric::interval_lib::checking_strict<FloatNum></ref></highlight></codeline>
|
||
|
<codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>::is_empty(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower(),<sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper()))<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower()<sp/>==<sp/>y)<sp/>&&<sp/>(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper()<sp/>==<sp/>y))</highlight></codeline>
|
||
|
<codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(((x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower()<sp/>==<sp/>y)<sp/>&&<sp/></highlight></codeline>
|
||
|
<codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(nextafter(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower(),x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper())<sp/>==<sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper()))<sp/>||</highlight></codeline>
|
||
|
<codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>((x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper()<sp/>==<sp/>y)<sp/>&&<sp/></highlight></codeline>
|
||
|
<codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(nextafter(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.upper(),x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower())<sp/>==<sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>.lower())))</highlight></codeline>
|
||
|
<codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="318"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="319"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="320"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="321" refid="classGecode_1_1FloatVal_1a942c4dca3bf2617f7048fa90ed721c7e" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>!=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>!=<sp/>y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="327"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="328"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="329" refid="classGecode_1_1FloatVal_1a7a31b41cef2c2ed58131e3b98f74b672" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>!=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
||
|
<codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref><sp/>!=<sp/>y;</highlight></codeline>
|
||
|
<codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(<ref refid="classboost_1_1numeric_1_1interval__lib_1_1comparison__error" kindref="compound">boost::numeric::interval_lib::comparison_error</ref>&)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
<codeline lineno="335"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="336"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="337"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="338" refid="classGecode_1_1FloatVal_1a2328c4eeba614fddfa0f219be8d163b9" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>y<sp/>><sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="340"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="341"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="342" refid="classGecode_1_1FloatVal_1a8403de97f34d54e2b324e6875e9da42e" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="343"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>y<sp/>>=<sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="344"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="345"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="346" refid="classGecode_1_1FloatVal_1a7c1dcc5fbf8a1a67d47b7de01483bfc3" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="347"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>y<sp/><<sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="348"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="349"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="350" refid="classGecode_1_1FloatVal_1a34cd95b6904ff555c47e76260547b61c" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>>=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="351"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>y<sp/><=<sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="352"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="353"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="354" refid="classGecode_1_1FloatVal_1ae786111b2417e084c62433ab37ccf072" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>==(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="355"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>y<sp/>==<sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="356"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="357"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="358" refid="classGecode_1_1FloatVal_1a59a0105f553966cfbbc157b0af131b86" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/>!=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="359"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>y<sp/>!=<sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="360"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="361"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="362"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Char,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Traits></highlight></codeline>
|
||
|
<codeline lineno="363"><highlight class="normal"><sp/><sp/>std::basic_ostream<Char,Traits>&</highlight></codeline>
|
||
|
<codeline lineno="364" refid="classGecode_1_1FloatVal_1a0008f8794b62fd037a7f6e171d40e3cb" refkind="member"><highlight class="normal"><sp/><sp/>operator<sp/><<(std::basic_ostream<Char,Traits>&<sp/>os,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="365"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>os<sp/><<<sp/>x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>;</highlight></codeline>
|
||
|
<codeline lineno="366"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="367"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="368"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="369" refid="classGecode_1_1FloatVal_1a6181591191cfd5b96972457941834d41" refkind="member"><highlight class="normal"><sp/><sp/>abs(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="370"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(abs(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="371"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="372"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="373" refid="classGecode_1_1FloatVal_1a548ca9425bb139f91a00481593926960" refkind="member"><highlight class="normal"><sp/><sp/>sqrt(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="374"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(sqrt(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="375"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="376"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="377" refid="classGecode_1_1FloatVal_1a7d66d3d626a7def8e98832723ed08e07" refkind="member"><highlight class="normal"><sp/><sp/>sqr(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(square(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="379"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="380"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="381" refid="classGecode_1_1FloatVal_1a590be30f619ec6b05df87faa4a731ebf" refkind="member"><highlight class="normal"><sp/><sp/>pow(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="382"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(pow(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,n));</highlight></codeline>
|
||
|
<codeline lineno="383"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="384"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="385" refid="classGecode_1_1FloatVal_1ad19e1f2f65da7c07da1de04d7f187327" refkind="member"><highlight class="normal"><sp/><sp/>nroot(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="386"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(nth_root(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,n));</highlight></codeline>
|
||
|
<codeline lineno="387"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="388"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="389"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="390" refid="classGecode_1_1FloatVal_1aa969af8d5fbba4ac14e484a67cff5221" refkind="member"><highlight class="normal"><sp/><sp/>max(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="391"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(max(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="392"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="393"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="394" refid="classGecode_1_1FloatVal_1a6838190b2161e887d3a6cae552ee8241" refkind="member"><highlight class="normal"><sp/><sp/>max(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="395"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(max(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y));</highlight></codeline>
|
||
|
<codeline lineno="396"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="397"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="398" refid="classGecode_1_1FloatVal_1a3d56768fc5e3fb6285cfc875dd9fc92c" refkind="member"><highlight class="normal"><sp/><sp/>max(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="399"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(max(x,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="400"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="401"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="402" refid="classGecode_1_1FloatVal_1ab32dfb9f2826ae430e9147e0c79de226" refkind="member"><highlight class="normal"><sp/><sp/>min(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="403"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(min(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="404"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="405"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="406" refid="classGecode_1_1FloatVal_1abca794a357ae496c1b353aa6c8cabbef" refkind="member"><highlight class="normal"><sp/><sp/>min(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="407"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(min(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y));</highlight></codeline>
|
||
|
<codeline lineno="408"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="409"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="410" refid="classGecode_1_1FloatVal_1aef565b7a033832f08a7c406701f03cb3" refkind="member"><highlight class="normal"><sp/><sp/>min(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="411"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(min(x,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="412"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="413"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="414"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>GECODE_HAS_MPFR</highlight></codeline>
|
||
|
<codeline lineno="415"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="416"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="417"><highlight class="normal"><sp/><sp/>exp(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="418"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(exp(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="419"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="420"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="421"><highlight class="normal"><sp/><sp/>log(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(log(x.x));</highlight></codeline>
|
||
|
<codeline lineno="423"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="424"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="425"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="426"><highlight class="normal"><sp/><sp/>fmod(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="427"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(fmod(x.x,y.x));</highlight></codeline>
|
||
|
<codeline lineno="428"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="429"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="430"><highlight class="normal"><sp/><sp/>fmod(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="431"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(fmod(x.x,y));</highlight></codeline>
|
||
|
<codeline lineno="432"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="433"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="434"><highlight class="normal"><sp/><sp/>fmod(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="435"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(fmod(x,y.x));</highlight></codeline>
|
||
|
<codeline lineno="436"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="437"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="438"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="439"><highlight class="normal"><sp/><sp/>sin(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="440"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(sin(x.x));</highlight></codeline>
|
||
|
<codeline lineno="441"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="442"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="443"><highlight class="normal"><sp/><sp/>cos(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="444"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(cos(x.x));</highlight></codeline>
|
||
|
<codeline lineno="445"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="446"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="447"><highlight class="normal"><sp/><sp/>tan(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="448"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(tan(x.x));</highlight></codeline>
|
||
|
<codeline lineno="449"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="450"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="451"><highlight class="normal"><sp/><sp/>asin(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="452"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(asin(x.x));</highlight></codeline>
|
||
|
<codeline lineno="453"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="454"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="455"><highlight class="normal"><sp/><sp/>acos(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="456"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(acos(x.x));</highlight></codeline>
|
||
|
<codeline lineno="457"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="458"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="459"><highlight class="normal"><sp/><sp/>atan(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="460"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(atan(x.x));</highlight></codeline>
|
||
|
<codeline lineno="461"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="462"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="463"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="464"><highlight class="normal"><sp/><sp/>sinh(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="465"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(sinh(x.x));</highlight></codeline>
|
||
|
<codeline lineno="466"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="467"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="468"><highlight class="normal"><sp/><sp/>cosh(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="469"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(cosh(x.x));</highlight></codeline>
|
||
|
<codeline lineno="470"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="471"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="472"><highlight class="normal"><sp/><sp/>tanh(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="473"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(tanh(x.x));</highlight></codeline>
|
||
|
<codeline lineno="474"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="475"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="476"><highlight class="normal"><sp/><sp/>asinh(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="477"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(asinh(x.x));</highlight></codeline>
|
||
|
<codeline lineno="478"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="479"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="480"><highlight class="normal"><sp/><sp/>acosh(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="481"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(acosh(x.x));</highlight></codeline>
|
||
|
<codeline lineno="482"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="483"><highlight class="normal"><sp/><sp/>forceinline<sp/>FloatVal</highlight></codeline>
|
||
|
<codeline lineno="484"><highlight class="normal"><sp/><sp/>atanh(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>FloatVal&<sp/>x)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="485"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>FloatVal(atanh(x.x));</highlight></codeline>
|
||
|
<codeline lineno="486"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="487"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="488"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
|
||
|
<codeline lineno="489"><highlight class="preprocessor"></highlight><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="490"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="491"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Float<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="492"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="493"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="494" refid="classGecode_1_1FloatVal_1ab6213fb8e2d0a9249dc93b8700e7a57d" refkind="member"><highlight class="normal"><sp/><sp/>subset(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="495"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>subset(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="496"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="497"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="498" refid="classGecode_1_1FloatVal_1a50be3699e9b7d0e2b4a0ce117b314041" refkind="member"><highlight class="normal"><sp/><sp/>proper_subset(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="499"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>proper_subset(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="500"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="501"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="502" refid="classGecode_1_1FloatVal_1a030395eb8d468819aead2d4fd17a54d9" refkind="member"><highlight class="normal"><sp/><sp/>overlap(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="503"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>overlap(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>);</highlight></codeline>
|
||
|
<codeline lineno="504"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="505"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="506"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="507" refid="classGecode_1_1FloatVal_1aebe2178cd74665ee11c8048f42721e76" refkind="member"><highlight class="normal"><sp/><sp/>intersect(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="508"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(intersect(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="509"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="510"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="511" refid="classGecode_1_1FloatVal_1af6cdaa3fa4a585828bd0fa978f08ae0c" refkind="member"><highlight class="normal"><sp/><sp/>hull(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="512"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(hull(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="513"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="514"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="515" refid="classGecode_1_1FloatVal_1ab1df6016aa0d6284410832b71605d3bc" refkind="member"><highlight class="normal"><sp/><sp/>hull(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="516"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(hull(x.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>,y));</highlight></codeline>
|
||
|
<codeline lineno="517"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="518"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="519" refid="classGecode_1_1FloatVal_1ade5133e01e4a17243c22327c1dc389cc" refkind="member"><highlight class="normal"><sp/><sp/>hull(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="520"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(hull(x,y.<ref refid="classGecode_1_1FloatVal_1a4a099f13867f1d25e792dd90e4c6bcaa" kindref="member">x</ref>));</highlight></codeline>
|
||
|
<codeline lineno="521"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="522"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref></highlight></codeline>
|
||
|
<codeline lineno="523" refid="classGecode_1_1FloatVal_1a24924d0ce642bc4316e7e67538542704" refkind="member"><highlight class="normal"><sp/><sp/>hull(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref>&<sp/>y)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="524"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(hull(x,y));</highlight></codeline>
|
||
|
<codeline lineno="525"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="526"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="527"><highlight class="normal">}}</highlight></codeline>
|
||
|
<codeline lineno="528"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="529"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>float-var</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="530"><highlight class="normal"></highlight></codeline>
|
||
|
</programlisting>
|
||
|
<location file="/usr/include/gecode/float/val.hpp"/>
|
||
|
</compounddef>
|
||
|
</doxygen>
|