1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="libFN_8cpp" kind="file"> |
---|
4 | <compoundname>libFN.cpp</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <includes refid="libFN_8h" local="yes">libFN.h</includes> |
---|
7 | <incdepgraph> |
---|
8 | <node id="410"> |
---|
9 | <label>libBM.h</label> |
---|
10 | <link refid="libBM_8h"/> |
---|
11 | <childnode refid="408" relation="include"> |
---|
12 | </childnode> |
---|
13 | </node> |
---|
14 | <node id="409"> |
---|
15 | <label>libFN.h</label> |
---|
16 | <link refid="libFN_8h-source"/> |
---|
17 | <childnode refid="408" relation="include"> |
---|
18 | </childnode> |
---|
19 | <childnode refid="410" relation="include"> |
---|
20 | </childnode> |
---|
21 | </node> |
---|
22 | <node id="408"> |
---|
23 | <label>itpp/itbase.h</label> |
---|
24 | </node> |
---|
25 | <node id="407"> |
---|
26 | <label>work/git/mixpp/bdm/stat/libFN.cpp</label> |
---|
27 | <link refid="libFN.cpp"/> |
---|
28 | <childnode refid="408" relation="include"> |
---|
29 | </childnode> |
---|
30 | <childnode refid="409" relation="include"> |
---|
31 | </childnode> |
---|
32 | </node> |
---|
33 | </incdepgraph> |
---|
34 | <briefdescription> |
---|
35 | </briefdescription> |
---|
36 | <detaileddescription> |
---|
37 | </detaileddescription> |
---|
38 | <programlisting> |
---|
39 | <codeline lineno="1"><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
40 | <codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"libFN.h"</highlight><highlight class="normal"></highlight></codeline> |
---|
41 | <codeline lineno="3"><highlight class="normal"></highlight></codeline> |
---|
42 | <codeline lineno="4"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline> |
---|
43 | <codeline lineno="5"><highlight class="normal"></highlight></codeline> |
---|
44 | <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/>&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/>&rvu0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>mat<sp/>&A0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>mat<sp/>&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> |
---|
45 | <codeline lineno="7"><highlight class="normal">{</highlight></codeline> |
---|
46 | <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> |
---|
47 | <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/>&<sp/>(<sp/>A0.rows()<sp/>==B0.rows()<sp/>),<sp/></highlight><highlight class="stringliteral">"linfn::<sp/>wrong<sp/>A"</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
48 | <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">"linfn::<sp/>wrong<sp/>B"</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
49 | <codeline lineno="11"><highlight class="normal"></highlight></codeline> |
---|
50 | <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> |
---|
51 | <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> |
---|
52 | <codeline lineno="14"><highlight class="normal"></highlight></codeline> |
---|
53 | <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> |
---|
54 | <codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>A<sp/>=<sp/>A0;</highlight></codeline> |
---|
55 | <codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>B<sp/>=<sp/>B0;</highlight></codeline> |
---|
56 | <codeline lineno="18"><highlight class="normal">};</highlight></codeline> |
---|
57 | <codeline lineno="19"><highlight class="normal"></highlight></codeline> |
---|
58 | <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/>&x0,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>vec<sp/>&u0<sp/>)</highlight></codeline> |
---|
59 | <codeline lineno="21"><highlight class="normal">{</highlight></codeline> |
---|
60 | <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">"linfn::eval<sp/>Wrong<sp/>xcond."</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
61 | <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">"linfn::eval<sp/>Wrong<sp/>ucond."</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
62 | <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> |
---|
63 | <codeline lineno="25"><highlight class="normal">};</highlight></codeline> |
---|
64 | </programlisting> |
---|
65 | <location file="/home/smidl/work/git/mixpp/bdm/stat/libFN.cpp"/> |
---|
66 | </compounddef> |
---|
67 | </doxygen> |
---|