[353] | 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: Conversion Functions</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><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> |
---|
| 60 | <div class="contents"> |
---|
| 61 | <h1>Conversion Functions<br> |
---|
| 62 | <small> |
---|
| 63 | [<a class="el" href="group__base.html">Base Module</a>]</small> |
---|
| 64 | </h1><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 65 | <tr><td></td></tr> |
---|
| 66 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
---|
| 67 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gdeb6e1697b2808f6461e12daebb06a14"></a><!-- doxytag: member="convertfunc::to_bvec" ref="gdeb6e1697b2808f6461e12daebb06a14" args="(const Vec< T > &v)" --> |
---|
| 68 | template<class T > </td></tr> |
---|
| 69 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gdeb6e1697b2808f6461e12daebb06a14">itpp::to_bvec</a> (const Vec< T > &v)</td></tr> |
---|
| 70 | |
---|
| 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to bvec. <br></td></tr> |
---|
| 72 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gac95767904cc6d4a1a3e76e1765309a0"></a><!-- doxytag: member="convertfunc::to_svec" ref="gac95767904cc6d4a1a3e76e1765309a0" args="(const Vec< T > &v)" --> |
---|
| 73 | template<class T > </td></tr> |
---|
| 74 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#7d53e7d4b228c818e8ade5c59c4ed9d9">svec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gac95767904cc6d4a1a3e76e1765309a0">itpp::to_svec</a> (const Vec< T > &v)</td></tr> |
---|
| 75 | |
---|
| 76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to svec. <br></td></tr> |
---|
| 77 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gee7bbdaa9dc40aa6c3b63c83fc7f11fe"></a><!-- doxytag: member="convertfunc::to_ivec" ref="gee7bbdaa9dc40aa6c3b63c83fc7f11fe" args="(const Vec< T > &v)" --> |
---|
| 78 | template<class T > </td></tr> |
---|
| 79 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gee7bbdaa9dc40aa6c3b63c83fc7f11fe">itpp::to_ivec</a> (const Vec< T > &v)</td></tr> |
---|
| 80 | |
---|
| 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to ivec. <br></td></tr> |
---|
| 82 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g80f51dbf24cb09c99d48534b4770b633"></a><!-- doxytag: member="convertfunc::to_vec" ref="g80f51dbf24cb09c99d48534b4770b633" args="(const Vec< T > &v)" --> |
---|
| 83 | template<class T > </td></tr> |
---|
| 84 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g80f51dbf24cb09c99d48534b4770b633">itpp::to_vec</a> (const Vec< T > &v)</td></tr> |
---|
| 85 | |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to vec. <br></td></tr> |
---|
| 87 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gf513bda819465b60780abe3ddcd3c797"></a><!-- doxytag: member="convertfunc::to_cvec" ref="gf513bda819465b60780abe3ddcd3c797" args="(const Vec< T > &v)" --> |
---|
| 88 | template<class T > </td></tr> |
---|
| 89 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gf513bda819465b60780abe3ddcd3c797">itpp::to_cvec</a> (const Vec< T > &v)</td></tr> |
---|
| 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to cvec. <br></td></tr> |
---|
| 92 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g314541dc3c9f92dc35e900a2b044e225"></a><!-- doxytag: member="convertfunc::to_cvec" ref="g314541dc3c9f92dc35e900a2b044e225" args="(const Vec< T > &real, const Vec< T > &imag)" --> |
---|
| 93 | template<class T > </td></tr> |
---|
| 94 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g314541dc3c9f92dc35e900a2b044e225">itpp::to_cvec</a> (const Vec< T > &real, const Vec< T > &imag)</td></tr> |
---|
| 95 | |
---|
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts real and imaginary <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to cvec. <br></td></tr> |
---|
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2c82af9774f45c3554fb03a06f3e28d"></a><!-- doxytag: member="convertfunc::to_ivec" ref="ga2c82af9774f45c3554fb03a06f3e28d" args="(int s)" --> |
---|
| 98 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ga2c82af9774f45c3554fb03a06f3e28d">itpp::to_ivec</a> (int s)</td></tr> |
---|
| 99 | |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts an int to ivec. <br></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga325f1de0fd8af751778b2d61fce015b"></a><!-- doxytag: member="convertfunc::to_vec" ref="ga325f1de0fd8af751778b2d61fce015b" args="(double s)" --> |
---|
| 102 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ga325f1de0fd8af751778b2d61fce015b">itpp::to_vec</a> (double s)</td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts an double to vec. <br></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5d38db5328e8f0f065c094660d640749"></a><!-- doxytag: member="convertfunc::to_cvec" ref="g5d38db5328e8f0f065c094660d640749" args="(double real, double imag)" --> |
---|
| 106 | <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g5d38db5328e8f0f065c094660d640749">itpp::to_cvec</a> (double real, double imag)</td></tr> |
---|
| 107 | |
---|
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts real and imaginary double to cvec. <br></td></tr> |
---|
| 109 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g07f9bb235b54a35618f764d6e7894ce3"></a><!-- doxytag: member="convertfunc::to_bmat" ref="g07f9bb235b54a35618f764d6e7894ce3" args="(const Mat< T > &m)" --> |
---|
| 110 | template<class T > </td></tr> |
---|
| 111 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69">bmat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g07f9bb235b54a35618f764d6e7894ce3">itpp::to_bmat</a> (const Mat< T > &m)</td></tr> |
---|
| 112 | |
---|
| 113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to bmat. <br></td></tr> |
---|
| 114 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gf713af60052f77c79cdb145311341e99"></a><!-- doxytag: member="convertfunc::to_smat" ref="gf713af60052f77c79cdb145311341e99" args="(const Mat< T > &m)" --> |
---|
| 115 | template<class T > </td></tr> |
---|
| 116 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#debd320317a18c022d3ca856af6d3687">smat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gf713af60052f77c79cdb145311341e99">itpp::to_smat</a> (const Mat< T > &m)</td></tr> |
---|
| 117 | |
---|
| 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to smat. <br></td></tr> |
---|
| 119 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g029975a9d32a9b958f4ec9965f4f1acb"></a><!-- doxytag: member="convertfunc::to_imat" ref="g029975a9d32a9b958f4ec9965f4f1acb" args="(const Mat< T > &m)" --> |
---|
| 120 | template<class T > </td></tr> |
---|
| 121 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g029975a9d32a9b958f4ec9965f4f1acb">itpp::to_imat</a> (const Mat< T > &m)</td></tr> |
---|
| 122 | |
---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to imat. <br></td></tr> |
---|
| 124 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g7d8813d98735a505d262763fa149dd2d"></a><!-- doxytag: member="convertfunc::to_mat" ref="g7d8813d98735a505d262763fa149dd2d" args="(const Mat< T > &m)" --> |
---|
| 125 | template<class T > </td></tr> |
---|
| 126 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g7d8813d98735a505d262763fa149dd2d">itpp::to_mat</a> (const Mat< T > &m)</td></tr> |
---|
| 127 | |
---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to mat. <br></td></tr> |
---|
| 129 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="ge05e63fed8aadc8152a4c3990f110e73"></a><!-- doxytag: member="convertfunc::to_cmat" ref="ge05e63fed8aadc8152a4c3990f110e73" args="(const Mat< T > &m)" --> |
---|
| 130 | template<class T > </td></tr> |
---|
| 131 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ge05e63fed8aadc8152a4c3990f110e73">itpp::to_cmat</a> (const Mat< T > &m)</td></tr> |
---|
| 132 | |
---|
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to cmat. <br></td></tr> |
---|
| 134 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g6481e9c6a0c9ac248b634662e3b388ee"></a><!-- doxytag: member="convertfunc::to_cmat" ref="g6481e9c6a0c9ac248b634662e3b388ee" args="(const Mat< T > &real, const Mat< T > &imag)" --> |
---|
| 135 | template<class T > </td></tr> |
---|
| 136 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g6481e9c6a0c9ac248b634662e3b388ee">itpp::to_cmat</a> (const Mat< T > &real, const Mat< T > &imag)</td></tr> |
---|
| 137 | |
---|
| 138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts real and imaginary <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to cmat. <br></td></tr> |
---|
| 139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gcc8145f0ff168a706b75a2b265a5b58e"></a><!-- doxytag: member="convertfunc::dec2bin" ref="gcc8145f0ff168a706b75a2b265a5b58e" args="(int length, int index)" --> |
---|
| 140 | <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gcc8145f0ff168a706b75a2b265a5b58e">itpp::dec2bin</a> (int length, int index)</td></tr> |
---|
| 141 | |
---|
| 142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a decimal int <em>index</em> to bvec using <em>length</em> bits in the representation. <br></td></tr> |
---|
| 143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ged52acbd24a1e661c9d9f2302d28b951"></a><!-- doxytag: member="convertfunc::dec2bin" ref="ged52acbd24a1e661c9d9f2302d28b951" args="(int index, bvec &v)" --> |
---|
| 144 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ged52acbd24a1e661c9d9f2302d28b951">itpp::dec2bin</a> (int index, <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &v)</td></tr> |
---|
| 145 | |
---|
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a decimal int <em>index</em> to bvec. Value returned in <em>v</em>. <br></td></tr> |
---|
| 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g83db366182e10eb823bcd5cb0149adf3"></a><!-- doxytag: member="convertfunc::dec2bin" ref="g83db366182e10eb823bcd5cb0149adf3" args="(int index, bool msb_first=true)" --> |
---|
| 148 | <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g83db366182e10eb823bcd5cb0149adf3">itpp::dec2bin</a> (int index, bool msb_first=true)</td></tr> |
---|
| 149 | |
---|
| 150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a decimal int <em>index</em> to bvec with the first bit as MSB if <em>msb_first</em> == true. <br></td></tr> |
---|
| 151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g698adf78bc0f9d36fd5987bc87d543fa"></a><!-- doxytag: member="convertfunc::bin2dec" ref="g698adf78bc0f9d36fd5987bc87d543fa" args="(const bvec &inbvec, bool msb_first=true)" --> |
---|
| 152 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g698adf78bc0f9d36fd5987bc87d543fa">itpp::bin2dec</a> (const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &inbvec, bool msb_first=true)</td></tr> |
---|
| 153 | |
---|
| 154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a bvec to decimal int with the first bit as MSB if <em>msb_first</em> == true. <br></td></tr> |
---|
| 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g587a6022d35b3545e049374daa3186e5">itpp::oct2bin</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &octalindex, short keepzeros=0)</td></tr> |
---|
| 156 | |
---|
| 157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert ivec of octal form to bvec. <a href="#g587a6022d35b3545e049374daa3186e5"></a><br></td></tr> |
---|
| 158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gf3a71bd89be4f7d28781fb14b97683fe">itpp::bin2oct</a> (const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &inbits)</td></tr> |
---|
| 159 | |
---|
| 160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert bvec to octal ivec. <a href="#gf3a71bd89be4f7d28781fb14b97683fe"></a><br></td></tr> |
---|
| 161 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g1d172f47328a0cc89c7d27652dde7142"></a><!-- doxytag: member="convertfunc::bin2pol" ref="g1d172f47328a0cc89c7d27652dde7142" args="(const bvec &inbvec)" --> |
---|
| 162 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g1d172f47328a0cc89c7d27652dde7142">itpp::bin2pol</a> (const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &inbvec)</td></tr> |
---|
| 163 | |
---|
| 164 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert bvec to polar binary representation as ivec. <br></td></tr> |
---|
| 165 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7b721d6f47de53beb67156145defa029"></a><!-- doxytag: member="convertfunc::pol2bin" ref="g7b721d6f47de53beb67156145defa029" args="(const ivec &inpol)" --> |
---|
| 166 | <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g7b721d6f47de53beb67156145defa029">itpp::pol2bin</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &inpol)</td></tr> |
---|
| 167 | |
---|
| 168 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert binary polar ivec to bvec. <br></td></tr> |
---|
| 169 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g32812ef8b0e56fa7ccda6bc36b954763"></a><!-- doxytag: member="convertfunc::rad_to_deg" ref="g32812ef8b0e56fa7ccda6bc36b954763" args="(double x)" --> |
---|
| 170 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g32812ef8b0e56fa7ccda6bc36b954763">itpp::rad_to_deg</a> (double x)</td></tr> |
---|
| 171 | |
---|
| 172 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert radians to degrees. <br></td></tr> |
---|
| 173 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gb9cc2e2e33ff39ea9aa946e6051c709c"></a><!-- doxytag: member="convertfunc::deg_to_rad" ref="gb9cc2e2e33ff39ea9aa946e6051c709c" args="(double x)" --> |
---|
| 174 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gb9cc2e2e33ff39ea9aa946e6051c709c">itpp::deg_to_rad</a> (double x)</td></tr> |
---|
| 175 | |
---|
| 176 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert degrees to radians. <br></td></tr> |
---|
| 177 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g73205f46874d5d65ab69a0cd91534c51"></a><!-- doxytag: member="convertfunc::round" ref="g73205f46874d5d65ab69a0cd91534c51" args="(double x)" --> |
---|
| 178 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g73205f46874d5d65ab69a0cd91534c51">itpp::round</a> (double x)</td></tr> |
---|
| 179 | |
---|
| 180 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest integer, return result in double. <br></td></tr> |
---|
| 181 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9d26b1d3242affdb5d4b11372737283"></a><!-- doxytag: member="convertfunc::round" ref="ga9d26b1d3242affdb5d4b11372737283" args="(const vec &x)" --> |
---|
| 182 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ga9d26b1d3242affdb5d4b11372737283">itpp::round</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 183 | |
---|
| 184 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest integer. <br></td></tr> |
---|
| 185 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g811e448b443d640d5931624a8727d0fd"></a><!-- doxytag: member="convertfunc::round" ref="g811e448b443d640d5931624a8727d0fd" args="(const mat &x)" --> |
---|
| 186 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g811e448b443d640d5931624a8727d0fd">itpp::round</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 187 | |
---|
| 188 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest integer. <br></td></tr> |
---|
| 189 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g82f2a2bcb10cbc8aa8c450ef5cc2c1a7"></a><!-- doxytag: member="convertfunc::round_i" ref="g82f2a2bcb10cbc8aa8c450ef5cc2c1a7" args="(double x)" --> |
---|
| 190 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g82f2a2bcb10cbc8aa8c450ef5cc2c1a7">itpp::round_i</a> (double x)</td></tr> |
---|
| 191 | |
---|
| 192 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest integer. <br></td></tr> |
---|
| 193 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g05878e3138700dd69ed3e0261300dcde"></a><!-- doxytag: member="convertfunc::round_i" ref="g05878e3138700dd69ed3e0261300dcde" args="(const vec &x)" --> |
---|
| 194 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g05878e3138700dd69ed3e0261300dcde">itpp::round_i</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 195 | |
---|
| 196 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest integer and return ivec. <br></td></tr> |
---|
| 197 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gfba861d94f7752f6dfafcdf14b336ca5"></a><!-- doxytag: member="convertfunc::round_i" ref="gfba861d94f7752f6dfafcdf14b336ca5" args="(const mat &x)" --> |
---|
| 198 | <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gfba861d94f7752f6dfafcdf14b336ca5">itpp::round_i</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 199 | |
---|
| 200 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest integer and return imat. <br></td></tr> |
---|
| 201 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g21dd9f813dc0a0342a5d0124b5c2ef33"></a><!-- doxytag: member="convertfunc::ceil" ref="g21dd9f813dc0a0342a5d0124b5c2ef33" args="(const vec &x)" --> |
---|
| 202 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g21dd9f813dc0a0342a5d0124b5c2ef33">itpp::ceil</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 203 | |
---|
| 204 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest upper integer. <br></td></tr> |
---|
| 205 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0cb0ca1ce1f1218522ba2b1e0e1fe5a5"></a><!-- doxytag: member="convertfunc::ceil" ref="g0cb0ca1ce1f1218522ba2b1e0e1fe5a5" args="(const mat &x)" --> |
---|
| 206 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g0cb0ca1ce1f1218522ba2b1e0e1fe5a5">itpp::ceil</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 207 | |
---|
| 208 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest upper integer. <br></td></tr> |
---|
| 209 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8a4414e86506bff25f33d921b3dc8387"></a><!-- doxytag: member="convertfunc::ceil_i" ref="g8a4414e86506bff25f33d921b3dc8387" args="(double x)" --> |
---|
| 210 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g8a4414e86506bff25f33d921b3dc8387">itpp::ceil_i</a> (double x)</td></tr> |
---|
| 211 | |
---|
| 212 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The nearest larger integer. <br></td></tr> |
---|
| 213 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gdeb973e9546e0f1cf08d1ecd297fbe27"></a><!-- doxytag: member="convertfunc::ceil_i" ref="gdeb973e9546e0f1cf08d1ecd297fbe27" args="(const vec &x)" --> |
---|
| 214 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gdeb973e9546e0f1cf08d1ecd297fbe27">itpp::ceil_i</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 215 | |
---|
| 216 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest upper integer. <br></td></tr> |
---|
| 217 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0f093b7797b4e80006219f0dee101ecf"></a><!-- doxytag: member="convertfunc::ceil_i" ref="g0f093b7797b4e80006219f0dee101ecf" args="(const mat &x)" --> |
---|
| 218 | <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g0f093b7797b4e80006219f0dee101ecf">itpp::ceil_i</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 219 | |
---|
| 220 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest upper integer. <br></td></tr> |
---|
| 221 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g20b741d3bbb9485ad77535578a9acb71"></a><!-- doxytag: member="convertfunc::floor" ref="g20b741d3bbb9485ad77535578a9acb71" args="(const vec &x)" --> |
---|
| 222 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g20b741d3bbb9485ad77535578a9acb71">itpp::floor</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 223 | |
---|
| 224 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest lower integer. <br></td></tr> |
---|
| 225 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0f932e63be26b95c4d9c6603b6355e89"></a><!-- doxytag: member="convertfunc::floor" ref="g0f932e63be26b95c4d9c6603b6355e89" args="(const mat &x)" --> |
---|
| 226 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g0f932e63be26b95c4d9c6603b6355e89">itpp::floor</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 227 | |
---|
| 228 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest lower integer. <br></td></tr> |
---|
| 229 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gcf1c71fe102e088b3233fce2386d95db"></a><!-- doxytag: member="convertfunc::floor_i" ref="gcf1c71fe102e088b3233fce2386d95db" args="(double x)" --> |
---|
| 230 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gcf1c71fe102e088b3233fce2386d95db">itpp::floor_i</a> (double x)</td></tr> |
---|
| 231 | |
---|
| 232 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The nearest smaller integer. <br></td></tr> |
---|
| 233 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g4aa38ef125ac5b1932b0056875029322"></a><!-- doxytag: member="convertfunc::floor_i" ref="g4aa38ef125ac5b1932b0056875029322" args="(const vec &x)" --> |
---|
| 234 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g4aa38ef125ac5b1932b0056875029322">itpp::floor_i</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
| 235 | |
---|
| 236 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest lower integer. <br></td></tr> |
---|
| 237 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gb5745fd45c164c8d1e062359d0bf2783"></a><!-- doxytag: member="convertfunc::floor_i" ref="gb5745fd45c164c8d1e062359d0bf2783" args="(const mat &x)" --> |
---|
| 238 | <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gb5745fd45c164c8d1e062359d0bf2783">itpp::floor_i</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
| 239 | |
---|
| 240 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest lower integer. <br></td></tr> |
---|
| 241 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g10c358bc8f691b80fe13e3cb0491078b"></a><!-- doxytag: member="convertfunc::round_to_zero" ref="g10c358bc8f691b80fe13e3cb0491078b" args="(double x, double threshold=1e-14)" --> |
---|
| 242 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g10c358bc8f691b80fe13e3cb0491078b">itpp::round_to_zero</a> (double x, double threshold=1e-14)</td></tr> |
---|
| 243 | |
---|
| 244 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round <em>x</em> to zero if <em>abs(x)</em> is smaller than <em>threshold</em>. <br></td></tr> |
---|
| 245 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g74012e9508df1f490db9dbe0020d9207"></a><!-- doxytag: member="convertfunc::round_to_zero" ref="g74012e9508df1f490db9dbe0020d9207" args="(const std::complex< double > &x, double threshold=1e-14)" --> |
---|
| 246 | std::complex< double > </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g74012e9508df1f490db9dbe0020d9207">itpp::round_to_zero</a> (const std::complex< double > &x, double threshold=1e-14)</td></tr> |
---|
| 247 | |
---|
| 248 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round each part of <em>x</em> smaller than <em>threshold</em> to zero. <br></td></tr> |
---|
| 249 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7640d87910f68d7a1e76c596dae72f79"></a><!-- doxytag: member="convertfunc::round_to_zero" ref="g7640d87910f68d7a1e76c596dae72f79" args="(const vec &x, double threshold=1e-14)" --> |
---|
| 250 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g7640d87910f68d7a1e76c596dae72f79">itpp::round_to_zero</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x, double threshold=1e-14)</td></tr> |
---|
| 251 | |
---|
| 252 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round each element to zero if element < threshold. <br></td></tr> |
---|
| 253 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gce3bc32b13627eb80a2920c2555bd346"></a><!-- doxytag: member="convertfunc::round_to_zero" ref="gce3bc32b13627eb80a2920c2555bd346" args="(const mat &x, double threshold=1e-14)" --> |
---|
| 254 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gce3bc32b13627eb80a2920c2555bd346">itpp::round_to_zero</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x, double threshold=1e-14)</td></tr> |
---|
| 255 | |
---|
| 256 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round each element to zero if element < threshold. <br></td></tr> |
---|
| 257 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc18dbc8cd635ad1ff95053d43556f18a"></a><!-- doxytag: member="convertfunc::round_to_zero" ref="gc18dbc8cd635ad1ff95053d43556f18a" args="(const cvec &x, double threshold=1e-14)" --> |
---|
| 258 | <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gc18dbc8cd635ad1ff95053d43556f18a">itpp::round_to_zero</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x, double threshold=1e-14)</td></tr> |
---|
| 259 | |
---|
| 260 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round each element to zero if element < threshold. <br></td></tr> |
---|
| 261 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g843abab899b16e0ac6cf2641fc3e1daa"></a><!-- doxytag: member="convertfunc::round_to_zero" ref="g843abab899b16e0ac6cf2641fc3e1daa" args="(const cmat &x, double threshold=1e-14)" --> |
---|
| 262 | <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g843abab899b16e0ac6cf2641fc3e1daa">itpp::round_to_zero</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x, double threshold=1e-14)</td></tr> |
---|
| 263 | |
---|
| 264 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Round each element to zero if element < threshold. <br></td></tr> |
---|
| 265 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g6e40220eacb8cf264c83845319d256d9"></a><!-- doxytag: member="convertfunc::gray_code" ref="g6e40220eacb8cf264c83845319d256d9" args="(int x)" --> |
---|
| 266 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g6e40220eacb8cf264c83845319d256d9">itpp::gray_code</a> (int x)</td></tr> |
---|
| 267 | |
---|
| 268 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert to Gray Code. <br></td></tr> |
---|
| 269 | <tr><td class="memTemplParams" nowrap colspan="2">template<typename T > </td></tr> |
---|
| 270 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g5ec111b67afeddb439dfe8b42658c611">itpp::to_str</a> (const T &i)</td></tr> |
---|
| 271 | |
---|
| 272 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert anything to string. <a href="#g5ec111b67afeddb439dfe8b42658c611"></a><br></td></tr> |
---|
| 273 | <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g67127e32647b00caaed837ea24fb63f1">itpp::to_str</a> (const double &i, const int precision)</td></tr> |
---|
| 274 | |
---|
| 275 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert double to string. <a href="#g67127e32647b00caaed837ea24fb63f1"></a><br></td></tr> |
---|
| 276 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gdeb6e1697b2808f6461e12daebb06a14"></a><!-- doxytag: member="convertfunc::to_bvec" ref="gdeb6e1697b2808f6461e12daebb06a14" args="(const Vec< T > &v)" --> |
---|
| 277 | template<class T > </td></tr> |
---|
| 278 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gdeb6e1697b2808f6461e12daebb06a14">itpp::Vec::to_bvec</a> (const Vec< T > &v)</td></tr> |
---|
| 279 | |
---|
| 280 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to bvec. <br></td></tr> |
---|
| 281 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gac95767904cc6d4a1a3e76e1765309a0"></a><!-- doxytag: member="convertfunc::to_svec" ref="gac95767904cc6d4a1a3e76e1765309a0" args="(const Vec< T > &v)" --> |
---|
| 282 | template<class T > </td></tr> |
---|
| 283 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#7d53e7d4b228c818e8ade5c59c4ed9d9">svec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gac95767904cc6d4a1a3e76e1765309a0">itpp::Vec::to_svec</a> (const Vec< T > &v)</td></tr> |
---|
| 284 | |
---|
| 285 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to svec. <br></td></tr> |
---|
| 286 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gee7bbdaa9dc40aa6c3b63c83fc7f11fe"></a><!-- doxytag: member="convertfunc::to_ivec" ref="gee7bbdaa9dc40aa6c3b63c83fc7f11fe" args="(const Vec< T > &v)" --> |
---|
| 287 | template<class T > </td></tr> |
---|
| 288 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gee7bbdaa9dc40aa6c3b63c83fc7f11fe">itpp::Vec::to_ivec</a> (const Vec< T > &v)</td></tr> |
---|
| 289 | |
---|
| 290 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to ivec. <br></td></tr> |
---|
| 291 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g80f51dbf24cb09c99d48534b4770b633"></a><!-- doxytag: member="convertfunc::to_vec" ref="g80f51dbf24cb09c99d48534b4770b633" args="(const Vec< T > &v)" --> |
---|
| 292 | template<class T > </td></tr> |
---|
| 293 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g80f51dbf24cb09c99d48534b4770b633">itpp::Vec::to_vec</a> (const Vec< T > &v)</td></tr> |
---|
| 294 | |
---|
| 295 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to vec. <br></td></tr> |
---|
| 296 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gf513bda819465b60780abe3ddcd3c797"></a><!-- doxytag: member="convertfunc::to_cvec" ref="gf513bda819465b60780abe3ddcd3c797" args="(const Vec< T > &v)" --> |
---|
| 297 | template<class T > </td></tr> |
---|
| 298 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gf513bda819465b60780abe3ddcd3c797">itpp::Vec::to_cvec</a> (const Vec< T > &v)</td></tr> |
---|
| 299 | |
---|
| 300 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to cvec. <br></td></tr> |
---|
| 301 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g314541dc3c9f92dc35e900a2b044e225"></a><!-- doxytag: member="convertfunc::to_cvec" ref="g314541dc3c9f92dc35e900a2b044e225" args="(const Vec< T > &real, const Vec< T > &imag)" --> |
---|
| 302 | template<class T > </td></tr> |
---|
| 303 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g314541dc3c9f92dc35e900a2b044e225">itpp::Vec::to_cvec</a> (const Vec< T > &real, const Vec< T > &imag)</td></tr> |
---|
| 304 | |
---|
| 305 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts real and imaginary <a class="el" href="classitpp_1_1Vec.html">Vec<T></a> to cvec. <br></td></tr> |
---|
| 306 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2c82af9774f45c3554fb03a06f3e28d"></a><!-- doxytag: member="convertfunc::to_ivec" ref="ga2c82af9774f45c3554fb03a06f3e28d" args="(int s)" --> |
---|
| 307 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ga2c82af9774f45c3554fb03a06f3e28d">itpp::Vec::to_ivec</a> (int s)</td></tr> |
---|
| 308 | |
---|
| 309 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts an int to ivec. <br></td></tr> |
---|
| 310 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga325f1de0fd8af751778b2d61fce015b"></a><!-- doxytag: member="convertfunc::to_vec" ref="ga325f1de0fd8af751778b2d61fce015b" args="(double s)" --> |
---|
| 311 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ga325f1de0fd8af751778b2d61fce015b">itpp::Vec::to_vec</a> (double s)</td></tr> |
---|
| 312 | |
---|
| 313 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts an double to vec. <br></td></tr> |
---|
| 314 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5d38db5328e8f0f065c094660d640749"></a><!-- doxytag: member="convertfunc::to_cvec" ref="g5d38db5328e8f0f065c094660d640749" args="(double real, double imag)" --> |
---|
| 315 | <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g5d38db5328e8f0f065c094660d640749">itpp::Vec::to_cvec</a> (double real, double imag)</td></tr> |
---|
| 316 | |
---|
| 317 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts real and imaginary double to cvec. <br></td></tr> |
---|
| 318 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g07f9bb235b54a35618f764d6e7894ce3"></a><!-- doxytag: member="convertfunc::to_bmat" ref="g07f9bb235b54a35618f764d6e7894ce3" args="(const Mat< T > &m)" --> |
---|
| 319 | template<class T > </td></tr> |
---|
| 320 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69">bmat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g07f9bb235b54a35618f764d6e7894ce3">itpp::Mat::to_bmat</a> (const Mat< T > &m)</td></tr> |
---|
| 321 | |
---|
| 322 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to bmat. <br></td></tr> |
---|
| 323 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="gf713af60052f77c79cdb145311341e99"></a><!-- doxytag: member="convertfunc::to_smat" ref="gf713af60052f77c79cdb145311341e99" args="(const Mat< T > &m)" --> |
---|
| 324 | template<class T > </td></tr> |
---|
| 325 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#debd320317a18c022d3ca856af6d3687">smat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#gf713af60052f77c79cdb145311341e99">itpp::Mat::to_smat</a> (const Mat< T > &m)</td></tr> |
---|
| 326 | |
---|
| 327 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to smat. <br></td></tr> |
---|
| 328 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g029975a9d32a9b958f4ec9965f4f1acb"></a><!-- doxytag: member="convertfunc::to_imat" ref="g029975a9d32a9b958f4ec9965f4f1acb" args="(const Mat< T > &m)" --> |
---|
| 329 | template<class T > </td></tr> |
---|
| 330 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g029975a9d32a9b958f4ec9965f4f1acb">itpp::Mat::to_imat</a> (const Mat< T > &m)</td></tr> |
---|
| 331 | |
---|
| 332 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to imat. <br></td></tr> |
---|
| 333 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g7d8813d98735a505d262763fa149dd2d"></a><!-- doxytag: member="convertfunc::to_mat" ref="g7d8813d98735a505d262763fa149dd2d" args="(const Mat< T > &m)" --> |
---|
| 334 | template<class T > </td></tr> |
---|
| 335 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g7d8813d98735a505d262763fa149dd2d">itpp::Mat::to_mat</a> (const Mat< T > &m)</td></tr> |
---|
| 336 | |
---|
| 337 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to mat. <br></td></tr> |
---|
| 338 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="ge05e63fed8aadc8152a4c3990f110e73"></a><!-- doxytag: member="convertfunc::to_cmat" ref="ge05e63fed8aadc8152a4c3990f110e73" args="(const Mat< T > &m)" --> |
---|
| 339 | template<class T > </td></tr> |
---|
| 340 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#ge05e63fed8aadc8152a4c3990f110e73">itpp::Mat::to_cmat</a> (const Mat< T > &m)</td></tr> |
---|
| 341 | |
---|
| 342 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to cmat. <br></td></tr> |
---|
| 343 | <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="g6481e9c6a0c9ac248b634662e3b388ee"></a><!-- doxytag: member="convertfunc::to_cmat" ref="g6481e9c6a0c9ac248b634662e3b388ee" args="(const Mat< T > &real, const Mat< T > &imag)" --> |
---|
| 344 | template<class T > </td></tr> |
---|
| 345 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__convertfunc.html#g6481e9c6a0c9ac248b634662e3b388ee">itpp::Mat::to_cmat</a> (const Mat< T > &real, const Mat< T > &imag)</td></tr> |
---|
| 346 | |
---|
| 347 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts real and imaginary <a class="el" href="classitpp_1_1Mat.html">Mat<T></a> to cmat. <br></td></tr> |
---|
| 348 | </table> |
---|
| 349 | <hr><h2>Function Documentation</h2> |
---|
| 350 | <a class="anchor" name="gf3a71bd89be4f7d28781fb14b97683fe"></a><!-- doxytag: member="itpp::bin2oct" ref="gf3a71bd89be4f7d28781fb14b97683fe" args="(const bvec &inbits)" --> |
---|
| 351 | <div class="memitem"> |
---|
| 352 | <div class="memproto"> |
---|
| 353 | <table class="memname"> |
---|
| 354 | <tr> |
---|
| 355 | <td class="memname"><a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> itpp::bin2oct </td> |
---|
| 356 | <td>(</td> |
---|
| 357 | <td class="paramtype">const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> & </td> |
---|
| 358 | <td class="paramname"> <em>inbits</em> </td> |
---|
| 359 | <td> ) </td> |
---|
| 360 | <td></td> |
---|
| 361 | </tr> |
---|
| 362 | </table> |
---|
| 363 | </div> |
---|
| 364 | <div class="memdoc"> |
---|
| 365 | |
---|
| 366 | <p> |
---|
| 367 | Convert bvec to octal ivec. |
---|
| 368 | <p> |
---|
| 369 | Converts from bvec containing {0,1} to ivec containing {0,1,2,...,7}. Adds zeros to the left if <a class="el" href="group__matrix__functions.html#g97bb6b35d6d4c683c7558842e4500c2d" title="Length of vector.">inbits.length()</a> is not a factor of 3. Example: bin2oct("1 1 1 0 1 1 0 1 0 0 1") returns {3 5 5 1}. |
---|
| 370 | </div> |
---|
| 371 | </div><p> |
---|
| 372 | <a class="anchor" name="g587a6022d35b3545e049374daa3186e5"></a><!-- doxytag: member="itpp::oct2bin" ref="g587a6022d35b3545e049374daa3186e5" args="(const ivec &octalindex, short keepzeros=0)" --> |
---|
| 373 | <div class="memitem"> |
---|
| 374 | <div class="memproto"> |
---|
| 375 | <table class="memname"> |
---|
| 376 | <tr> |
---|
| 377 | <td class="memname"><a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> itpp::oct2bin </td> |
---|
| 378 | <td>(</td> |
---|
| 379 | <td class="paramtype">const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> & </td> |
---|
| 380 | <td class="paramname"> <em>octalindex</em>, </td> |
---|
| 381 | </tr> |
---|
| 382 | <tr> |
---|
| 383 | <td class="paramkey"></td> |
---|
| 384 | <td></td> |
---|
| 385 | <td class="paramtype">short </td> |
---|
| 386 | <td class="paramname"> <em>keepzeros</em> = <code>0</code></td><td> </td> |
---|
| 387 | </tr> |
---|
| 388 | <tr> |
---|
| 389 | <td></td> |
---|
| 390 | <td>)</td> |
---|
| 391 | <td></td><td></td><td></td> |
---|
| 392 | </tr> |
---|
| 393 | </table> |
---|
| 394 | </div> |
---|
| 395 | <div class="memdoc"> |
---|
| 396 | |
---|
| 397 | <p> |
---|
| 398 | Convert ivec of octal form to bvec. |
---|
| 399 | <p> |
---|
| 400 | Converts from ivec containing {0,1,2,...,7} to bvec containing {0,1}. Removes zeros to the left if keepzeros = 0 (default). Example: oct2bin("3 5 5 1") returns {1 1 1 0 1 1 0 1 0 0 1}. |
---|
| 401 | <p>Referenced by <a class="el" href="bch_8cpp-source.html#l00039">itpp::BCH::BCH()</a>, <a class="el" href="sequence_8cpp-source.html#l00054">itpp::LFSR::set_connections()</a>, and <a class="el" href="sequence_8cpp-source.html#l00068">itpp::LFSR::set_state()</a>.</p> |
---|
| 402 | |
---|
| 403 | </div> |
---|
| 404 | </div><p> |
---|
| 405 | <a class="anchor" name="g67127e32647b00caaed837ea24fb63f1"></a><!-- doxytag: member="itpp::to_str" ref="g67127e32647b00caaed837ea24fb63f1" args="(const double &i, const int precision)" --> |
---|
| 406 | <div class="memitem"> |
---|
| 407 | <div class="memproto"> |
---|
| 408 | <table class="memname"> |
---|
| 409 | <tr> |
---|
| 410 | <td class="memname">std::string itpp::to_str </td> |
---|
| 411 | <td>(</td> |
---|
| 412 | <td class="paramtype">const double & </td> |
---|
| 413 | <td class="paramname"> <em>i</em>, </td> |
---|
| 414 | </tr> |
---|
| 415 | <tr> |
---|
| 416 | <td class="paramkey"></td> |
---|
| 417 | <td></td> |
---|
| 418 | <td class="paramtype">const int </td> |
---|
| 419 | <td class="paramname"> <em>precision</em></td><td> </td> |
---|
| 420 | </tr> |
---|
| 421 | <tr> |
---|
| 422 | <td></td> |
---|
| 423 | <td>)</td> |
---|
| 424 | <td></td><td></td><td></td> |
---|
| 425 | </tr> |
---|
| 426 | </table> |
---|
| 427 | </div> |
---|
| 428 | <div class="memdoc"> |
---|
| 429 | |
---|
| 430 | <p> |
---|
| 431 | Convert double to string. |
---|
| 432 | <p> |
---|
| 433 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 434 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 435 | <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>i</em> </td><td>The value to be converted to a string </td></tr> |
---|
| 436 | <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>precision</em> </td><td>The number of digits used to represent the fractional part </td></tr> |
---|
| 437 | </table> |
---|
| 438 | </dl> |
---|
| 439 | |
---|
| 440 | <p>Referenced by <a class="el" href="fix__functions_8h-source.html#l00315">itpp::assert_fixshift()</a>, <a class="el" href="tcp_8h-source.html#l00698">itpp::TCP_Segment::set_begin()</a>, and <a class="el" href="tcp_8h-source.html#l00706">itpp::TCP_Segment::set_end()</a>.</p> |
---|
| 441 | |
---|
| 442 | </div> |
---|
| 443 | </div><p> |
---|
| 444 | <a class="anchor" name="g5ec111b67afeddb439dfe8b42658c611"></a><!-- doxytag: member="itpp::to_str" ref="g5ec111b67afeddb439dfe8b42658c611" args="(const T &i)" --> |
---|
| 445 | <div class="memitem"> |
---|
| 446 | <div class="memproto"> |
---|
| 447 | <div class="memtemplate"> |
---|
| 448 | template<typename T > </div> |
---|
| 449 | <table class="memname"> |
---|
| 450 | <tr> |
---|
| 451 | <td class="memname">std::string itpp::to_str </td> |
---|
| 452 | <td>(</td> |
---|
| 453 | <td class="paramtype">const T & </td> |
---|
| 454 | <td class="paramname"> <em>i</em> </td> |
---|
| 455 | <td> ) </td> |
---|
| 456 | <td><code> [inline]</code></td> |
---|
| 457 | </tr> |
---|
| 458 | </table> |
---|
| 459 | </div> |
---|
| 460 | <div class="memdoc"> |
---|
| 461 | |
---|
| 462 | <p> |
---|
| 463 | Convert anything to string. |
---|
| 464 | <p> |
---|
| 465 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 466 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 467 | <tr><td valign="top"></td><td valign="top"><em>i</em> </td><td>(Input) The value to be converted to a string </td></tr> |
---|
| 468 | </table> |
---|
| 469 | </dl> |
---|
| 470 | |
---|
| 471 | </div> |
---|
| 472 | </div><p> |
---|
| 473 | </div> |
---|
| 474 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:14 2009 for mixpp by |
---|
| 475 | <a href="http://www.doxygen.org/index.html"> |
---|
| 476 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
| 477 | </body> |
---|
| 478 | </html> |
---|