Documentation for 1d2c5d9d97

This commit is contained in:
github-actions
2023-03-29 20:32:01 +00:00
parent 17b91154dd
commit 3b549db3d6
58 changed files with 1550 additions and 603 deletions

View File

@@ -0,0 +1,296 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: math/eratosthenes.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d7/da6/eratosthenes_8cpp.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">eratosthenes.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p><a href="https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes" target="_blank">The Sieve of Eratosthenes</a>
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;chrono&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for eratosthenes.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d7/dd9/eratosthenes_8cpp__incl.svg" width="422" height="110"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:dd/d47/namespacemath"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html">math</a></td></tr>
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft">&#160;</td><td class="mdescRight">for IO operations <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a91366864111e1fac29722ca45e02ea8f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f">math::sieve</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; bool &gt; *vec)</td></tr>
<tr class="memdesc:a91366864111e1fac29722ca45e02ea8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs the sieve. <br /></td></tr>
<tr class="separator:a91366864111e1fac29722ca45e02ea8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad09d59850865012a6fd95d89954c82e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4">math::print_primes</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; bool &gt; const &amp;<a class="el" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>)</td></tr>
<tr class="memdesc:ad09d59850865012a6fd95d89954c82e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints all the indexes of true values in the passed <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>. <br /></td></tr>
<tr class="separator:ad09d59850865012a6fd95d89954c82e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/da6/eratosthenes_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-tests the sieve function for major inconsistencies. <br /></td></tr>
<tr class="separator:aa8dca7b867074164d5f45b0f3851269d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/da6/eratosthenes_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="memdesc:a0ddf1224851353fc92bfbff6f499fa97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <br /></td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><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><a href="https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes" target="_blank">The Sieve of Eratosthenes</a> </p>
<p>Store an array of booleans where a true value indicates that it's index is prime. For all the values in the array starting from 2 which we know is prime, we walk the array in multiples of the current outer value setting them to not prime. If we remove all multiples of a value as we see it, we'll be left with just primes.</p>
<p>Pass "print" as a command line arg to see the generated list of primes </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/thechubbypanda" target="_blank">Keval Kapdee</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a0ddf1224851353fc92bfbff6f499fa97" name="a0ddf1224851353fc92bfbff6f499fa97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ddf1224851353fc92bfbff6f499fa97">&#9670;&#160;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>argc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *&#160;</td>
<td class="paramname"><em>argv</em>[]&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Main function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">argc</td><td>commandline argument count </td></tr>
<tr><td class="paramname">argv</td><td>commandline array of arguments </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 87</span> {</div>
<div class="line"><span class="lineno"> 88</span> <a class="code hl_function" href="../../d7/da6/eratosthenes_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementations</span></div>
<div class="line"><span class="lineno"> 89</span> </div>
<div class="line"><span class="lineno"> 90</span> <span class="comment">// The largest prime we will check for</span></div>
<div class="line"><span class="lineno"> 91</span> <span class="keyword">auto</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/max.html">max</a> = 10000;</div>
<div class="line"><span class="lineno"> 92</span> </div>
<div class="line"><span class="lineno"> 93</span> <span class="comment">// Store a boolean for every number which states if that index is prime or</span></div>
<div class="line"><span class="lineno"> 94</span> <span class="comment">// not</span></div>
<div class="line"><span class="lineno"> 95</span> <span class="keyword">auto</span> <a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a> = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;bool&gt;</a>(max, <span class="keyword">true</span>);</div>
<div class="line"><span class="lineno"> 96</span> </div>
<div class="line"><span class="lineno"> 97</span> <span class="comment">// Store the algorithm start time</span></div>
<div class="line"><span class="lineno"> 98</span> <span class="keyword">auto</span> start = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/high_resolution_clock/now.html">std::chrono::high_resolution_clock::now</a>();</div>
<div class="line"><span class="lineno"> 99</span> </div>
<div class="line"><span class="lineno"> 100</span> <span class="comment">// Run the sieve</span></div>
<div class="line"><span class="lineno"> 101</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f">math::sieve</a>(&amp;<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>);</div>
<div class="line"><span class="lineno"> 102</span> </div>
<div class="line"><span class="lineno"> 103</span> <span class="comment">// Time difference calculation</span></div>
<div class="line"><span class="lineno"> 104</span> <span class="keyword">auto</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/time.html">time</a> = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/duration/duration_cast.html">std::chrono::duration_cast</a>&lt;</div>
<div class="line"><span class="lineno"> 105</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration&lt;double, std::ratio&lt;1&gt;</a>&gt;&gt;(</div>
<div class="line"><span class="lineno"> 106</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/high_resolution_clock/now.html">std::chrono::high_resolution_clock::now</a>() - start)</div>
<div class="line"><span class="lineno"> 107</span> .count();</div>
<div class="line"><span class="lineno"> 108</span> </div>
<div class="line"><span class="lineno"> 109</span> <span class="comment">// Print the primes if we see that &quot;print&quot; was passed as an arg</span></div>
<div class="line"><span class="lineno"> 110</span> <span class="keywordflow">if</span> (argc &gt; 1 &amp;&amp; argv[1] == <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>(<span class="stringliteral">&quot;print&quot;</span>)) {</div>
<div class="line"><span class="lineno"> 111</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4">math::print_primes</a>(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>);</div>
<div class="line"><span class="lineno"> 112</span> }</div>
<div class="line"><span class="lineno"> 113</span> </div>
<div class="line"><span class="lineno"> 114</span> <span class="comment">// Print the time taken we found earlier</span></div>
<div class="line"><span class="lineno"> 115</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Time taken: &quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/time.html">time</a> &lt;&lt; <span class="stringliteral">&quot; seconds&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 116</span> </div>
<div class="line"><span class="lineno"> 117</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 118</span>}</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="aduration_cast_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration/duration_cast.html">std::chrono::duration_cast</a></div><div class="ttdeci">T duration_cast(T... args)</div></div>
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration</a></div></div>
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
<div class="ttc" id="aeratosthenes_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../d7/da6/eratosthenes_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-tests the sieve function for major inconsistencies.</div><div class="ttdef"><b>Definition:</b> eratosthenes.cpp:64</div></div>
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a></div><div class="ttdeci">T max(T... args)</div></div>
<div class="ttc" id="anamespacemath_html_a91366864111e1fac29722ca45e02ea8f"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f">math::sieve</a></div><div class="ttdeci">void sieve(std::vector&lt; bool &gt; *vec)</div><div class="ttdoc">Performs the sieve.</div><div class="ttdef"><b>Definition:</b> eratosthenes.cpp:33</div></div>
<div class="ttc" id="anamespacemath_html_ad09d59850865012a6fd95d89954c82e4"><div class="ttname"><a href="../../dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4">math::print_primes</a></div><div class="ttdeci">void print_primes(std::vector&lt; bool &gt; const &amp;primes)</div><div class="ttdoc">Prints all the indexes of true values in the passed std::vector.</div><div class="ttdef"><b>Definition:</b> eratosthenes.cpp:51</div></div>
<div class="ttc" id="anow_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/high_resolution_clock/now.html">std::chrono::high_resolution_clock::now</a></div><div class="ttdeci">T now(T... args)</div></div>
<div class="ttc" id="aprime__numbers_8cpp_html_a9575f3a51eeb8a57d657b3db6a4b441a"><div class="ttname"><a href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a></div><div class="ttdeci">std::vector&lt; int &gt; primes(size_t max)</div><div class="ttdef"><b>Definition:</b> prime_numbers.cpp:12</div></div>
<div class="ttc" id="atime_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a></div><div class="ttdeci">T time(T... args)</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>
</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="../../d7/da6/eratosthenes_8cpp_a0ddf1224851353fc92bfbff6f499fa97_cgraph.svg" width="655" height="355"><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="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">&#9670;&#160;</a></span>test()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void test </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Self-tests the sieve function for major inconsistencies. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 64</span> {</div>
<div class="line"><span class="lineno"> 65</span> <span class="keyword">auto</span> <a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a> = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;bool&gt;</a>(10, <span class="keyword">true</span>);</div>
<div class="line"><span class="lineno"> 66</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f">math::sieve</a>(&amp;<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>);</div>
<div class="line"><span class="lineno"> 67</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[0] == <span class="keyword">false</span>);</div>
<div class="line"><span class="lineno"> 68</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[1] == <span class="keyword">false</span>);</div>
<div class="line"><span class="lineno"> 69</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[2] == <span class="keyword">true</span>);</div>
<div class="line"><span class="lineno"> 70</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[3] == <span class="keyword">true</span>);</div>
<div class="line"><span class="lineno"> 71</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[4] == <span class="keyword">false</span>);</div>
<div class="line"><span class="lineno"> 72</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[5] == <span class="keyword">true</span>);</div>
<div class="line"><span class="lineno"> 73</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[6] == <span class="keyword">false</span>);</div>
<div class="line"><span class="lineno"> 74</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[7] == <span class="keyword">true</span>);</div>
<div class="line"><span class="lineno"> 75</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[8] == <span class="keyword">false</span>);</div>
<div class="line"><span class="lineno"> 76</span> assert(<a class="code hl_function" href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a">primes</a>[9] == <span class="keyword">false</span>);</div>
<div class="line"><span class="lineno"> 77</span> </div>
<div class="line"><span class="lineno"> 78</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;All tests have successfully passed!\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 79</span>}</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="../../d7/da6/eratosthenes_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="418" height="86"><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><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_296d53ceaeaa7e099814a6def439fe8a.html">math</a></li><li class="navelem"><a class="el" href="../../d7/da6/eratosthenes_8cpp.html">eratosthenes.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,7 @@
var eratosthenes_8cpp =
[
[ "main", "d7/da6/eratosthenes_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97", null ],
[ "print_primes", "d7/da6/eratosthenes_8cpp.html#ad09d59850865012a6fd95d89954c82e4", null ],
[ "sieve", "d7/da6/eratosthenes_8cpp.html#a91366864111e1fac29722ca45e02ea8f", null ],
[ "test", "d7/da6/eratosthenes_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ]
];

View File

@@ -0,0 +1,12 @@
<map id="main" name="main">
<area shape="rect" id="node1" title="Main function." alt="" coords="5,157,56,183"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/chrono/duration/duration_cast.html#" title=" " alt="" coords="109,5,282,31"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="344,56,416,81"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/chrono/high_resolution_clock/now.html#" title=" " alt="" coords="104,309,287,349"/>
<area shape="rect" id="node5" href="$de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a" title=" " alt="" coords="349,157,411,183"/>
<area shape="rect" id="node7" href="$dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4" title="Prints all the indexes of true values in the passed std::vector." alt="" coords="130,107,261,132"/>
<area shape="rect" id="node9" href="$dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f" title="Performs the sieve." alt="" coords="335,208,425,233"/>
<area shape="rect" id="node10" href="$d7/da6/eratosthenes_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self&#45;tests the sieve function for major inconsistencies." alt="" coords="173,208,217,233"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/emplace_back.html#" title=" " alt="" coords="473,157,649,183"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="503,108,619,133"/>
</map>

View File

@@ -0,0 +1 @@
4ae4faa6ee7ac51c6057b890e56949a6

View File

@@ -0,0 +1,187 @@
<?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 7.1.0 (20230121.1956)
-->
<!-- Title: main Pages: 1 -->
<svg width="491pt" height="266pt"
viewBox="0.00 0.00 491.00 265.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 261.5)">
<title>main</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="38,-143.5 0,-143.5 0,-124.5 38,-124.5 38,-143.5"/>
<text text-anchor="middle" x="19" y="-131.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/chrono/duration/duration_cast.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="207.5,-257.5 77.5,-257.5 77.5,-238.5 207.5,-238.5 207.5,-257.5"/>
<text text-anchor="middle" x="142.5" y="-245.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::chrono::duration_cast</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M23.36,-143.91C30.09,-162.29 46.93,-201.84 74,-224 78.52,-227.7 83.64,-230.84 89.01,-233.52"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="87.56,-236.71 98.13,-237.5 90.36,-230.29 87.56,-236.71"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="308,-219.5 254,-219.5 254,-200.5 308,-200.5 308,-219.5"/>
<text text-anchor="middle" x="281" y="-207.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M25.91,-143.7C34.59,-156.98 52.17,-180.4 74,-191 128.04,-217.25 199.41,-217.31 242.39,-214.19"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="242.54,-217.69 252.21,-213.38 241.96,-210.72 242.54,-217.69"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/chrono/high_resolution_clock/now.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="211,-30 74,-30 74,0 211,0 211,-30"/>
<text text-anchor="start" x="82" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">std::chrono::high_resolution</text>
<text text-anchor="middle" x="142.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">_clock::now</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M23.5,-124.25C30.45,-106.13 47.65,-67.02 74,-44 77.36,-41.06 81.07,-38.39 84.96,-35.96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="86.56,-39.07 93.6,-31.14 83.16,-32.95 86.56,-39.07"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="304,-143.5 258,-143.5 258,-124.5 304,-124.5 304,-143.5"/>
<text text-anchor="middle" x="281" y="-131.5" font-family="Helvetica,sans-Serif" font-size="10.00">primes</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M38.28,-134C81.57,-134 190.87,-134 246.44,-134"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.24,-137.5 256.24,-134 246.24,-130.5 246.24,-137.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4" target="_top" xlink:title="Prints all the indexes of true values in the passed std::vector.">
<polygon fill="white" stroke="#666666" points="191.5,-181.5 93.5,-181.5 93.5,-162.5 191.5,-162.5 191.5,-181.5"/>
<text text-anchor="middle" x="142.5" y="-169.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::print_primes</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node1&#45;&gt;Node7</title>
<path fill="none" stroke="#63b8ff" d="M38.45,-139.77C54.43,-144.77 78.17,-152.19 98.83,-158.66"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="97.58,-161.93 108.17,-161.58 99.67,-155.25 97.58,-161.93"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f" target="_top" xlink:title="Performs the sieve.">
<polygon fill="white" stroke="#666666" points="315,-105.5 247,-105.5 247,-86.5 315,-86.5 315,-105.5"/>
<text text-anchor="middle" x="281" y="-93.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::sieve</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node9 -->
<g id="edge10" class="edge">
<title>Node1&#45;&gt;Node9</title>
<path fill="none" stroke="#63b8ff" d="M25.78,-124.02C34.31,-110.4 51.71,-86.59 74,-77 129.58,-53.1 201.2,-68.88 243.7,-82.46"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="242.33,-85.7 252.92,-85.55 244.55,-79.06 242.33,-85.7"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../d7/da6/eratosthenes_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;tests the sieve function for major inconsistencies.">
<polygon fill="white" stroke="#666666" points="159,-105.5 126,-105.5 126,-86.5 159,-86.5 159,-105.5"/>
<text text-anchor="middle" x="142.5" y="-93.5" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge12" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="#63b8ff" d="M38.45,-128.23C58.78,-121.87 91.66,-111.59 114.8,-104.35"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="115.65,-107.75 124.15,-101.43 113.56,-101.07 115.65,-107.75"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="483,-143.5 351,-143.5 351,-124.5 483,-124.5 483,-143.5"/>
<text text-anchor="middle" x="417" y="-131.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::emplace_back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="#63b8ff" d="M304.43,-134C314.34,-134 326.63,-134 339.4,-134"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="339.18,-137.5 349.18,-134 339.18,-130.5 339.18,-137.5"/>
</g>
<!-- Node7&#45;&gt;Node3 -->
<g id="edge7" class="edge">
<title>Node7&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M179.36,-181.98C198.91,-187.43 223.07,-194.15 242.81,-199.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="241.83,-203.01 252.41,-202.32 243.71,-196.26 241.83,-203.01"/>
</g>
<!-- Node7&#45;&gt;Node5 -->
<g id="edge8" class="edge">
<title>Node7&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M179.36,-162.02C200.19,-156.22 226.26,-148.96 246.65,-143.28"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="247.46,-146.69 256.16,-140.64 245.59,-139.95 247.46,-146.69"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="460.5,-180.5 373.5,-180.5 373.5,-161.5 460.5,-161.5 460.5,-180.5"/>
<text text-anchor="middle" x="417" y="-168.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node8</title>
<path fill="none" stroke="#63b8ff" d="M191.9,-171.82C239.62,-171.65 312.39,-171.38 361.97,-171.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="361.92,-174.7 371.91,-171.16 361.89,-167.7 361.92,-174.7"/>
</g>
<!-- Node9&#45;&gt;Node8 -->
<g id="edge11" class="edge">
<title>Node9&#45;&gt;Node8</title>
<path fill="none" stroke="#63b8ff" d="M301.46,-105.95C306.07,-108.64 310.85,-111.73 315,-115 333.27,-129.4 331.06,-141.01 351,-153 354.57,-155.15 358.41,-157.05 362.36,-158.72"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="361.01,-161.95 371.6,-162.14 363.44,-155.39 361.01,-161.95"/>
</g>
<!-- Node10&#45;&gt;Node5 -->
<g id="edge13" class="edge">
<title>Node10&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M159.43,-100.43C180.81,-106.39 219.33,-117.11 247.08,-124.84"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="245.84,-128.12 256.41,-127.43 247.72,-121.38 245.84,-128.12"/>
</g>
<!-- Node10&#45;&gt;Node9 -->
<g id="edge14" class="edge">
<title>Node10&#45;&gt;Node9</title>
<path fill="none" stroke="#63b8ff" d="M159.43,-96C177.93,-96 209.25,-96 235.33,-96"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="234.99,-99.5 244.99,-96 234.99,-92.5 234.99,-99.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@@ -0,0 +1,7 @@
<map id="test" name="test">
<area shape="rect" id="node1" title="Self&#45;tests the sieve function for major inconsistencies." alt="" coords="5,31,49,56"/>
<area shape="rect" id="node2" href="$de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a" title=" " alt="" coords="112,5,173,31"/>
<area shape="rect" id="node4" href="$dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f" title="Performs the sieve." alt="" coords="97,55,188,80"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/emplace_back.html#" title=" " alt="" coords="236,5,412,31"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="266,55,382,80"/>
</map>

View File

@@ -0,0 +1 @@
dfdc037a92702d14aae63a831a05ea13

View File

@@ -0,0 +1,81 @@
<?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 7.1.0 (20230121.1956)
-->
<!-- Title: test Pages: 1 -->
<svg width="313pt" height="64pt"
viewBox="0.00 0.00 313.00 64.00" 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 60)">
<title>test</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Self&#45;tests the sieve function for major inconsistencies.">
<polygon fill="#999999" stroke="#666666" points="33,-37 0,-37 0,-18 33,-18 33,-37"/>
<text text-anchor="middle" x="16.5" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../de/d9b/prime__numbers_8cpp.html#a9575f3a51eeb8a57d657b3db6a4b441a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="126,-56 80,-56 80,-37 126,-37 126,-56"/>
<text text-anchor="middle" x="103" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">primes</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M33.39,-31.07C43.32,-33.31 56.48,-36.26 68.62,-38.99"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="67.8,-42.4 78.32,-41.18 69.34,-35.57 67.8,-42.4"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f" target="_top" xlink:title="Performs the sieve.">
<polygon fill="white" stroke="#666666" points="137,-19 69,-19 69,0 137,0 137,-19"/>
<text text-anchor="middle" x="103" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">math::sieve</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M33.39,-24.11C40.39,-22.62 48.98,-20.79 57.69,-18.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="58.15,-22.42 67.2,-16.91 56.69,-15.57 58.15,-22.42"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="305,-56 173,-56 173,-37 305,-37 305,-56"/>
<text text-anchor="middle" x="239" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::emplace_back</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M126.43,-46.5C136.34,-46.5 148.63,-46.5 161.4,-46.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="161.18,-50 171.18,-46.5 161.18,-43 161.18,-50"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="282.5,-19 195.5,-19 195.5,0 282.5,0 282.5,-19"/>
<text text-anchor="middle" x="239" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M137.47,-9.5C151.57,-9.5 168.33,-9.5 184.09,-9.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="183.82,-13 193.82,-9.5 183.82,-6 183.82,-13"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -0,0 +1,8 @@
<map id="math/eratosthenes.cpp" name="math/eratosthenes.cpp">
<area shape="rect" id="node1" title="The Sieve of Eratosthenes" alt="" coords="139,5,294,31"/>
<area shape="rect" id="node2" title=" " alt="" coords="5,79,71,104"/>
<area shape="rect" id="node3" title=" " alt="" coords="95,79,157,104"/>
<area shape="rect" id="node4" title=" " alt="" coords="181,79,253,104"/>
<area shape="rect" id="node5" title=" " alt="" coords="277,79,332,104"/>
<area shape="rect" id="node6" title=" " alt="" coords="357,79,415,104"/>
</map>

