📄 a00090.html
字号:
<td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>p</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>out-of_place polynomial scaling.<p>Polynomial scaling.<p><dl compact><dt><b>Returns:</b></dt><dd>The polynomial <img class="formulaInl" alt="$r(x)=s.p(x)$" src="form_16.png"> .</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00101.html#g4db05aa06bba6b0f29a0c2608a479ec1">mul(Polynomial<T>& r, const T& s, const Polynomial<T>& p)</a><br> Polynomial<T>::operator*= (const T& s)<br> <a class="el" href="a00090.html#fedcfef27cf2f0a1f0075272a849b951">operator/</a> (const T& s, const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& p) </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00548">548</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="cd642f1b8ab48b8b99394fffc24727d6"></a><!-- doxytag: member="Polynomial::operator *" ref="cd642f1b8ab48b8b99394fffc24727d6" args="(const Polynomial< T > &p, const Polynomial< T > &q)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="mdPrefix" colspan="4">template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"><a class="el" href="a00090.html">Polynomial</a><T> operator * </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>q</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>out-of-place polynomial multiply.<p>Multiplies two polynomials by convolution. It is advisable to use <a class="el" href="a00101.html#g4db05aa06bba6b0f29a0c2608a479ec1">mul()</a> instead, as it avoids the copying of the resulting polynomial off the stack.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>p</em> </td><td>a polynomial. </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>q</em> </td><td>another polynomial. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The product <img class="formulaInl" alt="$r=pq$" src="form_19.png"></dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00101.html#g8e86f42915089a8d20b048f38adaa283">mul(Polynomial<T> & r, const Polynomial<T>& p, const Polynomial<T>& q)</a><br> <a class="el" href="a00090.html#9c6951d37215e36ec4d171d26f90f487">Polynomial::operator*=</a> (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& p) </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00530">530</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="b6cb5632c793b07705ce488ac0fab8eb"></a><!-- doxytag: member="Polynomial::operator+" ref="b6cb5632c793b07705ce488ac0fab8eb" args="(const Polynomial< T > &p, const Polynomial< T > &q)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="mdPrefix" colspan="4">template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"><a class="el" href="a00090.html">Polynomial</a><T> operator+ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>q</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>out-of-place polynomial addition.<p>Performs the addition <img class="formulaInl" alt="$r=p+q$" src="form_4.png"> .<p>Calling directly the three parameters function <a class="el" href="a00101.html#g93873480bca596f74ff9b07f75c78103">add()</a> is actually more efficient, as it will avoid an unnecessary copy of the polynomial.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00090.html#6c43bbb2372812f10b97bb365f482a24">operator-</a> (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& p, const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& q)<br> Polynomial<T>::operator+= (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& p)<br> <a class="el" href="a00101.html#g93873480bca596f74ff9b07f75c78103">add(Polynomial<T>& r, const Polynomial<T>& p, const Polynomial<T>& q)</a> </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00489">489</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="6c43bbb2372812f10b97bb365f482a24"></a><!-- doxytag: member="Polynomial::operator-" ref="6c43bbb2372812f10b97bb365f482a24" args="(const Polynomial< T > &p, const Polynomial< T > &q)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="mdPrefix" colspan="4">template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"><a class="el" href="a00090.html">Polynomial</a><T> operator- </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>q</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>out-of-place polynomial substraction.<p>Performs the substraction <img class="formulaInl" alt="$r=p-q$" src="form_7.png"> .<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>p</em> </td><td>a polynomial. </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>q</em> </td><td>another polynomial. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The result <em>r</em> of the operation <img class="formulaInl" alt="$r=p-q$" src="form_7.png"> .</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00090.html#b6cb5632c793b07705ce488ac0fab8eb">operator+</a> (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& p, const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& q)<br> <a class="el" href="a00090.html#be51eb0dc8e4a3721479be4b11536da0">Polynomial::operator-=</a> (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& A)<br> <a class="el" href="a00101.html#g1fb458a7c3a7a5993ec815e6422236ed">add(Polynomial<T>& p, const Polynomial<T>& q)</a> </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00509">509</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="fedcfef27cf2f0a1f0075272a849b951"></a><!-- doxytag: member="Polynomial::operator/" ref="fedcfef27cf2f0a1f0075272a849b951" args="(const Polynomial< T > &p, const T &s)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="mdPrefix" colspan="4">template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"><a class="el" href="a00090.html">Polynomial</a><T> operator/ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a00090.html">Polynomial</a>< T > & </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const T & </td> <td class="mdname" nowrap> <em>s</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>out-of-place polynomial scaling.<p>Polynomial scaling, performs the operation <img class="formulaInl" alt="$r(x)=\frac{p(x)}{s}$" src="form_42.png"> .<p><dl compact><dt><b>Returns:</b></dt><dd>A constant reference to <code>this</code>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a00101.html#g4db05aa06bba6b0f29a0c2608a479ec1">mul(Polynomial<T>& r, const T& s, const Polynomial<T>& p)</a><br> Polynomial<T>::operator*= (const T& s)<br> <a class="el" href="a00090.html#11458f42a6275e6c384467ca5c398e95">operator/=</a> (const T& s) </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00566">566</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="a00107.html">Polynomial.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Mon Aug 21 21:57:25 2006 for The Polynomials Templates Library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -