1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: itpp::Fix Class Reference</title> |
---|
4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
8 | <script type="text/javascript"> |
---|
9 | <!-- |
---|
10 | function changeDisplayState (e){ |
---|
11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
12 | var button=this.firstChild; |
---|
13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
15 | sectionDiv.style.display='block'; |
---|
16 | button.src='open.gif'; |
---|
17 | }else{ |
---|
18 | sectionDiv.style.display='none'; |
---|
19 | button.src='closed.gif'; |
---|
20 | } |
---|
21 | } |
---|
22 | function initDynSections(){ |
---|
23 | var divs=document.getElementsByTagName('div'); |
---|
24 | var sectionCounter=1; |
---|
25 | for(var i=0;i<divs.length-1;i++){ |
---|
26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
27 | var header=divs[i]; |
---|
28 | var section=divs[i+1]; |
---|
29 | var button=header.firstChild; |
---|
30 | if (button!='IMG'){ |
---|
31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
32 | button=document.createElement('img'); |
---|
33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
34 | } |
---|
35 | header.style.cursor='pointer'; |
---|
36 | header.onclick=changeDisplayState; |
---|
37 | header.id='dynheader'+sectionCounter; |
---|
38 | button.src='closed.gif'; |
---|
39 | section.id='dynsection'+sectionCounter; |
---|
40 | section.style.display='none'; |
---|
41 | section.style.marginLeft='14px'; |
---|
42 | sectionCounter++; |
---|
43 | } |
---|
44 | } |
---|
45 | } |
---|
46 | window.onload = initDynSections; |
---|
47 | --> |
---|
48 | </script> |
---|
49 | <div class="navigation" id="top"> |
---|
50 | <div class="tabs"> |
---|
51 | <ul> |
---|
52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
57 | </ul> |
---|
58 | </div> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
65 | </ul> |
---|
66 | </div> |
---|
67 | <div class="navpath"><b>itpp</b>::<a class="el" href="classitpp_1_1Fix.html">Fix</a> |
---|
68 | </div> |
---|
69 | </div> |
---|
70 | <div class="contents"> |
---|
71 | <h1>itpp::Fix Class Reference<br> |
---|
72 | <small> |
---|
73 | [<a class="el" href="group__fixed.html">Fixed-point Module</a>]</small> |
---|
74 | </h1><!-- doxytag: class="itpp::Fix" --><!-- doxytag: inherits="itpp::Fix_Base" -->Fixed-point data type. |
---|
75 | <a href="#_details">More...</a> |
---|
76 | <p> |
---|
77 | <code>#include <<a class="el" href="fix_8h-source.html">fix.h</a>></code> |
---|
78 | <p> |
---|
79 | |
---|
80 | <p> |
---|
81 | <a href="classitpp_1_1Fix-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
82 | <tr><td></td></tr> |
---|
83 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="00a0be921612389d8b18e9425af553d6"></a><!-- doxytag: member="itpp::Fix::Fix" ref="00a0be921612389d8b18e9425af553d6" args="(double x=0.0, int s=0, int w=MAX_WORDLEN, e_mode e=TC, o_mode o=WRAP, q_mode q=TRN, Stat *ptr=0)" --> |
---|
85 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#00a0be921612389d8b18e9425af553d6">Fix</a> (double x=0.0, int s=0, int w=MAX_WORDLEN, <a class="el" href="group__fixed.html#g3a204def662e60bf9bb54d27db09450d">e_mode</a> e=TC, <a class="el" href="group__fixed.html#g18d0ad4d7280177b761737a7b8b5c45d">o_mode</a> o=WRAP, <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> q=TRN, <a class="el" href="classitpp_1_1Stat.html">Stat</a> *ptr=0)</td></tr> |
---|
86 | |
---|
87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2993935204b5c93c842b1f240a4a327e"></a><!-- doxytag: member="itpp::Fix::Fix" ref="2993935204b5c93c842b1f240a4a327e" args="(const Fix_Factory &f)" --> |
---|
89 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#2993935204b5c93c842b1f240a4a327e">Fix</a> (const <a class="el" href="classitpp_1_1Fix__Factory.html">Fix_Factory</a> &f)</td></tr> |
---|
90 | |
---|
91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad36b077c94df04bb22d97d58e83dcbe"></a><!-- doxytag: member="itpp::Fix::Fix" ref="ad36b077c94df04bb22d97d58e83dcbe" args="(fixrep r, int s, int, int)" --> |
---|
93 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#ad36b077c94df04bb22d97d58e83dcbe">Fix</a> (fixrep r, int s, int, int)</td></tr> |
---|
94 | |
---|
95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor for internal use. No restrictions are applied. The dummies help to avoid ambiguities. <br></td></tr> |
---|
96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0df67153d49a39bd6c587479d17b4a5"></a><!-- doxytag: member="itpp::Fix::Fix" ref="b0df67153d49a39bd6c587479d17b4a5" args="(const Fix &x, int w=MAX_WORDLEN, e_mode e=TC, o_mode o=WRAP, q_mode q=TRN, Stat *ptr=0)" --> |
---|
97 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#b0df67153d49a39bd6c587479d17b4a5">Fix</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x, int w=MAX_WORDLEN, <a class="el" href="group__fixed.html#g3a204def662e60bf9bb54d27db09450d">e_mode</a> e=TC, <a class="el" href="group__fixed.html#g18d0ad4d7280177b761737a7b8b5c45d">o_mode</a> o=WRAP, <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> q=TRN, <a class="el" href="classitpp_1_1Stat.html">Stat</a> *ptr=0)</td></tr> |
---|
98 | |
---|
99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr> |
---|
100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc96406190a47bab2a3a594457b688cf"></a><!-- doxytag: member="itpp::Fix::~Fix" ref="bc96406190a47bab2a3a594457b688cf" args="()" --> |
---|
101 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#bc96406190a47bab2a3a594457b688cf">~Fix</a> ()</td></tr> |
---|
102 | |
---|
103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr> |
---|
104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b60294dd6f918b8ee60d25ed4fd822a"></a><!-- doxytag: member="itpp::Fix::operator=" ref="4b60294dd6f918b8ee60d25ed4fd822a" args="(const Fix &x)" --> |
---|
105 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#4b60294dd6f918b8ee60d25ed4fd822a">operator=</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x)</td></tr> |
---|
106 | |
---|
107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment from <a class="el" href="classitpp_1_1Fix.html" title="Fixed-point data type.">Fix</a>. <br></td></tr> |
---|
108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="52f231f06ca4ff9ff38781e56b2ac95e"></a><!-- doxytag: member="itpp::Fix::operator=" ref="52f231f06ca4ff9ff38781e56b2ac95e" args="(const int x)" --> |
---|
109 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#52f231f06ca4ff9ff38781e56b2ac95e">operator=</a> (const int x)</td></tr> |
---|
110 | |
---|
111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment from int. <br></td></tr> |
---|
112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="57625b9d164f4713d57df3162b9ccb42"></a><!-- doxytag: member="itpp::Fix::operator+=" ref="57625b9d164f4713d57df3162b9ccb42" args="(const Fix &x)" --> |
---|
113 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#57625b9d164f4713d57df3162b9ccb42">operator+=</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x)</td></tr> |
---|
114 | |
---|
115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Addition of <a class="el" href="classitpp_1_1Fix.html" title="Fixed-point data type.">Fix</a>. <br></td></tr> |
---|
116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87faf1250851d709679a870101ab5de5"></a><!-- doxytag: member="itpp::Fix::operator+=" ref="87faf1250851d709679a870101ab5de5" args="(const int x)" --> |
---|
117 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#87faf1250851d709679a870101ab5de5">operator+=</a> (const int x)</td></tr> |
---|
118 | |
---|
119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Addition of int. <br></td></tr> |
---|
120 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="841540c712fd49eecbad0bdf1a861859"></a><!-- doxytag: member="itpp::Fix::operator-=" ref="841540c712fd49eecbad0bdf1a861859" args="(const Fix &x)" --> |
---|
121 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#841540c712fd49eecbad0bdf1a861859">operator-=</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x)</td></tr> |
---|
122 | |
---|
123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtraction of <a class="el" href="classitpp_1_1Fix.html" title="Fixed-point data type.">Fix</a>. <br></td></tr> |
---|
124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="84f1c86cc0290e29d38cee74bcffa805"></a><!-- doxytag: member="itpp::Fix::operator-=" ref="84f1c86cc0290e29d38cee74bcffa805" args="(const int x)" --> |
---|
125 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#84f1c86cc0290e29d38cee74bcffa805">operator-=</a> (const int x)</td></tr> |
---|
126 | |
---|
127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtraction of int. <br></td></tr> |
---|
128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3415ad75144cbbb5c9d05a00238b85d"></a><!-- doxytag: member="itpp::Fix::operator*=" ref="b3415ad75144cbbb5c9d05a00238b85d" args="(const Fix &x)" --> |
---|
129 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#b3415ad75144cbbb5c9d05a00238b85d">operator*=</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x)</td></tr> |
---|
130 | |
---|
131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplication with <a class="el" href="classitpp_1_1Fix.html" title="Fixed-point data type.">Fix</a>. <br></td></tr> |
---|
132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13a6655cf3ed7a3165e1926aba96e04c"></a><!-- doxytag: member="itpp::Fix::operator*=" ref="13a6655cf3ed7a3165e1926aba96e04c" args="(const int x)" --> |
---|
133 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#13a6655cf3ed7a3165e1926aba96e04c">operator*=</a> (const int x)</td></tr> |
---|
134 | |
---|
135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Multiplication with int. <br></td></tr> |
---|
136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1388c88c523e251db89286f1319b7829"></a><!-- doxytag: member="itpp::Fix::operator/=" ref="1388c88c523e251db89286f1319b7829" args="(const Fix &x)" --> |
---|
137 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#1388c88c523e251db89286f1319b7829">operator/=</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x)</td></tr> |
---|
138 | |
---|
139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Division with <a class="el" href="classitpp_1_1Fix.html" title="Fixed-point data type.">Fix</a> using quantization mode <code>TRN</code>. <br></td></tr> |
---|
140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d53989dc3256ca4e8375de3199fca569"></a><!-- doxytag: member="itpp::Fix::operator/=" ref="d53989dc3256ca4e8375de3199fca569" args="(const int x)" --> |
---|
141 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#d53989dc3256ca4e8375de3199fca569">operator/=</a> (const int x)</td></tr> |
---|
142 | |
---|
143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Division with int using quantization mode <code>TRN</code>. <br></td></tr> |
---|
144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fa900b3c25368ca4d23c74937ba3c953"></a><!-- doxytag: member="itpp::Fix::operator-" ref="fa900b3c25368ca4d23c74937ba3c953" args="() const " --> |
---|
145 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#fa900b3c25368ca4d23c74937ba3c953">operator-</a> () const </td></tr> |
---|
146 | |
---|
147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Unary negative of <a class="el" href="classitpp_1_1Fix.html" title="Fixed-point data type.">Fix</a>. <br></td></tr> |
---|
148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="86271fa2c027aa8a3e3eb2bd87100664"></a><!-- doxytag: member="itpp::Fix::operator<<=" ref="86271fa2c027aa8a3e3eb2bd87100664" args="(const int n)" --> |
---|
149 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#86271fa2c027aa8a3e3eb2bd87100664">operator<<=</a> (const int n)</td></tr> |
---|
150 | |
---|
151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Left shift <code>n</code> bits. <br></td></tr> |
---|
152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5e4a9d76367f420074ea06ec6d9ce5ba"></a><!-- doxytag: member="itpp::Fix::operator>>=" ref="5e4a9d76367f420074ea06ec6d9ce5ba" args="(const int n)" --> |
---|
153 | <a class="el" href="classitpp_1_1Fix.html">Fix</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#5e4a9d76367f420074ea06ec6d9ce5ba">operator>>=</a> (const int n)</td></tr> |
---|
154 | |
---|
155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Right shift <code>n</code> bits using quantization mode <code>qmode</code> (constructor argument). <br></td></tr> |
---|
156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="333fe1f805ebff7c4944429db9af792b"></a><!-- doxytag: member="itpp::Fix::set" ref="333fe1f805ebff7c4944429db9af792b" args="(double x, int n)" --> |
---|
157 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#333fe1f805ebff7c4944429db9af792b">set</a> (double x, int n)</td></tr> |
---|
158 | |
---|
159 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set to <code>x * pow2(n)</code> using quantization mode <code>qmode</code> (constructor argument). <br></td></tr> |
---|
160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1cfe865f01c4945603dbe6225fea25e7"></a><!-- doxytag: member="itpp::Fix::set" ref="1cfe865f01c4945603dbe6225fea25e7" args="(double x, int n, q_mode q)" --> |
---|
161 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#1cfe865f01c4945603dbe6225fea25e7">set</a> (double x, int n, <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> q)</td></tr> |
---|
162 | |
---|
163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set to <code>x * pow2(n)</code> using quantization mode <code>q</code> (function argument). <br></td></tr> |
---|
164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b6725f0518898f113d15e722de680a35"></a><!-- doxytag: member="itpp::Fix::set_re" ref="b6725f0518898f113d15e722de680a35" args="(fixrep x)" --> |
---|
165 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#b6725f0518898f113d15e722de680a35">set_re</a> (fixrep x)</td></tr> |
---|
166 | |
---|
167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set data representation (mainly for internal use since it reveals the representation type). <br></td></tr> |
---|
168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="10b44520817964b76b3418e2dd407b5e"></a><!-- doxytag: member="itpp::Fix::lshift" ref="10b44520817964b76b3418e2dd407b5e" args="(int n)" --> |
---|
169 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#10b44520817964b76b3418e2dd407b5e">lshift</a> (int n)</td></tr> |
---|
170 | |
---|
171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Left shift <code>n</code> bits. <br></td></tr> |
---|
172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c31697dd668cf8063b4a65b00fe2593"></a><!-- doxytag: member="itpp::Fix::rshift" ref="2c31697dd668cf8063b4a65b00fe2593" args="(int n)" --> |
---|
173 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#2c31697dd668cf8063b4a65b00fe2593">rshift</a> (int n)</td></tr> |
---|
174 | |
---|
175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Right shift <code>n</code> bits using quantization mode <code>qmode</code> (constructor argument). <br></td></tr> |
---|
176 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9322d5b28c5a9214c1f5905ae21ce644"></a><!-- doxytag: member="itpp::Fix::rshift" ref="9322d5b28c5a9214c1f5905ae21ce644" args="(int n, q_mode q)" --> |
---|
177 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#9322d5b28c5a9214c1f5905ae21ce644">rshift</a> (int n, <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> q)</td></tr> |
---|
178 | |
---|
179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Right shift <code>n</code> bits using quantization mode <code>q</code> (function argument). <br></td></tr> |
---|
180 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0612461dc5e545325d3f94ebaeb91f1e"></a><!-- doxytag: member="itpp::Fix::print" ref="0612461dc5e545325d3f94ebaeb91f1e" args="() const " --> |
---|
181 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#0612461dc5e545325d3f94ebaeb91f1e">print</a> () const </td></tr> |
---|
182 | |
---|
183 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Print restrictions. <br></td></tr> |
---|
184 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e31446fac0f9777d0654f66d14923d05"></a><!-- doxytag: member="itpp::Fix::get_re" ref="e31446fac0f9777d0654f66d14923d05" args="() const " --> |
---|
185 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#e31446fac0f9777d0654f66d14923d05">get_re</a> () const </td></tr> |
---|
186 | |
---|
187 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get data representation (mainly for internal use since it reveals the representation type). <br></td></tr> |
---|
188 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c70b5aad748a582e1ffef293d82e1b58"></a><!-- doxytag: member="itpp::Fix::unfix" ref="c70b5aad748a582e1ffef293d82e1b58" args="() const " --> |
---|
189 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#c70b5aad748a582e1ffef293d82e1b58">unfix</a> () const </td></tr> |
---|
190 | |
---|
191 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to double. <br></td></tr> |
---|
192 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc4f76eab97dda71e9a8a538c8803284"></a><!-- doxytag: member="itpp::Fix::operator double" ref="cc4f76eab97dda71e9a8a538c8803284" args="() const " --> |
---|
193 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#cc4f76eab97dda71e9a8a538c8803284">operator double</a> () const </td></tr> |
---|
194 | |
---|
195 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to double. <br></td></tr> |
---|
196 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7a05413f5e542cdd1b735df84a49a9d7"></a><!-- doxytag: member="itpp::Fix::set_shift" ref="7a05413f5e542cdd1b735df84a49a9d7" args="(int s)" --> |
---|
197 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#7a05413f5e542cdd1b735df84a49a9d7">set_shift</a> (int s)</td></tr> |
---|
198 | |
---|
199 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set shift (without shifting). <br></td></tr> |
---|
200 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e1224ef62f15c1dcfddc2248697f554a"></a><!-- doxytag: member="itpp::Fix::get_shift" ref="e1224ef62f15c1dcfddc2248697f554a" args="() const " --> |
---|
201 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#e1224ef62f15c1dcfddc2248697f554a">get_shift</a> () const </td></tr> |
---|
202 | |
---|
203 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get shift. <br></td></tr> |
---|
204 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b74c044914a82a3ebe62d22b63a17443"></a><!-- doxytag: member="itpp::Fix::get_wordlen" ref="b74c044914a82a3ebe62d22b63a17443" args="() const " --> |
---|
205 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#b74c044914a82a3ebe62d22b63a17443">get_wordlen</a> () const </td></tr> |
---|
206 | |
---|
207 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get word length. <br></td></tr> |
---|
208 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8386a40c4e89c5e168f842ed0110d350"></a><!-- doxytag: member="itpp::Fix::get_e_mode" ref="8386a40c4e89c5e168f842ed0110d350" args="() const " --> |
---|
209 | <a class="el" href="group__fixed.html#g3a204def662e60bf9bb54d27db09450d">e_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#8386a40c4e89c5e168f842ed0110d350">get_e_mode</a> () const </td></tr> |
---|
210 | |
---|
211 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get sign encoding mode. <br></td></tr> |
---|
212 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="09c41cd48dcebfa5f81ad6c25f598efc"></a><!-- doxytag: member="itpp::Fix::get_o_mode" ref="09c41cd48dcebfa5f81ad6c25f598efc" args="() const " --> |
---|
213 | <a class="el" href="group__fixed.html#g18d0ad4d7280177b761737a7b8b5c45d">o_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#09c41cd48dcebfa5f81ad6c25f598efc">get_o_mode</a> () const </td></tr> |
---|
214 | |
---|
215 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get overflow mode. <br></td></tr> |
---|
216 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3002313e41418c3bbe811eada7c2e130"></a><!-- doxytag: member="itpp::Fix::get_q_mode" ref="3002313e41418c3bbe811eada7c2e130" args="() const " --> |
---|
217 | <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#3002313e41418c3bbe811eada7c2e130">get_q_mode</a> () const </td></tr> |
---|
218 | |
---|
219 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get quantization mode. <br></td></tr> |
---|
220 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2da77fa593c07c810502e1934c44f73"></a><!-- doxytag: member="itpp::Fix::get_output_mode" ref="a2da77fa593c07c810502e1934c44f73" args="() const " --> |
---|
221 | <a class="el" href="group__fixed.html#gb8f9923897b39fd81e902f3874d8cfa6">output_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#a2da77fa593c07c810502e1934c44f73">get_output_mode</a> () const </td></tr> |
---|
222 | |
---|
223 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get output mode. <br></td></tr> |
---|
224 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e5d07261c4ebc2dcbedb939c2330bb6e"></a><!-- doxytag: member="itpp::Fix::get_max" ref="e5d07261c4ebc2dcbedb939c2330bb6e" args="() const " --> |
---|
225 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#e5d07261c4ebc2dcbedb939c2330bb6e">get_max</a> () const </td></tr> |
---|
226 | |
---|
227 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get maximum value of data representation. <br></td></tr> |
---|
228 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d5081fe8e1b1efc5ac63fe28bf021429"></a><!-- doxytag: member="itpp::Fix::get_min" ref="d5081fe8e1b1efc5ac63fe28bf021429" args="() const " --> |
---|
229 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#d5081fe8e1b1efc5ac63fe28bf021429">get_min</a> () const </td></tr> |
---|
230 | |
---|
231 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get minimum value of data representation. <br></td></tr> |
---|
232 | <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
---|
233 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b6e783a90a7d248be0fa88f0a811846"></a><!-- doxytag: member="itpp::Fix::set_output_mode" ref="1b6e783a90a7d248be0fa88f0a811846" args="(output_mode o)" --> |
---|
234 | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#1b6e783a90a7d248be0fa88f0a811846">set_output_mode</a> (<a class="el" href="group__fixed.html#gb8f9923897b39fd81e902f3874d8cfa6">output_mode</a> o)</td></tr> |
---|
235 | |
---|
236 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set output mode to OUTPUT_FIX, OUTPUT_FIX_SHIFT, OUTPUT_FLOAT or OUTPUT_FLOAT_SHIFT. Static member function. <br></td></tr> |
---|
237 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840d8ead0a9822ba09948d63d8372204"></a><!-- doxytag: member="itpp::Fix::set_output_mode" ref="840d8ead0a9822ba09948d63d8372204" args="(std::string o)" --> |
---|
238 | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#840d8ead0a9822ba09948d63d8372204">set_output_mode</a> (std::string o)</td></tr> |
---|
239 | |
---|
240 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set output mode to "OUTPUT_FIX", "OUTPUT_FIX_SHIFT", "OUTPUT_FLOAT" or "OUTPUT_FLOAT_SHIFT". Static member function. <br></td></tr> |
---|
241 | <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> |
---|
242 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8eddb36f30ace96ad69835eb4f821deb"></a><!-- doxytag: member="itpp::Fix::init" ref="8eddb36f30ace96ad69835eb4f821deb" args="()" --> |
---|
243 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#8eddb36f30ace96ad69835eb4f821deb">init</a> ()</td></tr> |
---|
244 | |
---|
245 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate help variables min, max and n_unused_bits. <br></td></tr> |
---|
246 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d5793faefe33b344b0d74a21ceca81a4"></a><!-- doxytag: member="itpp::Fix::apply_o_mode" ref="d5793faefe33b344b0d74a21ceca81a4" args="(fixrep x) const " --> |
---|
247 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#d5793faefe33b344b0d74a21ceca81a4">apply_o_mode</a> (fixrep x) const </td></tr> |
---|
248 | |
---|
249 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Handle overflows using overflow mode <code>omode</code> and make call to statistics object (if any). <br></td></tr> |
---|
250 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a881bc83f4be90b9f7fb7f87b0953f25"></a><!-- doxytag: member="itpp::Fix::scale_and_apply_modes" ref="a881bc83f4be90b9f7fb7f87b0953f25" args="(double x) const " --> |
---|
251 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#a881bc83f4be90b9f7fb7f87b0953f25">scale_and_apply_modes</a> (double x) const </td></tr> |
---|
252 | |
---|
253 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert from <code>double</code> to <code>fixrep</code> using <code>shift</code> and quantization mode <code>qmode</code>, then call <code>limit()</code>. <br></td></tr> |
---|
254 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="257c29b48b839d5b003d23e23c6eaa51"></a><!-- doxytag: member="itpp::Fix::scale_and_apply_modes" ref="257c29b48b839d5b003d23e23c6eaa51" args="(double x, q_mode q) const " --> |
---|
255 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#257c29b48b839d5b003d23e23c6eaa51">scale_and_apply_modes</a> (double x, <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> q) const </td></tr> |
---|
256 | |
---|
257 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert from <code>double</code> to <code>fixrep</code> using <code>shift</code> and quantization mode <code>q</code>, then call <code>limit()</code>. <br></td></tr> |
---|
258 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef3711deb8dbca9ebc800f09bb20e52b"></a><!-- doxytag: member="itpp::Fix::rshift_and_apply_q_mode" ref="ef3711deb8dbca9ebc800f09bb20e52b" args="(fixrep x, int n) const " --> |
---|
259 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#ef3711deb8dbca9ebc800f09bb20e52b">rshift_and_apply_q_mode</a> (fixrep x, int n) const </td></tr> |
---|
260 | |
---|
261 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Right shift <code>n</code> bits using quantization mode <code>qmode</code> and make call to statistics object (if any). <br></td></tr> |
---|
262 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d67d2d40e98278be8b0f9addcbb7e71"></a><!-- doxytag: member="itpp::Fix::rshift_and_apply_q_mode" ref="2d67d2d40e98278be8b0f9addcbb7e71" args="(fixrep x, int n, q_mode q) const " --> |
---|
263 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#2d67d2d40e98278be8b0f9addcbb7e71">rshift_and_apply_q_mode</a> (fixrep x, int n, <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> q) const </td></tr> |
---|
264 | |
---|
265 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Right shift <code>n</code> bits using quantization mode <code>q</code> and make call to statistics object (if any). <br></td></tr> |
---|
266 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
267 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2658e2053a4f62250f4d36c08deb959e"></a><!-- doxytag: member="itpp::Fix::re" ref="2658e2053a4f62250f4d36c08deb959e" args="" --> |
---|
268 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#2658e2053a4f62250f4d36c08deb959e">re</a></td></tr> |
---|
269 | |
---|
270 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Data representation. <br></td></tr> |
---|
271 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c42e876a20028d8c7538d6f1d4754d6a"></a><!-- doxytag: member="itpp::Fix::shift" ref="c42e876a20028d8c7538d6f1d4754d6a" args="" --> |
---|
272 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#c42e876a20028d8c7538d6f1d4754d6a">shift</a></td></tr> |
---|
273 | |
---|
274 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accumulated bitshift (positive means left-shifted, negative means right-shifted). <br></td></tr> |
---|
275 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4872b2d730a546e017a75006a99580a6"></a><!-- doxytag: member="itpp::Fix::wordlen" ref="4872b2d730a546e017a75006a99580a6" args="" --> |
---|
276 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#4872b2d730a546e017a75006a99580a6">wordlen</a></td></tr> |
---|
277 | |
---|
278 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Word length. <br></td></tr> |
---|
279 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ee6bb0d7811e0ec284c19d6497b0b83"></a><!-- doxytag: member="itpp::Fix::emode" ref="9ee6bb0d7811e0ec284c19d6497b0b83" args="" --> |
---|
280 | <a class="el" href="group__fixed.html#g3a204def662e60bf9bb54d27db09450d">e_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#9ee6bb0d7811e0ec284c19d6497b0b83">emode</a></td></tr> |
---|
281 | |
---|
282 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sign encoding mode. <br></td></tr> |
---|
283 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d1b464ea0c3db8fa8c70d9740147ca6c"></a><!-- doxytag: member="itpp::Fix::omode" ref="d1b464ea0c3db8fa8c70d9740147ca6c" args="" --> |
---|
284 | <a class="el" href="group__fixed.html#g18d0ad4d7280177b761737a7b8b5c45d">o_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#d1b464ea0c3db8fa8c70d9740147ca6c">omode</a></td></tr> |
---|
285 | |
---|
286 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Overflow mode. <br></td></tr> |
---|
287 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cd49b5854e52ef93458f4776e1007b1a"></a><!-- doxytag: member="itpp::Fix::qmode" ref="cd49b5854e52ef93458f4776e1007b1a" args="" --> |
---|
288 | <a class="el" href="group__fixed.html#ga644362f0b3d795ce8521326e20fed11">q_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#cd49b5854e52ef93458f4776e1007b1a">qmode</a></td></tr> |
---|
289 | |
---|
290 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Quantization mode. <br></td></tr> |
---|
291 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a23b1ecd00cd0f0c8fa9b3b5c669a93d"></a><!-- doxytag: member="itpp::Fix::stat_ptr" ref="a23b1ecd00cd0f0c8fa9b3b5c669a93d" args="" --> |
---|
292 | <a class="el" href="classitpp_1_1Stat.html">Stat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#a23b1ecd00cd0f0c8fa9b3b5c669a93d">stat_ptr</a></td></tr> |
---|
293 | |
---|
294 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Pointer to statistics object. <br></td></tr> |
---|
295 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8be9255ceb6b64a27d8676a5ad0538b5"></a><!-- doxytag: member="itpp::Fix::min" ref="8be9255ceb6b64a27d8676a5ad0538b5" args="" --> |
---|
296 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#8be9255ceb6b64a27d8676a5ad0538b5">min</a></td></tr> |
---|
297 | |
---|
298 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum allowed value (help variable to speed up calculations). <br></td></tr> |
---|
299 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a40800c298b67fddd475675d39b5c073"></a><!-- doxytag: member="itpp::Fix::max" ref="a40800c298b67fddd475675d39b5c073" args="" --> |
---|
300 | fixrep </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#a40800c298b67fddd475675d39b5c073">max</a></td></tr> |
---|
301 | |
---|
302 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum allowed value (help variable to speed up calculations). <br></td></tr> |
---|
303 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2fb62ee12fe593f6df2afb1a6ac6b43d"></a><!-- doxytag: member="itpp::Fix::n_unused_bits" ref="2fb62ee12fe593f6df2afb1a6ac6b43d" args="" --> |
---|
304 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix__Base.html#2fb62ee12fe593f6df2afb1a6ac6b43d">n_unused_bits</a></td></tr> |
---|
305 | |
---|
306 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of unused (MSB) bits (help variable to speed up calculations). <br></td></tr> |
---|
307 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
308 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7a29bff26517f266d4dafa7004ca2a6d"></a><!-- doxytag: member="itpp::Fix::CFix" ref="7a29bff26517f266d4dafa7004ca2a6d" args="" --> |
---|
309 | class </td><td class="memItemRight" valign="bottom"><b>CFix</b></td></tr> |
---|
310 | |
---|
311 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1135c552a7deb7d229118027b23a7483"></a><!-- doxytag: member="itpp::Fix::Fixed" ref="1135c552a7deb7d229118027b23a7483" args="" --> |
---|
312 | class </td><td class="memItemRight" valign="bottom"><b>Fixed</b></td></tr> |
---|
313 | |
---|
314 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b183333168cf6de826fdd1071e5e7015"></a><!-- doxytag: member="itpp::Fix::CFixed" ref="b183333168cf6de826fdd1071e5e7015" args="" --> |
---|
315 | class </td><td class="memItemRight" valign="bottom"><b>CFixed</b></td></tr> |
---|
316 | |
---|
317 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0255a8f14fd73eee115ecbdbc02e9718"></a><!-- doxytag: member="itpp::Fix::assert_shifts" ref="0255a8f14fd73eee115ecbdbc02e9718" args="(const CFix &x, const Fix &y)" --> |
---|
318 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#0255a8f14fd73eee115ecbdbc02e9718">assert_shifts</a> (const <a class="el" href="classitpp_1_1CFix.html">CFix</a> &x, const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &y)</td></tr> |
---|
319 | |
---|
320 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Check that x.shift==y.shift OR x==0 OR y==0 and return the shift (for the non-zero argument). <br></td></tr> |
---|
321 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae6d0d5f246bff94c8c7880e20515206"></a><!-- doxytag: member="itpp::Fix::assert_shifts" ref="ae6d0d5f246bff94c8c7880e20515206" args="(const Fix &x, const Fix &y)" --> |
---|
322 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#ae6d0d5f246bff94c8c7880e20515206">assert_shifts</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x, const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &y)</td></tr> |
---|
323 | |
---|
324 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Check that x.shift==y.shift OR x==0 OR y==0 and return the shift (for the non-zero argument). <br></td></tr> |
---|
325 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39e3a0090015cd7d1c7e47858331a58d"></a><!-- doxytag: member="itpp::Fix::assert_shifts" ref="39e3a0090015cd7d1c7e47858331a58d" args="(const Fix &x, int y)" --> |
---|
326 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Fix.html#39e3a0090015cd7d1c7e47858331a58d">assert_shifts</a> (const <a class="el" href="classitpp_1_1Fix.html">Fix</a> &x, int y)</td></tr> |
---|
327 | |
---|
328 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Check that x.shift==0 OR x==0 OR y==0 and return x.shift. <br></td></tr> |
---|
329 | </table> |
---|
330 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
331 | Fixed-point data type. |
---|
332 | <p> |
---|
333 | See the Detailed Description in the <a class="el" href="group__fixed.html">Fixed-point Module</a> module. <hr>The documentation for this class was generated from the following files:<ul> |
---|
334 | <li><a class="el" href="fix_8h-source.html">fix.h</a><li><a class="el" href="fix_8cpp.html">fix.cpp</a></ul> |
---|
335 | </div> |
---|
336 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:19 2009 for mixpp by |
---|
337 | <a href="http://www.doxygen.org/index.html"> |
---|
338 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
339 | </body> |
---|
340 | </html> |
---|