📄 a00090.html
字号:
</td> <td><p>in-place polynomial multiply.<p>Multiplies two polynomials by convolution. Performs the operation <img class="formulaInl" alt="$p\leftarrow pq$" src="form_40.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 to multiply to <code>this</code> object. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A const reference to this.</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#cd642f1b8ab48b8b99394fffc24727d6">Polynomial::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) </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00433">433</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="23b2b39cd96c44c49bb31c1229165119"></a><!-- doxytag: member="Polynomial::operator+=" ref="23b2b39cd96c44c49bb31c1229165119" args="(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">const <a class="el" href="a00090.html">Polynomial</a><T>& <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="mdname1" valign="top" nowrap> <em>q</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>in-place polynomial addition.<p>Performs the addition <img class="formulaInl" alt="$r=p+q$" src="form_4.png"> , storing the result stored in <code>this</code>.<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>q</em> </td><td>a polynomial. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A const reference to <code>this</code>.</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#l00397">397</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="be51eb0dc8e4a3721479be4b11536da0"></a><!-- doxytag: member="Polynomial::operator-=" ref="be51eb0dc8e4a3721479be4b11536da0" args="(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">const <a class="el" href="a00090.html">Polynomial</a><T>& <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="mdname1" valign="top" nowrap> <em>q</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>in-place polynomial substraction. Performs the substraction <img class="formulaInl" alt="$r=p-q$" src="form_7.png"> and stores the resulting polynomial in <code>this</code>.<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>q</em> </td><td>a polynomial. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A const reference to <code>this</code>.</dd></dl><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> <a class="el" href="a00090.html#23b2b39cd96c44c49bb31c1229165119">Polynomial::operator+=</a> (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& A)<br> <a class="el" href="a00101.html#gc692b059e9ef90e831249a8f94043ee3">sub(Polynomial<T>& p, const Polynomial<T>& q)</a> </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00415">415</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="11458f42a6275e6c384467ca5c398e95"></a><!-- doxytag: member="Polynomial::operator/=" ref="11458f42a6275e6c384467ca5c398e95" args="(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>& <a class="el" href="a00090.html">Polynomial</a>< T >::operator/= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const T & </td> <td class="mdname1" valign="top" nowrap> <em>s</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>in-place polynomial scaling.<p>Polynomial scaling, performs the operation <img class="formulaInl" alt="$p(x)\leftarrow \frac{p(x)}{s}$" src="form_41.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#fedcfef27cf2f0a1f0075272a849b951">operator/</a> (const <a class="el" href="a00090.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial<T></a>& p, const T& s) </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00468">468</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="326ef308fcad15d7d1f778bb3b8beb31"></a><!-- doxytag: member="Polynomial::operator=" ref="326ef308fcad15d7d1f778bb3b8beb31" args="(const std::vector< 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">const <a class="el" href="a00090.html">Polynomial</a><T>& <a class="el" href="a00090.html">Polynomial</a>< T >::operator= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::vector< T > & </td> <td class="mdname1" valign="top" nowrap> <em>q</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>make a copy of a polynomial.<p>Make a copy of a polynomial.<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>q</em> </td><td>polynomial to copy.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A const reference on this object. </dd></dl><p>Definition at line <a class="el" href="a00107.html#l00379">379</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><a class="anchor" name="043f1f1821306fe3cc497ca3400fc703"></a><!-- doxytag: member="Polynomial::shift" ref="043f1f1821306fe3cc497ca3400fc703" args="(int n)" --><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">void <a class="el" href="a00090.html">Polynomial</a>< T >::shift </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>n</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>shifts the coeficients.<p>Shifts the polynomial coeficients left or right, effectively doing the operation <img class="formulaInl" alt="$q(x)=x^{n}p(x)$" src="form_37.png"> .<p>If <em>n</em> is negative, the remainder of the division <img class="formulaInl" alt="$\frac{p(x)}{x^{-n}}$" src="form_38.png"> is lost.<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>n</em> </td><td>power of multipler <img class="formulaInl" alt="$x^n$" src="form_39.png"> . </td></tr> </table></dl><p>Definition at line <a class="el" href="a00107.html#l00230">230</a> of file <a class="el" href="a00107.html">Polynomial.h</a>. </td> </tr></table><hr><h2>Friends And Related Function Documentation</h2><a class="anchor" name="955b65f7ae51e1a45bcf985c738640eb"></a><!-- doxytag: member="Polynomial::operator *" ref="955b65f7ae51e1a45bcf985c738640eb" args="(const T &s, const Polynomial< T > &p)" --><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 T & </td> <td class="mdname" nowrap> <em>s</em>, </td> </tr> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -