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="struct__test_8cpp" kind="file"> |
---|
4 | <compoundname>struct_test.cpp</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <incdepgraph> |
---|
7 | <node id="852"> |
---|
8 | <label>work/mixpp/tests/struct_test.cpp</label> |
---|
9 | <link refid="struct_test.cpp"/> |
---|
10 | <childnode refid="853" relation="include"> |
---|
11 | </childnode> |
---|
12 | </node> |
---|
13 | <node id="853"> |
---|
14 | <label>itpp/itbase.h</label> |
---|
15 | </node> |
---|
16 | </incdepgraph> |
---|
17 | <sectiondef kind="func"> |
---|
18 | <memberdef kind="function" id="struct__test_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
19 | <type>int</type> |
---|
20 | <definition>int main</definition> |
---|
21 | <argsstring>()</argsstring> |
---|
22 | <name>main</name> |
---|
23 | <briefdescription> |
---|
24 | </briefdescription> |
---|
25 | <detaileddescription> |
---|
26 | </detaileddescription> |
---|
27 | <inbodydescription> |
---|
28 | </inbodydescription> |
---|
29 | <location file="/home/smidl/work/mixpp/tests/struct_test.cpp" line="9" bodyfile="/home/smidl/work/mixpp/tests/struct_test.cpp" bodystart="9" bodyend="33"/> |
---|
30 | </memberdef> |
---|
31 | </sectiondef> |
---|
32 | <briefdescription> |
---|
33 | </briefdescription> |
---|
34 | <detaileddescription> |
---|
35 | </detaileddescription> |
---|
36 | <programlisting> |
---|
37 | <codeline lineno="1"><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
38 | <codeline lineno="2"><highlight class="normal"></highlight></codeline> |
---|
39 | <codeline lineno="3"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline> |
---|
40 | <codeline lineno="4"><highlight class="normal"></highlight></codeline> |
---|
41 | <codeline lineno="5"><highlight class="normal"></highlight><highlight class="comment">//These<sp/>lines<sp/>are<sp/>needed<sp/>for<sp/>use<sp/>of<sp/>cout<sp/>and<sp/>endl</highlight><highlight class="normal"></highlight></codeline> |
---|
42 | <codeline lineno="6"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::cout;</highlight></codeline> |
---|
43 | <codeline lineno="7"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::endl;</highlight></codeline> |
---|
44 | <codeline lineno="8"><highlight class="normal"></highlight></codeline> |
---|
45 | <codeline lineno="9"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="sim__var_8cpp_1e66f6b31b5ad750f1fe042a706a4e3d4" kindref="member" tooltip="Extended Kalman filter with unknown Q.">main</ref>()<sp/>{</highlight></codeline> |
---|
46 | <codeline lineno="10"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Real_Timer<sp/>tt;</highlight></codeline> |
---|
47 | <codeline lineno="11"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>exec_times<sp/>(<sp/>4<sp/>);</highlight></codeline> |
---|
48 | <codeline lineno="12"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>exec_times_f<sp/>(<sp/>4<sp/>);</highlight></codeline> |
---|
49 | <codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i,j;</highlight></codeline> |
---|
50 | <codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec<sp/>n<sp/>=<sp/></highlight><highlight class="stringliteral">"1000<sp/>10000<sp/>100000"</highlight><highlight class="normal">;</highlight></codeline> |
---|
51 | <codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<vec><sp/>S=</highlight><highlight class="stringliteral">"{[2<sp/>]<sp/>[3<sp/>]}<sp/>"</highlight><highlight class="normal">;</highlight></codeline> |
---|
52 | <codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
53 | <codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<sp/>i=0;i<n.length();i++<sp/>)<sp/>{</highlight></codeline> |
---|
54 | <codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tt.tic();</highlight></codeline> |
---|
55 | <codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>S(1)(1)=0;</highlight></codeline> |
---|
56 | <codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<sp/>j=0;j<n(i);j++<sp/>)<sp/>S(1)+=1;</highlight></codeline> |
---|
57 | <codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>exec_times<sp/>(<sp/>i<sp/>)<sp/>=tt.toc();</highlight></codeline> |
---|
58 | <codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
59 | <codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>exec_times_f<sp/>(<sp/>i<sp/>)<sp/>=tt.toc();</highlight></codeline> |
---|
60 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
61 | <codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/>exec_times<sp/><<endl;</highlight></codeline> |
---|
62 | <codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cout<sp/><<<sp/>exec_times_f<sp/><<endl;</highlight></codeline> |
---|
63 | <codeline lineno="27"><highlight class="normal"></highlight></codeline> |
---|
64 | <codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_file<sp/>itf<sp/>(<sp/></highlight><highlight class="stringliteral">"struct_test.it"</highlight><highlight class="normal"><sp/>);</highlight></codeline> |
---|
65 | <codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>itf<sp/><<<sp/>Name<sp/>(<sp/></highlight><highlight class="stringliteral">"exec_times"</highlight><highlight class="normal"><sp/>)<sp/><<exec_times;</highlight></codeline> |
---|
66 | <codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>itf<sp/><<<sp/>Name<sp/>(<sp/></highlight><highlight class="stringliteral">"exec_times_f"</highlight><highlight class="normal"><sp/>)<sp/><<exec_times;</highlight></codeline> |
---|
67 | <codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
68 | <codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline> |
---|
69 | <codeline lineno="33"><highlight class="normal">}</highlight></codeline> |
---|
70 | </programlisting> |
---|
71 | <location file="/home/smidl/work/mixpp/tests/struct_test.cpp"/> |
---|
72 | </compounddef> |
---|
73 | </doxygen> |
---|