View File

@@ -0,0 +1 @@
e6bdc87cc9533c451f0145884e4b7066

View File

@@ -0,0 +1,96 @@
<?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 7.1.0 (20230121.1956)
-->
<!-- Title: math/eratosthenes.cpp Pages: 1 -->
<svg width="316pt" height="82pt"
viewBox="0.00 0.00 315.50 82.00" 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 78)">
<title>math/eratosthenes.cpp</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="The Sieve of Eratosthenes">
<polygon fill="#999999" stroke="#666666" points="216.5,-74 100.5,-74 100.5,-55 216.5,-55 216.5,-74"/>
<text text-anchor="middle" x="158.5" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">math/eratosthenes.cpp</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="49,-19 0,-19 0,0 49,0 49,-19"/>
<text text-anchor="middle" x="24.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M135.77,-54.51C114.27,-46.01 81.77,-33.15 57.43,-23.53"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="58.89,-20.34 48.3,-19.91 56.31,-26.85 58.89,-20.34"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="113.5,-19 67.5,-19 67.5,0 113.5,0 113.5,-19"/>
<text text-anchor="middle" x="90.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">chrono</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M146.96,-54.51C137.04,-46.77 122.49,-35.43 110.64,-26.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="113.1,-23.68 103.06,-20.29 108.79,-29.2 113.1,-23.68"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="185.5,-19 131.5,-19 131.5,0 185.5,0 185.5,-19"/>
<text text-anchor="middle" x="158.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M158.5,-54.75C158.5,-48.27 158.5,-39.16 158.5,-30.9"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="162,-30.96 158.5,-20.96 155,-30.96 162,-30.96"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="245,-19 204,-19 204,0 245,0 245,-19"/>
<text text-anchor="middle" x="224.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M169.7,-54.51C179.24,-46.85 193.17,-35.66 204.61,-26.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="206.68,-29.3 212.29,-20.31 202.3,-23.84 206.68,-29.3"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="307.5,-19 263.5,-19 263.5,0 307.5,0 307.5,-19"/>
<text text-anchor="middle" x="285.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="#63b8ff" d="M180.04,-54.51C200.24,-46.08 230.67,-33.38 253.66,-23.79"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="255,-27.02 262.88,-19.94 252.3,-20.56 255,-27.02"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB