Documentation for af72fab013

This commit is contained in:
realstealthninja
2024-08-31 00:44:14 +00:00
parent 1fc5a79d4f
commit 41be012ea2
88 changed files with 1144 additions and 1691 deletions

View File

@@ -106,6 +106,7 @@ $(function(){initNavTree('d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../de/d1e/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">math::ncr_modulo_p::NCRModuloP Class Reference</div></div>
@@ -117,35 +118,39 @@ $(function(){initNavTree('d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.
<div class="dynheader">
Collaboration diagram for math::ncr_modulo_p::NCRModuloP:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../db/d66/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p__coll__graph.svg" width="164" height="230"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../db/d66/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p__coll__graph.svg" width="158" height="230"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af3d41271912f9fa50b774c96c51874b9" id="r_af3d41271912f9fa50b774c96c51874b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af3d41271912f9fa50b774c96c51874b9">NCRModuloP</a> (const uint64_t &amp;size, const uint64_t &amp;mod)</td></tr>
<tr class="memdesc:af3d41271912f9fa50b774c96c51874b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">the p from (nCr % p) <br /></td></tr>
<tr class="separator:af3d41271912f9fa50b774c96c51874b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afde201f4687740454302c444f507a926" id="r_afde201f4687740454302c444f507a926"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afde201f4687740454302c444f507a926">gcdExtended</a> (const uint64_t &amp;a, const uint64_t &amp;b, int64_t *x, int64_t *y)</td></tr>
<tr class="separator:afde201f4687740454302c444f507a926"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0431ec5c876e1154d8e1e5f89e1ab34a" id="r_a0431ec5c876e1154d8e1e5f89e1ab34a"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0431ec5c876e1154d8e1e5f89e1ab34a">modInverse</a> (const uint64_t &amp;a, const uint64_t &amp;m)</td></tr>
<tr class="separator:a0431ec5c876e1154d8e1e5f89e1ab34a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b95277f5f527beacc8d0f3bc91fcd08" id="r_a6b95277f5f527beacc8d0f3bc91fcd08"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6b95277f5f527beacc8d0f3bc91fcd08">ncr</a> (const uint64_t &amp;n, const uint64_t &amp;r, const uint64_t &amp;<a class="el" href="#a57c168cd6eb85718eab97da658a698ad">p</a>)</td></tr>
<tr class="separator:a6b95277f5f527beacc8d0f3bc91fcd08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94b07e7dc61d8d7a1e9c5a28988e72f9" id="r_a94b07e7dc61d8d7a1e9c5a28988e72f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a94b07e7dc61d8d7a1e9c5a28988e72f9">NCRModuloP</a> (const int64_t &amp;size, const int64_t &amp;p)</td></tr>
<tr class="memdesc:a94b07e7dc61d8d7a1e9c5a28988e72f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructs an <a class="el" href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html" title="Class which contains all methods required for calculating nCr mod p.">NCRModuloP</a> object allowing to compute (nCr)p for inputs from 0 to size <br /></td></tr>
<tr class="separator:a94b07e7dc61d8d7a1e9c5a28988e72f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a499df7a01bcd348345dc5a0ab79bb0e9" id="r_a499df7a01bcd348345dc5a0ab79bb0e9"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a499df7a01bcd348345dc5a0ab79bb0e9">ncr</a> (const int64_t &amp;n, const int64_t &amp;r) const</td></tr>
<tr class="memdesc:a499df7a01bcd348345dc5a0ab79bb0e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">computes nCr % p <br /></td></tr>
<tr class="separator:a499df7a01bcd348345dc5a0ab79bb0e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-static-methods" name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:ab5744fa589f6a48f9fe7bca13dbe661f" id="r_ab5744fa589f6a48f9fe7bca13dbe661f"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int64_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab5744fa589f6a48f9fe7bca13dbe661f">computeFactorialsMod</a> (const int64_t &amp;max_arg_val, const int64_t &amp;mod)</td></tr>
<tr class="memdesc:ab5744fa589f6a48f9fe7bca13dbe661f"><td class="mdescLeft">&#160;</td><td class="mdescRight">stores precomputed factorial(i) % p value <br /></td></tr>
<tr class="separator:ab5744fa589f6a48f9fe7bca13dbe661f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:aed5b4a9e4fd57fe23812293d4a0f30c1" id="r_aed5b4a9e4fd57fe23812293d4a0f30c1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; uint64_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aed5b4a9e4fd57fe23812293d4a0f30c1">fac</a> {}</td></tr>
<tr class="separator:aed5b4a9e4fd57fe23812293d4a0f30c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57c168cd6eb85718eab97da658a698ad" id="r_a57c168cd6eb85718eab97da658a698ad"><td class="memItemLeft" align="right" valign="top"><a id="a57c168cd6eb85718eab97da658a698ad" name="a57c168cd6eb85718eab97da658a698ad"></a>
uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>p</b> = 0</td></tr>
<tr class="memdesc:a57c168cd6eb85718eab97da658a698ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">stores precomputed factorial(i) % p value <br /></td></tr>
<tr class="separator:a57c168cd6eb85718eab97da658a698ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60df0311c9b2aafa8e91c4ee65b7e0e8" id="r_a60df0311c9b2aafa8e91c4ee65b7e0e8"><td class="memItemLeft" align="right" valign="top"><a id="a60df0311c9b2aafa8e91c4ee65b7e0e8" name="a60df0311c9b2aafa8e91c4ee65b7e0e8"></a>
const int64_t&#160;</td><td class="memItemRight" valign="bottom"><b>p</b> = 0</td></tr>
<tr class="separator:a60df0311c9b2aafa8e91c4ee65b7e0e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a738a5f59bb3560c81cdb7f43bcfe9fec" id="r_a738a5f59bb3560c81cdb7f43bcfe9fec"><td class="memItemLeft" align="right" valign="top"><a id="a738a5f59bb3560c81cdb7f43bcfe9fec" name="a738a5f59bb3560c81cdb7f43bcfe9fec"></a>
const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int64_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>fac</b></td></tr>
<tr class="memdesc:a738a5f59bb3560c81cdb7f43bcfe9fec"><td class="mdescLeft">&#160;</td><td class="mdescRight">the p from (nCr % p) <br /></td></tr>
<tr class="separator:a738a5f59bb3560c81cdb7f43bcfe9fec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class which contains all methods required for calculating nCr mod p. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af3d41271912f9fa50b774c96c51874b9" name="af3d41271912f9fa50b774c96c51874b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3d41271912f9fa50b774c96c51874b9">&#9670;&#160;</a></span>NCRModuloP()</h2>
<a id="a94b07e7dc61d8d7a1e9c5a28988e72f9" name="a94b07e7dc61d8d7a1e9c5a28988e72f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94b07e7dc61d8d7a1e9c5a28988e72f9">&#9670;&#160;</a></span>NCRModuloP()</h2>
<div class="memitem">
<div class="memproto">
@@ -156,12 +161,12 @@ uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>p</b> = 0</td></t
<tr>
<td class="memname">math::ncr_modulo_p::NCRModuloP::NCRModuloP </td>
<td>(</td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
<td class="paramtype">const int64_t &amp;</td> <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>mod</em></span>&#160;)</td>
<td class="paramtype">const int64_t &amp;</td> <td class="paramname"><span class="paramname"><em>p</em></span>&#160;)</td>
</tr>
</table>
</td>
@@ -171,24 +176,16 @@ uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>p</b> = 0</td></t
</table>
</div><div class="memdoc">
<p>the p from (nCr % p) </p>
<p>Constructor which precomputes the values of n! % mod from n=0 to size and stores them in vector 'fac' @params[in] the numbers 'size', 'mod' </p>
<div class="fragment"><div class="line"><span class="lineno"> 41</span> {</div>
<div class="line"><span class="lineno"> 42</span> <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a> = mod;</div>
<div class="line"><span class="lineno"> 43</span> fac = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;uint64_t&gt;</a>(size);</div>
<div class="line"><span class="lineno"> 44</span> fac[0] = 1;</div>
<div class="line"><span class="lineno"> 45</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 1; i &lt;= size; i++) {</div>
<div class="line"><span class="lineno"> 46</span> fac[i] = (fac[i - 1] * i) % <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a>;</div>
<div class="line"><span class="lineno"> 47</span> }</div>
<div class="line"><span class="lineno"> 48</span> }</div>
<div class="ttc" id="aclassmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_html_a57c168cd6eb85718eab97da658a698ad"><div class="ttname"><a href="#a57c168cd6eb85718eab97da658a698ad">math::ncr_modulo_p::NCRModuloP::p</a></div><div class="ttdeci">uint64_t p</div><div class="ttdoc">stores precomputed factorial(i) % p value</div><div class="ttdef"><b>Definition</b> ncr_modulo_p.cpp:34</div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
<p>constructs an <a class="el" href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html" title="Class which contains all methods required for calculating nCr mod p.">NCRModuloP</a> object allowing to compute (nCr)p for inputs from 0 to size </p>
<div class="fragment"><div class="line"><span class="lineno"> 108</span> : p(p), <a class="code hl_variable" href="#a738a5f59bb3560c81cdb7f43bcfe9fec">fac</a>(<a class="code hl_function" href="#ab5744fa589f6a48f9fe7bca13dbe661f">computeFactorialsMod</a>(size, p)) {}</div>
<div class="ttc" id="aclassmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_html_a738a5f59bb3560c81cdb7f43bcfe9fec"><div class="ttname"><a href="#a738a5f59bb3560c81cdb7f43bcfe9fec">math::ncr_modulo_p::NCRModuloP::fac</a></div><div class="ttdeci">const std::vector&lt; int64_t &gt; fac</div><div class="ttdoc">the p from (nCr % p)</div><div class="ttdef"><b>Definition</b> ncr_modulo_p.cpp:83</div></div>
<div class="ttc" id="aclassmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_html_ab5744fa589f6a48f9fe7bca13dbe661f"><div class="ttname"><a href="#ab5744fa589f6a48f9fe7bca13dbe661f">math::ncr_modulo_p::NCRModuloP::computeFactorialsMod</a></div><div class="ttdeci">static std::vector&lt; int64_t &gt; computeFactorialsMod(const int64_t &amp;max_arg_val, const int64_t &amp;mod)</div><div class="ttdoc">stores precomputed factorial(i) % p value</div><div class="ttdef"><b>Definition</b> ncr_modulo_p.cpp:92</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="afde201f4687740454302c444f507a926" name="afde201f4687740454302c444f507a926"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afde201f4687740454302c444f507a926">&#9670;&#160;</a></span>gcdExtended()</h2>
<a id="ab5744fa589f6a48f9fe7bca13dbe661f" name="ab5744fa589f6a48f9fe7bca13dbe661f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5744fa589f6a48f9fe7bca13dbe661f">&#9670;&#160;</a></span>computeFactorialsMod()</h2>
<div class="memitem">
<div class="memproto">
@@ -197,106 +194,46 @@ uint64_t&#160;</td><td class="memItemRight" valign="bottom"><b>p</b> = 0</td></t
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint64_t math::ncr_modulo_p::NCRModuloP::gcdExtended </td>
<td class="memname">static <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int64_t &gt; math::ncr_modulo_p::NCRModuloP::computeFactorialsMod </td>
<td>(</td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>a</em></span>, </td>
<td class="paramtype">const int64_t &amp;</td> <td class="paramname"><span class="paramname"><em>max_arg_val</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>b</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t *</td> <td class="paramname"><span class="paramname"><em>x</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t *</td> <td class="paramname"><span class="paramname"><em>y</em></span>&#160;)</td>
<td class="paramtype">const int64_t &amp;</td> <td class="paramname"><span class="paramname"><em>mod</em></span>&#160;)</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the value of x, y such that a*x + b*y = gcd(a,b)</p>
<p>@params[in] the numbers 'a', 'b' and address of 'x' and 'y' from above equation </p><dl class="section return"><dt>Returns</dt><dd>the gcd of a and b </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 57</span> {</div>
<div class="line"><span class="lineno"> 58</span> <span class="keywordflow">if</span> (a == 0) {</div>
<div class="line"><span class="lineno"> 59</span> *x = 0, *y = 1;</div>
<div class="line"><span class="lineno"> 60</span> <span class="keywordflow">return</span> b;</div>
<div class="line"><span class="lineno"> 61</span> }</div>
<div class="line"><span class="lineno"> 62</span> </div>
<div class="line"><span class="lineno"> 63</span> int64_t x1 = 0, y1 = 0;</div>
<div class="line"><span class="lineno"> 64</span> uint64_t <a class="code hl_function" href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e">gcd</a> = <a class="code hl_function" href="#afde201f4687740454302c444f507a926">gcdExtended</a>(b % a, a, &amp;x1, &amp;y1);</div>
<div class="line"><span class="lineno"> 65</span> </div>
<div class="line"><span class="lineno"> 66</span> *x = y1 - (b / a) * x1;</div>
<div class="line"><span class="lineno"> 67</span> *y = x1;</div>
<div class="line"><span class="lineno"> 68</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e">gcd</a>;</div>
<div class="line"><span class="lineno"> 69</span> }</div>
<div class="ttc" id="aclassmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_html_afde201f4687740454302c444f507a926"><div class="ttname"><a href="#afde201f4687740454302c444f507a926">math::ncr_modulo_p::NCRModuloP::gcdExtended</a></div><div class="ttdeci">uint64_t gcdExtended(const uint64_t &amp;a, const uint64_t &amp;b, int64_t *x, int64_t *y)</div><div class="ttdef"><b>Definition</b> ncr_modulo_p.cpp:56</div></div>
<div class="ttc" id="agcd__iterative__euclidean_8cpp_html_ae48807fa2b7000afae599e67f327545e"><div class="ttname"><a href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e">gcd</a></div><div class="ttdeci">int gcd(int num1, int num2)</div><div class="ttdef"><b>Definition</b> gcd_iterative_euclidean.cpp:15</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_afde201f4687740454302c444f507a926_cgraph.svg" width="296" height="76"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<p>stores precomputed factorial(i) % p value </p>
<p>computes the array of values of factorials reduced modulo mod </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">max_arg_val</td><td>argument of the last factorial stored in the result </td></tr>
<tr><td class="paramname">mod</td><td>value of the divisor used to reduce factorials </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>vector storing factorials of the numbers 0, ..., max_arg_val reduced modulo mod </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 93</span> {</div>
<div class="line"><span class="lineno"> 94</span> <span class="keyword">auto</span> res = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;int64_t&gt;</a>(max_arg_val + 1);</div>
<div class="line"><span class="lineno"> 95</span> res[0] = 1;</div>
<div class="line"><span class="lineno"> 96</span> <span class="keywordflow">for</span> (int64_t i = 1; i &lt;= max_arg_val; i++) {</div>
<div class="line"><span class="lineno"> 97</span> res[i] = (res[i - 1] * i) % mod;</div>
<div class="line"><span class="lineno"> 98</span> }</div>
<div class="line"><span class="lineno"> 99</span> <span class="keywordflow">return</span> res;</div>
<div class="line"><span class="lineno"> 100</span> }</div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0431ec5c876e1154d8e1e5f89e1ab34a" name="a0431ec5c876e1154d8e1e5f89e1ab34a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0431ec5c876e1154d8e1e5f89e1ab34a">&#9670;&#160;</a></span>modInverse()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int64_t math::ncr_modulo_p::NCRModuloP::modInverse </td>
<td>(</td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>a</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>m</em></span>&#160;)</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Find modular inverse of a with m i.e. a number x such that (a*x)m = 1</p>
<p>@params[in] the numbers 'a' and 'm' from above equation </p><dl class="section return"><dt>Returns</dt><dd>the modular inverse of a </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 76</span> {</div>
<div class="line"><span class="lineno"> 77</span> int64_t x = 0, y = 0;</div>
<div class="line"><span class="lineno"> 78</span> uint64_t <a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a2f67508d5f392b0321772169342c98ad">g</a> = <a class="code hl_function" href="#afde201f4687740454302c444f507a926">gcdExtended</a>(a, m, &amp;x, &amp;y);</div>
<div class="line"><span class="lineno"> 79</span> <span class="keywordflow">if</span> (g != 1) { <span class="comment">// modular inverse doesn&#39;t exist</span></div>
<div class="line"><span class="lineno"> 80</span> <span class="keywordflow">return</span> -1;</div>
<div class="line"><span class="lineno"> 81</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><span class="lineno"> 82</span> int64_t res = ((x + m) % m);</div>
<div class="line"><span class="lineno"> 83</span> <span class="keywordflow">return</span> res;</div>
<div class="line"><span class="lineno"> 84</span> }</div>
<div class="line"><span class="lineno"> 85</span> }</div>
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a2f67508d5f392b0321772169342c98ad"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a2f67508d5f392b0321772169342c98ad">numerical_methods::simpson_method::g</a></div><div class="ttdeci">double g(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition</b> composite_simpson_rule.cpp:115</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_a0431ec5c876e1154d8e1e5f89e1ab34a_cgraph.svg" width="530" height="76"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a6b95277f5f527beacc8d0f3bc91fcd08" name="a6b95277f5f527beacc8d0f3bc91fcd08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b95277f5f527beacc8d0f3bc91fcd08">&#9670;&#160;</a></span>ncr()</h2>
<a id="a499df7a01bcd348345dc5a0ab79bb0e9" name="a499df7a01bcd348345dc5a0ab79bb0e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a499df7a01bcd348345dc5a0ab79bb0e9">&#9670;&#160;</a></span>ncr()</h2>
<div class="memitem">
<div class="memproto">
@@ -307,17 +244,12 @@ Here is the call graph for this function:</div>
<tr>
<td class="memname">int64_t math::ncr_modulo_p::NCRModuloP::ncr </td>
<td>(</td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
<td class="paramtype">const int64_t &amp;</td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>r</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64_t &amp;</td> <td class="paramname"><span class="paramname"><em>p</em></span>&#160;)</td>
<td class="paramtype">const int64_t &amp;</td> <td class="paramname"><span class="paramname"><em>r</em></span>&#160;) const</td>
</tr>
</table>
</td>
@@ -326,60 +258,35 @@ Here is the call graph for this function:</div>
</tr>
</table>
</div><div class="memdoc">
<p>Find nCr % p</p>
<p>@params[in] the numbers 'n', 'r' and 'p' </p><dl class="section return"><dt>Returns</dt><dd>the value nCr % p </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 92</span> {</div>
<div class="line"><span class="lineno"> 93</span> <span class="comment">// Base cases</span></div>
<div class="line"><span class="lineno"> 94</span> <span class="keywordflow">if</span> (r &gt; n) {</div>
<div class="line"><span class="lineno"> 95</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 96</span> }</div>
<div class="line"><span class="lineno"> 97</span> <span class="keywordflow">if</span> (r == 1) {</div>
<div class="line"><span class="lineno"> 98</span> <span class="keywordflow">return</span> n % <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a>;</div>
<div class="line"><span class="lineno"> 99</span> }</div>
<div class="line"><span class="lineno"> 100</span> <span class="keywordflow">if</span> (r == 0 || r == n) {</div>
<div class="line"><span class="lineno"> 101</span> <span class="keywordflow">return</span> 1;</div>
<div class="line"><span class="lineno"> 102</span> }</div>
<div class="line"><span class="lineno"> 103</span> <span class="comment">// fac is a global array with fac[r] = (r! % p)</span></div>
<div class="line"><span class="lineno"> 104</span> int64_t denominator = <a class="code hl_function" href="#a0431ec5c876e1154d8e1e5f89e1ab34a">modInverse</a>(fac[r], <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a>);</div>
<div class="line"><span class="lineno"> 105</span> <span class="keywordflow">if</span> (denominator &lt; 0) { <span class="comment">// modular inverse doesn&#39;t exist</span></div>
<div class="line"><span class="lineno"> 106</span> <span class="keywordflow">return</span> -1;</div>
<div class="line"><span class="lineno"> 107</span> }</div>
<div class="line"><span class="lineno"> 108</span> denominator = (denominator * <a class="code hl_function" href="#a0431ec5c876e1154d8e1e5f89e1ab34a">modInverse</a>(fac[n - r], <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a>)) % <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a>;</div>
<div class="line"><span class="lineno"> 109</span> <span class="keywordflow">if</span> (denominator &lt; 0) { <span class="comment">// modular inverse doesn&#39;t exist</span></div>
<div class="line"><span class="lineno"> 110</span> <span class="keywordflow">return</span> -1;</div>
<div class="line"><span class="lineno"> 111</span> }</div>
<div class="line"><span class="lineno"> 112</span> <span class="keywordflow">return</span> (fac[n] * denominator) % <a class="code hl_variable" href="#a57c168cd6eb85718eab97da658a698ad">p</a>;</div>
<div class="line"><span class="lineno"> 113</span> }</div>
<div class="ttc" id="aclassmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_html_a0431ec5c876e1154d8e1e5f89e1ab34a"><div class="ttname"><a href="#a0431ec5c876e1154d8e1e5f89e1ab34a">math::ncr_modulo_p::NCRModuloP::modInverse</a></div><div class="ttdeci">int64_t modInverse(const uint64_t &amp;a, const uint64_t &amp;m)</div><div class="ttdef"><b>Definition</b> ncr_modulo_p.cpp:76</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_a6b95277f5f527beacc8d0f3bc91fcd08_cgraph.svg" width="100%" height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
</div>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aed5b4a9e4fd57fe23812293d4a0f30c1" name="aed5b4a9e4fd57fe23812293d4a0f30c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed5b4a9e4fd57fe23812293d4a0f30c1">&#9670;&#160;</a></span>fac</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;uint64_t&gt; math::ncr_modulo_p::NCRModuloP::fac {}</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 33</span>{}; <span class="comment">/// stores precomputed factorial(i) % p value</span></div>
<p>computes nCr % p </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>the number of objects to be chosen </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">r</td><td>the number of objects to choose from </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the value nCr % p </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 116</span> {</div>
<div class="line"><span class="lineno"> 117</span> <span class="comment">// Base cases</span></div>
<div class="line"><span class="lineno"> 118</span> <span class="keywordflow">if</span> (r &gt; n) {</div>
<div class="line"><span class="lineno"> 119</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 120</span> }</div>
<div class="line"><span class="lineno"> 121</span> <span class="keywordflow">if</span> (r == 1) {</div>
<div class="line"><span class="lineno"> 122</span> <span class="keywordflow">return</span> n % p;</div>
<div class="line"><span class="lineno"> 123</span> }</div>
<div class="line"><span class="lineno"> 124</span> <span class="keywordflow">if</span> (r == 0 || r == n) {</div>
<div class="line"><span class="lineno"> 125</span> <span class="keywordflow">return</span> 1;</div>
<div class="line"><span class="lineno"> 126</span> }</div>
<div class="line"><span class="lineno"> 127</span> <span class="comment">// fac is a global array with fac[r] = (r! % p)</span></div>
<div class="line"><span class="lineno"> 128</span> <span class="keyword">const</span> <span class="keyword">auto</span> denominator = (<a class="code hl_variable" href="#a738a5f59bb3560c81cdb7f43bcfe9fec">fac</a>[r] * <a class="code hl_variable" href="#a738a5f59bb3560c81cdb7f43bcfe9fec">fac</a>[n - r]) % p;</div>
<div class="line"><span class="lineno"> 129</span> <span class="keyword">const</span> <span class="keyword">auto</span> denominator_inv = utils::modInverse(denominator, p);</div>
<div class="line"><span class="lineno"> 130</span> <span class="keywordflow">if</span> (denominator_inv &lt; 0) { <span class="comment">// modular inverse doesn&#39;t exist</span></div>
<div class="line"><span class="lineno"> 131</span> <span class="keywordflow">return</span> -1;</div>
<div class="line"><span class="lineno"> 132</span> }</div>
<div class="line"><span class="lineno"> 133</span> <span class="keywordflow">return</span> (<a class="code hl_variable" href="#a738a5f59bb3560c81cdb7f43bcfe9fec">fac</a>[n] * denominator_inv) % p;</div>
<div class="line"><span class="lineno"> 134</span> }</div>
</div><!-- fragment -->
</div>
</div>

View File

@@ -1,8 +1,7 @@
var classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p =
[
[ "NCRModuloP", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#af3d41271912f9fa50b774c96c51874b9", null ],
[ "gcdExtended", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926", null ],
[ "modInverse", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a0431ec5c876e1154d8e1e5f89e1ab34a", null ],
[ "ncr", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a6b95277f5f527beacc8d0f3bc91fcd08", null ],
[ "p", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a57c168cd6eb85718eab97da658a698ad", null ]
[ "NCRModuloP", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a94b07e7dc61d8d7a1e9c5a28988e72f9", null ],
[ "computeFactorialsMod", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#ab5744fa589f6a48f9fe7bca13dbe661f", null ],
[ "ncr", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a499df7a01bcd348345dc5a0ab79bb0e9", null ],
[ "fac", "d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a738a5f59bb3560c81cdb7f43bcfe9fec", null ]
];

View File

@@ -1,8 +0,0 @@
<map id="math::ncr_modulo_p::NCRModuloP::modInverse" name="math::ncr_modulo_p::NCRModuloP::modInverse">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,29,192,70"/>
<area shape="rect" id="Node000002" href="$d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926" title=" " alt="" coords="240,29,434,70"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="192,47,224,47,224,52,192,52"/>
<area shape="poly" id="edge3_Node000002_Node000002" title=" " alt="" coords="305,29,303,19,308,11,320,5,337,3,355,5,366,11,363,16,353,10,337,8,321,10,312,14,308,20,310,28"/>
<area shape="rect" id="Node000003" href="$d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" title=" " alt="" coords="482,37,524,62"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="434,47,466,47,466,52,434,52"/>
</map>

View File

@@ -1,94 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.0 (20240811.2233)
-->
<!-- Title: math::ncr_modulo_p::NCRModuloP::modInverse Pages: 1 -->
<svg width="397pt" height="57pt"
viewBox="0.00 0.00 397.25 56.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 52.5)">
<title>math::ncr_modulo_p::NCRModuloP::modInverse</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="139.75,-30.5 0,-30.5 0,0 139.75,0 139.75,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="69.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::modInverse</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="321.5,-30.5 175.75,-30.5 175.75,0 321.5,0 321.5,-30.5"/>
<text text-anchor="start" x="183.75" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="248.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::gcdExtended</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M140.22,-15.25C147.96,-15.25 155.89,-15.25 163.78,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.76,-18.75 173.76,-15.25 163.76,-11.75 163.76,-18.75"/>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node2 -->
<g id="edge3_Node000002_Node000002" class="edge">
<title>Node2&#45;&gt;Node2</title>
<g id="a_edge3_Node000002_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M226.52,-30.99C222.01,-40.06 229.38,-48.5 248.62,-48.5 259.15,-48.5 266.13,-45.97 269.55,-42.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="273,-42.8 270.57,-32.49 266.04,-42.07 273,-42.8"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="389.25,-24.88 357.5,-24.88 357.5,-5.63 389.25,-5.63 389.25,-24.88"/>
<text text-anchor="middle" x="373.38" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">gcd</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M321.74,-15.25C330.19,-15.25 338.37,-15.25 345.59,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="345.56,-18.75 355.56,-15.25 345.56,-11.75 345.56,-18.75"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -1,68 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.0 (20240811.2233)
-->
<!-- Title: math::ncr_modulo_p::NCRModuloP::modInverse Pages: 1 -->
<svg width="397pt" height="57pt"
viewBox="0.00 0.00 397.25 56.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 52.5)">
<title>math::ncr_modulo_p::NCRModuloP::modInverse</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="139.75,-30.5 0,-30.5 0,0 139.75,0 139.75,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="69.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::modInverse</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="321.5,-30.5 175.75,-30.5 175.75,0 321.5,0 321.5,-30.5"/>
<text text-anchor="start" x="183.75" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="248.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::gcdExtended</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M140.22,-15.25C147.96,-15.25 155.89,-15.25 163.78,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.76,-18.75 173.76,-15.25 163.76,-11.75 163.76,-18.75"/>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node2 -->
<g id="edge3_Node000002_Node000002" class="edge">
<title>Node2&#45;&gt;Node2</title>
<g id="a_edge3_Node000002_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M226.52,-30.99C222.01,-40.06 229.38,-48.5 248.62,-48.5 259.15,-48.5 266.13,-45.97 269.55,-42.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="273,-42.8 270.57,-32.49 266.04,-42.07 273,-42.8"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="389.25,-24.88 357.5,-24.88 357.5,-5.63 389.25,-5.63 389.25,-24.88"/>
<text text-anchor="middle" x="373.38" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">gcd</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M321.74,-15.25C330.19,-15.25 338.37,-15.25 345.59,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="345.56,-18.75 355.56,-15.25 345.56,-11.75 345.56,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -1,10 +0,0 @@
<map id="math::ncr_modulo_p::NCRModuloP::ncr" name="math::ncr_modulo_p::NCRModuloP::ncr">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,29,145,70"/>
<area shape="rect" id="Node000002" href="$d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a0431ec5c876e1154d8e1e5f89e1ab34a" title=" " alt="" coords="193,29,379,70"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="145,47,177,47,177,52,145,52"/>
<area shape="rect" id="Node000003" href="$d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926" title=" " alt="" coords="427,29,621,70"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="380,47,411,47,411,52,380,52"/>
<area shape="poly" id="edge4_Node000003_Node000003" title=" " alt="" coords="492,29,491,19,496,11,507,5,524,3,543,5,553,11,551,16,541,10,524,8,509,10,499,14,496,20,497,28"/>
<area shape="rect" id="Node000004" href="$d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" title=" " alt="" coords="669,37,712,62"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="622,47,653,47,653,52,622,52"/>
</map>

View File

@@ -1,170 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.0 (20240811.2233)
-->
<!-- Title: math::ncr_modulo_p::NCRModuloP::ncr Pages: 1 -->
<!--zoomable 57 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="arrowUp" transform="translate(30 24)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
</g>
</defs>
<script type="application/ecmascript">
var viewWidth = 538;
var viewHeight = 57;
var sectionId = 'dynsection-3';
</script>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>math::ncr_modulo_p::NCRModuloP::ncr</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="104.5,-30.5 0,-30.5 0,0 104.5,0 104.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="52.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::ncr</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a0431ec5c876e1154d8e1e5f89e1ab34a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="280.25,-30.5 140.5,-30.5 140.5,0 280.25,0 280.25,-30.5"/>
<text text-anchor="start" x="148.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="210.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::modInverse</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M104.8,-15.25C112.47,-15.25 120.52,-15.25 128.62,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="128.53,-18.75 138.53,-15.25 128.53,-11.75 128.53,-18.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="462,-30.5 316.25,-30.5 316.25,0 462,0 462,-30.5"/>
<text text-anchor="start" x="324.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="389.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::gcdExtended</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M280.72,-15.25C288.46,-15.25 296.39,-15.25 304.28,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="304.26,-18.75 314.26,-15.25 304.26,-11.75 304.26,-18.75"/>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node3 -->
<g id="edge4_Node000003_Node000003" class="edge">
<title>Node3&#45;&gt;Node3</title>
<g id="a_edge4_Node000003_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M367.02,-30.99C362.51,-40.06 369.88,-48.5 389.12,-48.5 399.65,-48.5 406.63,-45.97 410.05,-42.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="413.5,-42.8 411.07,-32.49 406.54,-42.07 413.5,-42.8"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="529.75,-24.88 498,-24.88 498,-5.63 529.75,-5.63 529.75,-24.88"/>
<text text-anchor="middle" x="513.88" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">gcd</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M462.24,-15.25C470.69,-15.25 478.87,-15.25 486.09,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="486.06,-18.75 496.06,-15.25 486.06,-11.75 486.06,-18.75"/>
</a>
</g>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p_a6b95277f5f527beacc8d0f3bc91fcd08_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

Before

Width:  |  Height:  |  Size: 8.1 KiB

View File

@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.0 (20240811.2233)
-->
<!-- Title: math::ncr_modulo_p::NCRModuloP::ncr Pages: 1 -->
<svg width="538pt" height="57pt"
viewBox="0.00 0.00 537.75 56.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 52.5)">
<title>math::ncr_modulo_p::NCRModuloP::ncr</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="104.5,-30.5 0,-30.5 0,0 104.5,0 104.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="52.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::ncr</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#a0431ec5c876e1154d8e1e5f89e1ab34a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="280.25,-30.5 140.5,-30.5 140.5,0 280.25,0 280.25,-30.5"/>
<text text-anchor="start" x="148.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="210.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::modInverse</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M104.8,-15.25C112.47,-15.25 120.52,-15.25 128.62,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="128.53,-18.75 138.53,-15.25 128.53,-11.75 128.53,-18.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html#afde201f4687740454302c444f507a926" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="462,-30.5 316.25,-30.5 316.25,0 462,0 462,-30.5"/>
<text text-anchor="start" x="324.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="389.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::gcdExtended</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M280.72,-15.25C288.46,-15.25 296.39,-15.25 304.28,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="304.26,-18.75 314.26,-15.25 304.26,-11.75 304.26,-18.75"/>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node3 -->
<g id="edge4_Node000003_Node000003" class="edge">
<title>Node3&#45;&gt;Node3</title>
<g id="a_edge4_Node000003_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M367.02,-30.99C362.51,-40.06 369.88,-48.5 389.12,-48.5 399.65,-48.5 406.63,-45.97 410.05,-42.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="413.5,-42.8 411.07,-32.49 406.54,-42.07 413.5,-42.8"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="529.75,-24.88 498,-24.88 498,-5.63 529.75,-5.63 529.75,-24.88"/>
<text text-anchor="middle" x="513.88" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">gcd</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M462.24,-15.25C470.69,-15.25 478.87,-15.25 486.09,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="486.06,-18.75 496.06,-15.25 486.06,-11.75 486.06,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,6 +0,0 @@
<map id="math::ncr_modulo_p::NCRModuloP::gcdExtended" name="math::ncr_modulo_p::NCRModuloP::gcdExtended">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,29,200,70"/>
<area shape="poly" id="edge2_Node000001_Node000001" title=" " alt="" coords="70,29,69,19,74,11,85,5,103,3,121,5,132,11,129,16,119,10,102,8,87,10,78,14,74,20,76,28"/>
<area shape="rect" id="Node000002" href="$d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" title=" " alt="" coords="248,37,290,62"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="200,47,232,47,232,52,200,52"/>
</map>

View File

@@ -1,75 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.0 (20240811.2233)
-->
<!-- Title: math::ncr_modulo_p::NCRModuloP::gcdExtended Pages: 1 -->
<svg width="222pt" height="57pt"
viewBox="0.00 0.00 221.50 56.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 52.5)">
<title>math::ncr_modulo_p::NCRModuloP::gcdExtended</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="145.75,-30.5 0,-30.5 0,0 145.75,0 145.75,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="72.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::gcdExtended</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge2_Node000001_Node000001" class="edge">
<title>Node1&#45;&gt;Node1</title>
<g id="a_edge2_Node000001_Node000001"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M50.77,-30.99C46.26,-40.06 53.63,-48.5 72.88,-48.5 83.4,-48.5 90.38,-45.97 93.8,-42.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="97.25,-42.8 94.82,-32.49 90.29,-42.07 97.25,-42.8"/>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="213.5,-24.88 181.75,-24.88 181.75,-5.63 213.5,-5.63 213.5,-24.88"/>
<text text-anchor="middle" x="197.62" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">gcd</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M145.99,-15.25C154.44,-15.25 162.62,-15.25 169.84,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.81,-18.75 179.81,-15.25 169.81,-11.75 169.81,-18.75"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.0 (20240811.2233)
-->
<!-- Title: math::ncr_modulo_p::NCRModuloP::gcdExtended Pages: 1 -->
<svg width="222pt" height="57pt"
viewBox="0.00 0.00 221.50 56.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 52.5)">
<title>math::ncr_modulo_p::NCRModuloP::gcdExtended</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="145.75,-30.5 0,-30.5 0,0 145.75,0 145.75,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">math::ncr_modulo_p</text>
<text text-anchor="middle" x="72.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::NCRModuloP::gcdExtended</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge2_Node000001_Node000001" class="edge">
<title>Node1&#45;&gt;Node1</title>
<g id="a_edge2_Node000001_Node000001"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M50.77,-30.99C46.26,-40.06 53.63,-48.5 72.88,-48.5 83.4,-48.5 90.38,-45.97 93.8,-42.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="97.25,-42.8 94.82,-32.49 90.29,-42.07 97.25,-42.8"/>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d4/da0/gcd__iterative__euclidean_8cpp.html#ae48807fa2b7000afae599e67f327545e" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="213.5,-24.88 181.75,-24.88 181.75,-5.63 213.5,-5.63 213.5,-24.88"/>
<text text-anchor="middle" x="197.62" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">gcd</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M145.99,-15.25C154.44,-15.25 162.62,-15.25 169.84,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.81,-18.75 179.81,-15.25 169.81,-11.75 169.81,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB