root/doc/html/poly_8h-source.html @ 353

Revision 353, 8.8 kB (checked in by smidl, 16 years ago)

doc

Line 
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: poly.h Source File</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<!--
10function 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}
22function 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}
46window.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&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;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 class="current"><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
62      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
63    </ul>
64  </div>
65<h1>poly.h</h1><a href="poly_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
66<a name="l00029"></a>00029 <span class="preprocessor">#ifndef POLY_H</span>
67<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define POLY_H</span>
68<a name="l00031"></a>00031 <span class="preprocessor"></span>
69<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="vec_8h.html" title="Templated Vector Class Definitions.">itpp/base/vec.h</a>&gt;</span>
70<a name="l00033"></a>00033
71<a name="l00034"></a>00034
72<a name="l00035"></a>00035 <span class="keyword">namespace </span>itpp
73<a name="l00036"></a>00036 {
74<a name="l00037"></a>00037
75<a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="group__poly.html#gab3633500ff808dd810c8c4ed982b8a3" title="Create a polynomial of the given rootsCreate a polynomial p with roots r.">poly</a>(<span class="keyword">const</span> vec &amp;r, vec &amp;p);
76<a name="l00047"></a>00047 <span class="keyword">inline</span> vec <a class="code" href="group__poly.html#gab3633500ff808dd810c8c4ed982b8a3" title="Create a polynomial of the given rootsCreate a polynomial p with roots r.">poly</a>(<span class="keyword">const</span> vec &amp;r) { vec temp; <a class="code" href="group__poly.html#gab3633500ff808dd810c8c4ed982b8a3" title="Create a polynomial of the given rootsCreate a polynomial p with roots r.">poly</a>(r, temp); <span class="keywordflow">return</span> temp; }
77<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="group__poly.html#gab3633500ff808dd810c8c4ed982b8a3" title="Create a polynomial of the given rootsCreate a polynomial p with roots r.">poly</a>(<span class="keyword">const</span> cvec &amp;r, cvec &amp;p);
78<a name="l00049"></a>00049 <span class="keyword">inline</span> cvec <a class="code" href="group__poly.html#gab3633500ff808dd810c8c4ed982b8a3" title="Create a polynomial of the given rootsCreate a polynomial p with roots r.">poly</a>(<span class="keyword">const</span> cvec &amp;r) { cvec temp; <a class="code" href="group__poly.html#gab3633500ff808dd810c8c4ed982b8a3" title="Create a polynomial of the given rootsCreate a polynomial p with roots r.">poly</a>(r, temp); <span class="keywordflow">return</span> temp; }
79<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="group__poly.html#gf849a0862dc9bcd2e429732e577fe006" title="Calculate the roots of the polynomialCalculate the roots r of the polynomial p.">roots</a>(<span class="keyword">const</span> vec &amp;p, cvec &amp;r);
80<a name="l00062"></a>00062 <span class="keyword">inline</span> cvec <a class="code" href="group__poly.html#gf849a0862dc9bcd2e429732e577fe006" title="Calculate the roots of the polynomialCalculate the roots r of the polynomial p.">roots</a>(<span class="keyword">const</span> vec &amp;p) { cvec temp; <a class="code" href="group__poly.html#gf849a0862dc9bcd2e429732e577fe006" title="Calculate the roots of the polynomialCalculate the roots r of the polynomial p.">roots</a>(p, temp); <span class="keywordflow">return</span> temp; }
81<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="group__poly.html#gf849a0862dc9bcd2e429732e577fe006" title="Calculate the roots of the polynomialCalculate the roots r of the polynomial p.">roots</a>(<span class="keyword">const</span> cvec &amp;p, cvec &amp;r);
82<a name="l00064"></a>00064 <span class="keyword">inline</span> cvec <a class="code" href="group__poly.html#gf849a0862dc9bcd2e429732e577fe006" title="Calculate the roots of the polynomialCalculate the roots r of the polynomial p.">roots</a>(<span class="keyword">const</span> cvec &amp;p) { cvec temp; <a class="code" href="group__poly.html#gf849a0862dc9bcd2e429732e577fe006" title="Calculate the roots of the polynomialCalculate the roots r of the polynomial p.">roots</a>(p, temp); <span class="keywordflow">return</span> temp; }
83<a name="l00080"></a>00080 vec <a class="code" href="group__poly.html#g59f5bb49a251bf31f40538f5fca4b9b2" title="Evaluate polynomialEvaluate the polynomial p (of length  at the points x The output...">polyval</a>(<span class="keyword">const</span> vec &amp;p, <span class="keyword">const</span> vec &amp;x);
84<a name="l00081"></a>00081 cvec <a class="code" href="group__poly.html#g59f5bb49a251bf31f40538f5fca4b9b2" title="Evaluate polynomialEvaluate the polynomial p (of length  at the points x The output...">polyval</a>(<span class="keyword">const</span> vec &amp;p, <span class="keyword">const</span> cvec &amp;x);
85<a name="l00082"></a>00082 cvec <a class="code" href="group__poly.html#g59f5bb49a251bf31f40538f5fca4b9b2" title="Evaluate polynomialEvaluate the polynomial p (of length  at the points x The output...">polyval</a>(<span class="keyword">const</span> cvec &amp;p, <span class="keyword">const</span> vec &amp;x);
86<a name="l00083"></a>00083 cvec <a class="code" href="group__poly.html#g59f5bb49a251bf31f40538f5fca4b9b2" title="Evaluate polynomialEvaluate the polynomial p (of length  at the points x The output...">polyval</a>(<span class="keyword">const</span> cvec &amp;p, <span class="keyword">const</span> cvec &amp;x);
87<a name="l00106"></a>00106 <span class="keywordtype">double</span> <a class="code" href="group__poly.html#gdc7b40bdfa59f4690108b0af6032a28e" title="Chebyshev polynomial of the first kindChebyshev polynomials of the first kind can...">cheb</a>(<span class="keywordtype">int</span> n, <span class="keywordtype">double</span> x);
88<a name="l00107"></a>00107
89<a name="l00131"></a>00131 vec <a class="code" href="group__poly.html#gdc7b40bdfa59f4690108b0af6032a28e" title="Chebyshev polynomial of the first kindChebyshev polynomials of the first kind can...">cheb</a>(<span class="keywordtype">int</span> n, <span class="keyword">const</span> vec &amp;x);
90<a name="l00132"></a>00132
91<a name="l00156"></a>00156 mat <a class="code" href="group__poly.html#gdc7b40bdfa59f4690108b0af6032a28e" title="Chebyshev polynomial of the first kindChebyshev polynomials of the first kind can...">cheb</a>(<span class="keywordtype">int</span> n, <span class="keyword">const</span> mat &amp;x);
92<a name="l00157"></a>00157 } <span class="comment">// namespace itpp</span>
93<a name="l00158"></a>00158
94<a name="l00159"></a>00159 <span class="preprocessor">#endif // #ifndef POLY_H</span>
95</pre></div></div>
96<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:12 2009 for mixpp by&nbsp;
97<a href="http://www.doxygen.org/index.html">
98<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
99</body>
100</html>
Note: See TracBrowser for help on using the browser.