⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a00087.html

📁 This library defines basic operation on polynomials, and contains also 3 different roots (zeroes)-fi
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    </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>&nbsp;</td><td valign="top"><em>p</em>&nbsp;</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="a00097.html#g8e86f42915089a8d20b048f38adaa283">mul(Polynomial&lt;T&gt; &amp; r, const Polynomial&lt;T&gt;&amp; p, const Polynomial&lt;T&gt;&amp; q)</a><br> <a class="el" href="a00087.html#cd642f1b8ab48b8b99394fffc24727d6">Polynomial::operator*</a> (const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; p, const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; q) </dd></dl><p>Definition at line <a class="el" href="a00103.html#l00420">420</a> of file <a class="el" href="a00103.html">Polynomial.h</a>.    </td>  </tr></table><a class="anchor" name="23b2b39cd96c44c49bb31c1229165119"></a><!-- doxytag: member="Polynomial::operator+=" ref="23b2b39cd96c44c49bb31c1229165119" args="(const Polynomial&lt; T &gt; &amp;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&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top">const <a class="el" href="a00087.html">Polynomial</a>&lt;T&gt;&amp; <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt;::operator+=           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt; &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>q</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td valign="top"><em>q</em>&nbsp;</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="a00087.html#b6cb5632c793b07705ce488ac0fab8eb">operator+</a> (const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; p, const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; q)<br> <a class="el" href="a00087.html#be51eb0dc8e4a3721479be4b11536da0">Polynomial::operator-=</a> (const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; A)<br> <a class="el" href="a00097.html#g1fb458a7c3a7a5993ec815e6422236ed">add(Polynomial&lt;T&gt;&amp; p, const Polynomial&lt;T&gt;&amp; q)</a> </dd></dl><p>Definition at line <a class="el" href="a00103.html#l00384">384</a> of file <a class="el" href="a00103.html">Polynomial.h</a>.    </td>  </tr></table><a class="anchor" name="be51eb0dc8e4a3721479be4b11536da0"></a><!-- doxytag: member="Polynomial::operator-=" ref="be51eb0dc8e4a3721479be4b11536da0" args="(const Polynomial&lt; T &gt; &amp;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&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top">const <a class="el" href="a00087.html">Polynomial</a>&lt;T&gt;&amp; <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt;::operator-=           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt; &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>q</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td valign="top"><em>q</em>&nbsp;</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="a00087.html#6c43bbb2372812f10b97bb365f482a24">operator-</a> (const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; p, const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; q)<br> <a class="el" href="a00087.html#23b2b39cd96c44c49bb31c1229165119">Polynomial::operator+=</a> (const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; A)<br> <a class="el" href="a00097.html#gc692b059e9ef90e831249a8f94043ee3">sub(Polynomial&lt;T&gt;&amp; p, const Polynomial&lt;T&gt;&amp; q)</a> </dd></dl><p>Definition at line <a class="el" href="a00103.html#l00402">402</a> of file <a class="el" href="a00103.html">Polynomial.h</a>.    </td>  </tr></table><a class="anchor" name="11458f42a6275e6c384467ca5c398e95"></a><!-- doxytag: member="Polynomial::operator/=" ref="11458f42a6275e6c384467ca5c398e95" args="(const T &amp;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&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"><a class="el" href="a00087.html">Polynomial</a>&lt;T&gt;&amp; <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt;::operator/=           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const T &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>s</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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="a00097.html#g4db05aa06bba6b0f29a0c2608a479ec1">mul(Polynomial&lt;T&gt;&amp; r, const T&amp; s, const Polynomial&lt;T&gt;&amp; p)</a><br> Polynomial&lt;T&gt;::operator*= (const T&amp; s)<br> <a class="el" href="a00087.html#fedcfef27cf2f0a1f0075272a849b951">operator/</a> (const <a class="el" href="a00087.html#7de9b11369dc2daf64bbc609b3454baa">Polynomial&lt;T&gt;</a>&amp; p, const T&amp; s) </dd></dl><p>Definition at line <a class="el" href="a00103.html#l00455">455</a> of file <a class="el" href="a00103.html">Polynomial.h</a>.    </td>  </tr></table><a class="anchor" name="326ef308fcad15d7d1f778bb3b8beb31"></a><!-- doxytag: member="Polynomial::operator=" ref="326ef308fcad15d7d1f778bb3b8beb31" args="(const std::vector&lt; T &gt; &amp;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&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top">const <a class="el" href="a00087.html">Polynomial</a>&lt;T&gt;&amp; <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt;::operator=           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::vector&lt; T &gt; &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>q</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td valign="top"><em>q</em>&nbsp;</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="a00103.html#l00366">366</a> of file <a class="el" href="a00103.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&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top">void <a class="el" href="a00087.html">Polynomial</a>&lt; T &gt;::shift           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>n</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td valign="top"><em>n</em>&nbsp;</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="a00103.html#l00217">217</a> of file <a class="el" href="a00103.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 &amp;s, const Polynomial&lt; T &gt; &amp;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&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"><a class="el" href="a00087.html">Polynomial</a>&lt;T&gt; operator *           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const T &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>s</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -