<?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.5.6">
  <compounddef id="libFN_8cpp" kind="file">
    <compoundname>libFN.cpp</compoundname>
    <includes local="no">itpp/itbase.h</includes>
    <includes refid="libFN_8h" local="yes">libFN.h</includes>
    <incdepgraph>
      <node id="410">
        <label>libBM.h</label>
        <link refid="libBM_8h"/>
        <childnode refid="408" relation="include">
        </childnode>
      </node>
      <node id="409">
        <label>libFN.h</label>
        <link refid="libFN_8h-source"/>
        <childnode refid="408" relation="include">
        </childnode>
        <childnode refid="410" relation="include">
        </childnode>
      </node>
      <node id="408">
        <label>itpp/itbase.h</label>
      </node>
      <node id="407">
        <label>work/git/mixpp/bdm/stat/libFN.cpp</label>
        <link refid="libFN.cpp"/>
        <childnode refid="408" relation="include">
        </childnode>
        <childnode refid="409" relation="include">
        </childnode>
      </node>
    </incdepgraph>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&lt;itpp/itbase.h&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;libFN.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="3"><highlight class="normal"></highlight></codeline>
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight></codeline>
<codeline lineno="6" refid="classbilinfn_1c99f91d7752e131275b219df731868bd" refkind="member"><highlight class="normal"><ref refid="classbilinfn_1af9f36282730d910a41b95f4d1fb8221" kindref="member" tooltip="Default constructor.">bilinfn::bilinfn</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&amp;rvx0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&amp;rvu0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>mat<sp/>&amp;A0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>mat<sp/>&amp;B0<sp/>)<sp/>:<sp/><ref refid="classdiffbifn" kindref="compound" tooltip="Class representing a differentiable function of two variables .">diffbifn</ref><sp/>(A0.rows(),<sp/>rvx0,rvu0<sp/>)</highlight></codeline>
<codeline lineno="7"><highlight class="normal">{</highlight></codeline>
<codeline lineno="8"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//check<sp/>input</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="9"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_assert_debug<sp/>(<sp/>(<sp/>A0.cols()<sp/>==<ref refid="classdiffbifn_1f6918bc0a9dad656b4cddc028137eb78" kindref="member" tooltip="cache for rvx.count()">dimx</ref><sp/>)<sp/>&amp;<sp/>(<sp/>A0.rows()<sp/>==B0.rows()<sp/>),<sp/></highlight><highlight class="stringliteral">&quot;linfn::<sp/>wrong<sp/>A&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="10"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_assert_debug<sp/>(<sp/>(<sp/>B0.cols()<sp/>==<ref refid="classdiffbifn_12e07ce491e973f03d763e37624d0fe79" kindref="member" tooltip="cache for rvu.count()">dimu</ref><sp/>),<sp/></highlight><highlight class="stringliteral">&quot;linfn::<sp/>wrong<sp/>B&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="11"><highlight class="normal"></highlight></codeline>
<codeline lineno="12"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>set<sp/>dimensions</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classfnc_122d51d10a7901331167f64f80d1af8e9" kindref="member" tooltip="Length of the output vector.">dimy</ref><sp/>=<sp/>A0.rows();</highlight></codeline>
<codeline lineno="14"><highlight class="normal"></highlight></codeline>
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//set<sp/>internals</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>A<sp/>=<sp/>A0;</highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>B<sp/>=<sp/>B0;</highlight></codeline>
<codeline lineno="18"><highlight class="normal">};</highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight></codeline>
<codeline lineno="20" refid="classbilinfn_1e36a16e72e7f9fedf3cb18d2d5505a24" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/>vec<sp/><ref refid="classbilinfn_1e36a16e72e7f9fedf3cb18d2d5505a24" kindref="member" tooltip="Evaluates .">bilinfn::eval</ref><sp/>(<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><sp/>vec<sp/>&amp;x0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&amp;u0<sp/>)</highlight></codeline>
<codeline lineno="21"><highlight class="normal">{</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_assert_debug<sp/>(<sp/>x0.length()<sp/>==<ref refid="classdiffbifn_1f6918bc0a9dad656b4cddc028137eb78" kindref="member" tooltip="cache for rvx.count()">dimx</ref>,<sp/></highlight><highlight class="stringliteral">&quot;linfn::eval<sp/>Wrong<sp/>xcond.&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_assert_debug<sp/>(<sp/>u0.length()<sp/>==<ref refid="classdiffbifn_12e07ce491e973f03d763e37624d0fe79" kindref="member" tooltip="cache for rvu.count()">dimu</ref>,<sp/></highlight><highlight class="stringliteral">&quot;linfn::eval<sp/>Wrong<sp/>ucond.&quot;</highlight><highlight class="normal"><sp/>);</highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>A*x0+B*u0;</highlight></codeline>
<codeline lineno="25"><highlight class="normal">};</highlight></codeline>
    </programlisting>
    <location file="/home/smidl/work/git/mixpp/bdm/stat/libFN.cpp"/>
  </compounddef>
</doxygen>
