chillerlan-QRCode-Common-GenericGFPoly.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. <h4 class="phpdocumentor-sidebar__root-namespace">
  89. <a href="namespaces/output.html" class="">Output</a>
  90. </h4>
  91. </section>
  92. <section class="phpdocumentor-sidebar__category -packages">
  93. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  94. <h4 class="phpdocumentor-sidebar__root-namespace">
  95. <a href="packages/Application.html" class="">Application</a>
  96. </h4>
  97. </section>
  98. <section class="phpdocumentor-sidebar__category -reports">
  99. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  100. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  101. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  102. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  103. </section>
  104. <section class="phpdocumentor-sidebar__category -indices">
  105. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  106. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  107. </section>
  108. </aside>
  109. <div class="phpdocumentor-column -nine phpdocumentor-content">
  110. <section>
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  113. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  114. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  115. </ul>
  116. <article class="phpdocumentor-element -class">
  117. <h2 class="phpdocumentor-content__title">
  118. GenericGFPoly
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  128. </div>
  129. <aside class="phpdocumentor-element-found-in">
  130. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">26</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">Represents a polynomial whose coefficients are elements of a GF.</p>
  135. <section class="phpdocumentor-description"><p>Instances of this class are immutable.</p>
  136. <p>Much credit is due to William Rucklidge since portions of this code are an indirect
  137. port of his C++ Reed-Solomon implementation.</p>
  138. </section>
  139. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  140. Tags
  141. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  142. </h5>
  143. <dl class="phpdocumentor-tag-list">
  144. <dt class="phpdocumentor-tag-list__entry">
  145. <span class="phpdocumentor-tag__name">author</span>
  146. </dt>
  147. <dd class="phpdocumentor-tag-list__definition">
  148. <section class="phpdocumentor-description"><p>Sean Owen</p>
  149. </section>
  150. </dd>
  151. </dl>
  152. <h3 id="toc">
  153. Table of Contents
  154. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  155. </h3>
  156. <h4 id="toc-properties">
  157. Properties
  158. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  159. </h4>
  160. <dl class="phpdocumentor-table-of-contents">
  161. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  162. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#property_coefficients">$coefficients</a>
  163. <span>
  164. &nbsp;: array&lt;string|int, mixed&gt; </span>
  165. </dt>
  166. </dl>
  167. <h4 id="toc-methods">
  168. Methods
  169. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  170. </h4>
  171. <dl class="phpdocumentor-table-of-contents">
  172. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  173. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method___construct">__construct()</a>
  174. <span>
  175. &nbsp;: mixed </span>
  176. </dt>
  177. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  178. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_addOrSubtract">addOrSubtract()</a>
  179. <span>
  180. &nbsp;: self </span>
  181. </dt>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_divide">divide()</a>
  184. <span>
  185. &nbsp;: array&lt;string|int, <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&gt; </span>
  186. </dt>
  187. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  188. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_evaluateAt">evaluateAt()</a>
  189. <span>
  190. &nbsp;: int </span>
  191. </dt>
  192. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  193. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficient">getCoefficient()</a>
  194. <span>
  195. &nbsp;: int </span>
  196. </dt>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficients">getCoefficients()</a>
  199. <span>
  200. &nbsp;: array&lt;string|int, int&gt; </span>
  201. </dt>
  202. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  203. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getDegree">getDegree()</a>
  204. <span>
  205. &nbsp;: int </span>
  206. </dt>
  207. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  208. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_isZero">isZero()</a>
  209. <span>
  210. &nbsp;: bool </span>
  211. </dt>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  213. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_mod">mod()</a>
  214. <span>
  215. &nbsp;: self </span>
  216. </dt>
  217. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  218. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiply">multiply()</a>
  219. <span>
  220. &nbsp;: self </span>
  221. </dt>
  222. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  223. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyByMonomial">multiplyByMonomial()</a>
  224. <span>
  225. &nbsp;: self </span>
  226. </dt>
  227. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  228. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyInt">multiplyInt()</a>
  229. <span>
  230. &nbsp;: self </span>
  231. </dt>
  232. </dl>
  233. <section class="phpdocumentor-properties">
  234. <h3 class="phpdocumentor-elements__header" id="properties">
  235. Properties
  236. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  237. </h3>
  238. <article
  239. class="
  240. phpdocumentor-element
  241. -property
  242. -private
  243. "
  244. >
  245. <h4 class="phpdocumentor-element__name" id="property_coefficients">
  246. $coefficients
  247. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#property_coefficients" class="headerlink"><i class="fas fa-link"></i></a>
  248. <span class="phpdocumentor-element__modifiers">
  249. </span>
  250. </h4>
  251. <aside class="phpdocumentor-element-found-in">
  252. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  253. :
  254. <span class="phpdocumentor-element-found-in__line">28</span>
  255. </aside>
  256. <code class="phpdocumentor-code phpdocumentor-signature ">
  257. <span class="phpdocumentor-signature__visibility">private</span>
  258. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  259. <span class="phpdocumentor-signature__name">$coefficients</span>
  260. </code>
  261. </article>
  262. </section>
  263. <section class="phpdocumentor-methods">
  264. <h3 class="phpdocumentor-elements__header" id="methods">
  265. Methods
  266. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  267. </h3>
  268. <article
  269. class="phpdocumentor-element
  270. -method
  271. -public
  272. "
  273. >
  274. <h4 class="phpdocumentor-element__name" id="method___construct">
  275. __construct()
  276. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  277. </h4>
  278. <aside class="phpdocumentor-element-found-in">
  279. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  280. :
  281. <span class="phpdocumentor-element-found-in__line">38</span>
  282. </aside>
  283. <code class="phpdocumentor-code phpdocumentor-signature ">
  284. <span class="phpdocumentor-signature__visibility">public</span>
  285. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coefficients</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$degree</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  286. <div class="phpdocumentor-label-line">
  287. </div>
  288. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  289. <dl class="phpdocumentor-argument-list">
  290. <dt class="phpdocumentor-argument-list__entry">
  291. <span class="phpdocumentor-signature__argument__name">$coefficients</span>
  292. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  293. </dt>
  294. <dd class="phpdocumentor-argument-list__definition">
  295. <section class="phpdocumentor-description"><p>array coefficients as ints representing elements of GF(size), arranged
  296. from most significant (highest-power term) coefficient to the least significant</p>
  297. </section>
  298. </dd>
  299. <dt class="phpdocumentor-argument-list__entry">
  300. <span class="phpdocumentor-signature__argument__name">$degree</span>
  301. : <span class="phpdocumentor-signature__argument__return-type">int|null</span>
  302. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  303. <dd class="phpdocumentor-argument-list__definition">
  304. </dd>
  305. </dl>
  306. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  307. Tags
  308. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  309. </h5>
  310. <dl class="phpdocumentor-tag-list">
  311. <dt class="phpdocumentor-tag-list__entry">
  312. <span class="phpdocumentor-tag__name">throws</span>
  313. </dt>
  314. <dd class="phpdocumentor-tag-list__definition">
  315. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  316. <section class="phpdocumentor-description"><p>if argument is null or empty, or if leading coefficient is 0 and this
  317. is not a constant polynomial (that is, it is not the monomial &quot;0&quot;)</p>
  318. </section>
  319. </dd>
  320. </dl>
  321. </article>
  322. <article
  323. class="phpdocumentor-element
  324. -method
  325. -public
  326. "
  327. >
  328. <h4 class="phpdocumentor-element__name" id="method_addOrSubtract">
  329. addOrSubtract()
  330. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_addOrSubtract" class="headerlink"><i class="fas fa-link"></i></a>
  331. </h4>
  332. <aside class="phpdocumentor-element-found-in">
  333. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  334. :
  335. <span class="phpdocumentor-element-found-in__line">230</span>
  336. </aside>
  337. <code class="phpdocumentor-code phpdocumentor-signature ">
  338. <span class="phpdocumentor-signature__visibility">public</span>
  339. <span class="phpdocumentor-signature__name">addOrSubtract</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$other</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  340. <div class="phpdocumentor-label-line">
  341. </div>
  342. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  343. <dl class="phpdocumentor-argument-list">
  344. <dt class="phpdocumentor-argument-list__entry">
  345. <span class="phpdocumentor-signature__argument__name">$other</span>
  346. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a></span>
  347. </dt>
  348. <dd class="phpdocumentor-argument-list__definition">
  349. </dd>
  350. </dl>
  351. <section>
  352. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  353. <span class="phpdocumentor-signature__response_type">self</span>
  354. </section>
  355. </article>
  356. <article
  357. class="phpdocumentor-element
  358. -method
  359. -public
  360. "
  361. >
  362. <h4 class="phpdocumentor-element__name" id="method_divide">
  363. divide()
  364. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_divide" class="headerlink"><i class="fas fa-link"></i></a>
  365. </h4>
  366. <aside class="phpdocumentor-element-found-in">
  367. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  368. :
  369. <span class="phpdocumentor-element-found-in__line">142</span>
  370. </aside>
  371. <code class="phpdocumentor-code phpdocumentor-signature ">
  372. <span class="phpdocumentor-signature__visibility">public</span>
  373. <span class="phpdocumentor-signature__name">divide</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$other</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&gt;</span></code>
  374. <div class="phpdocumentor-label-line">
  375. </div>
  376. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  377. <dl class="phpdocumentor-argument-list">
  378. <dt class="phpdocumentor-argument-list__entry">
  379. <span class="phpdocumentor-signature__argument__name">$other</span>
  380. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a></span>
  381. </dt>
  382. <dd class="phpdocumentor-argument-list__definition">
  383. </dd>
  384. </dl>
  385. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  386. Tags
  387. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_divide#tags" class="headerlink"><i class="fas fa-link"></i></a>
  388. </h5>
  389. <dl class="phpdocumentor-tag-list">
  390. <dt class="phpdocumentor-tag-list__entry">
  391. <span class="phpdocumentor-tag__name">throws</span>
  392. </dt>
  393. <dd class="phpdocumentor-tag-list__definition">
  394. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  395. </dd>
  396. </dl>
  397. <section>
  398. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  399. <span class="phpdocumentor-signature__response_type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&gt;</span>
  400. &mdash;
  401. <section class="phpdocumentor-description"><p>[quotient, remainder]</p>
  402. </section>
  403. </section>
  404. </article>
  405. <article
  406. class="phpdocumentor-element
  407. -method
  408. -public
  409. "
  410. >
  411. <h4 class="phpdocumentor-element__name" id="method_evaluateAt">
  412. evaluateAt()
  413. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_evaluateAt" class="headerlink"><i class="fas fa-link"></i></a>
  414. </h4>
  415. <aside class="phpdocumentor-element-found-in">
  416. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  417. :
  418. <span class="phpdocumentor-element-found-in__line">101</span>
  419. </aside>
  420. <code class="phpdocumentor-code phpdocumentor-signature ">
  421. <span class="phpdocumentor-signature__visibility">public</span>
  422. <span class="phpdocumentor-signature__name">evaluateAt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  423. <div class="phpdocumentor-label-line">
  424. </div>
  425. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  426. <dl class="phpdocumentor-argument-list">
  427. <dt class="phpdocumentor-argument-list__entry">
  428. <span class="phpdocumentor-signature__argument__name">$a</span>
  429. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  430. </dt>
  431. <dd class="phpdocumentor-argument-list__definition">
  432. </dd>
  433. </dl>
  434. <section>
  435. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  436. <span class="phpdocumentor-signature__response_type">int</span>
  437. &mdash;
  438. <section class="phpdocumentor-description"><p>evaluation of this polynomial at a given point</p>
  439. </section>
  440. </section>
  441. </article>
  442. <article
  443. class="phpdocumentor-element
  444. -method
  445. -public
  446. "
  447. >
  448. <h4 class="phpdocumentor-element__name" id="method_getCoefficient">
  449. getCoefficient()
  450. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficient" class="headerlink"><i class="fas fa-link"></i></a>
  451. </h4>
  452. <aside class="phpdocumentor-element-found-in">
  453. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  454. :
  455. <span class="phpdocumentor-element-found-in__line">73</span>
  456. </aside>
  457. <code class="phpdocumentor-code phpdocumentor-signature ">
  458. <span class="phpdocumentor-signature__visibility">public</span>
  459. <span class="phpdocumentor-signature__name">getCoefficient</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$degree</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  460. <div class="phpdocumentor-label-line">
  461. </div>
  462. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  463. <dl class="phpdocumentor-argument-list">
  464. <dt class="phpdocumentor-argument-list__entry">
  465. <span class="phpdocumentor-signature__argument__name">$degree</span>
  466. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  467. </dt>
  468. <dd class="phpdocumentor-argument-list__definition">
  469. </dd>
  470. </dl>
  471. <section>
  472. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  473. <span class="phpdocumentor-signature__response_type">int</span>
  474. &mdash;
  475. <section class="phpdocumentor-description"><p>$coefficient of x^degree term in this polynomial</p>
  476. </section>
  477. </section>
  478. </article>
  479. <article
  480. class="phpdocumentor-element
  481. -method
  482. -public
  483. "
  484. >
  485. <h4 class="phpdocumentor-element__name" id="method_getCoefficients">
  486. getCoefficients()
  487. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficients" class="headerlink"><i class="fas fa-link"></i></a>
  488. </h4>
  489. <aside class="phpdocumentor-element-found-in">
  490. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  491. :
  492. <span class="phpdocumentor-element-found-in__line">80</span>
  493. </aside>
  494. <code class="phpdocumentor-code phpdocumentor-signature ">
  495. <span class="phpdocumentor-signature__visibility">public</span>
  496. <span class="phpdocumentor-signature__name">getCoefficients</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span></code>
  497. <div class="phpdocumentor-label-line">
  498. </div>
  499. <section>
  500. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  501. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  502. </section>
  503. </article>
  504. <article
  505. class="phpdocumentor-element
  506. -method
  507. -public
  508. "
  509. >
  510. <h4 class="phpdocumentor-element__name" id="method_getDegree">
  511. getDegree()
  512. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getDegree" class="headerlink"><i class="fas fa-link"></i></a>
  513. </h4>
  514. <aside class="phpdocumentor-element-found-in">
  515. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  516. :
  517. <span class="phpdocumentor-element-found-in__line">87</span>
  518. </aside>
  519. <code class="phpdocumentor-code phpdocumentor-signature ">
  520. <span class="phpdocumentor-signature__visibility">public</span>
  521. <span class="phpdocumentor-signature__name">getDegree</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  522. <div class="phpdocumentor-label-line">
  523. </div>
  524. <section>
  525. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  526. <span class="phpdocumentor-signature__response_type">int</span>
  527. &mdash;
  528. <section class="phpdocumentor-description"><p>$degree of this polynomial</p>
  529. </section>
  530. </section>
  531. </article>
  532. <article
  533. class="phpdocumentor-element
  534. -method
  535. -public
  536. "
  537. >
  538. <h4 class="phpdocumentor-element__name" id="method_isZero">
  539. isZero()
  540. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_isZero" class="headerlink"><i class="fas fa-link"></i></a>
  541. </h4>
  542. <aside class="phpdocumentor-element-found-in">
  543. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  544. :
  545. <span class="phpdocumentor-element-found-in__line">94</span>
  546. </aside>
  547. <code class="phpdocumentor-code phpdocumentor-signature ">
  548. <span class="phpdocumentor-signature__visibility">public</span>
  549. <span class="phpdocumentor-signature__name">isZero</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  550. <div class="phpdocumentor-label-line">
  551. </div>
  552. <section>
  553. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  554. <span class="phpdocumentor-signature__response_type">bool</span>
  555. &mdash;
  556. <section class="phpdocumentor-description"><p>true if this polynomial is the monomial &quot;0&quot;</p>
  557. </section>
  558. </section>
  559. </article>
  560. <article
  561. class="phpdocumentor-element
  562. -method
  563. -public
  564. "
  565. >
  566. <h4 class="phpdocumentor-element__name" id="method_mod">
  567. mod()
  568. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_mod" class="headerlink"><i class="fas fa-link"></i></a>
  569. </h4>
  570. <aside class="phpdocumentor-element-found-in">
  571. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  572. :
  573. <span class="phpdocumentor-element-found-in__line">212</span>
  574. </aside>
  575. <code class="phpdocumentor-code phpdocumentor-signature ">
  576. <span class="phpdocumentor-signature__visibility">public</span>
  577. <span class="phpdocumentor-signature__name">mod</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$other</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  578. <div class="phpdocumentor-label-line">
  579. </div>
  580. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  581. <dl class="phpdocumentor-argument-list">
  582. <dt class="phpdocumentor-argument-list__entry">
  583. <span class="phpdocumentor-signature__argument__name">$other</span>
  584. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a></span>
  585. </dt>
  586. <dd class="phpdocumentor-argument-list__definition">
  587. </dd>
  588. </dl>
  589. <section>
  590. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  591. <span class="phpdocumentor-signature__response_type">self</span>
  592. </section>
  593. </article>
  594. <article
  595. class="phpdocumentor-element
  596. -method
  597. -public
  598. "
  599. >
  600. <h4 class="phpdocumentor-element__name" id="method_multiply">
  601. multiply()
  602. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiply" class="headerlink"><i class="fas fa-link"></i></a>
  603. </h4>
  604. <aside class="phpdocumentor-element-found-in">
  605. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  606. :
  607. <span class="phpdocumentor-element-found-in__line">121</span>
  608. </aside>
  609. <code class="phpdocumentor-code phpdocumentor-signature ">
  610. <span class="phpdocumentor-signature__visibility">public</span>
  611. <span class="phpdocumentor-signature__name">multiply</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$other</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  612. <div class="phpdocumentor-label-line">
  613. </div>
  614. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  615. <dl class="phpdocumentor-argument-list">
  616. <dt class="phpdocumentor-argument-list__entry">
  617. <span class="phpdocumentor-signature__argument__name">$other</span>
  618. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a></span>
  619. </dt>
  620. <dd class="phpdocumentor-argument-list__definition">
  621. </dd>
  622. </dl>
  623. <section>
  624. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  625. <span class="phpdocumentor-signature__response_type">self</span>
  626. </section>
  627. </article>
  628. <article
  629. class="phpdocumentor-element
  630. -method
  631. -public
  632. "
  633. >
  634. <h4 class="phpdocumentor-element__name" id="method_multiplyByMonomial">
  635. multiplyByMonomial()
  636. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyByMonomial" class="headerlink"><i class="fas fa-link"></i></a>
  637. </h4>
  638. <aside class="phpdocumentor-element-found-in">
  639. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  640. :
  641. <span class="phpdocumentor-element-found-in__line">190</span>
  642. </aside>
  643. <code class="phpdocumentor-code phpdocumentor-signature ">
  644. <span class="phpdocumentor-signature__visibility">public</span>
  645. <span class="phpdocumentor-signature__name">multiplyByMonomial</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$degree</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coefficient</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  646. <div class="phpdocumentor-label-line">
  647. </div>
  648. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  649. <dl class="phpdocumentor-argument-list">
  650. <dt class="phpdocumentor-argument-list__entry">
  651. <span class="phpdocumentor-signature__argument__name">$degree</span>
  652. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  653. </dt>
  654. <dd class="phpdocumentor-argument-list__definition">
  655. </dd>
  656. <dt class="phpdocumentor-argument-list__entry">
  657. <span class="phpdocumentor-signature__argument__name">$coefficient</span>
  658. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  659. </dt>
  660. <dd class="phpdocumentor-argument-list__definition">
  661. </dd>
  662. </dl>
  663. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  664. Tags
  665. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyByMonomial#tags" class="headerlink"><i class="fas fa-link"></i></a>
  666. </h5>
  667. <dl class="phpdocumentor-tag-list">
  668. <dt class="phpdocumentor-tag-list__entry">
  669. <span class="phpdocumentor-tag__name">throws</span>
  670. </dt>
  671. <dd class="phpdocumentor-tag-list__definition">
  672. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-QRCodeException.html"><abbr title="\chillerlan\QRCode\QRCodeException">QRCodeException</abbr></a></span>
  673. </dd>
  674. </dl>
  675. <section>
  676. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  677. <span class="phpdocumentor-signature__response_type">self</span>
  678. </section>
  679. </article>
  680. <article
  681. class="phpdocumentor-element
  682. -method
  683. -public
  684. "
  685. >
  686. <h4 class="phpdocumentor-element__name" id="method_multiplyInt">
  687. multiplyInt()
  688. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyInt" class="headerlink"><i class="fas fa-link"></i></a>
  689. </h4>
  690. <aside class="phpdocumentor-element-found-in">
  691. <abbr class="phpdocumentor-element-found-in__file" title="src/Common/GenericGFPoly.php"><a href="files/src-common-genericgfpoly.html"><abbr title="src/Common/GenericGFPoly.php">GenericGFPoly.php</abbr></a></abbr>
  692. :
  693. <span class="phpdocumentor-element-found-in__line">168</span>
  694. </aside>
  695. <code class="phpdocumentor-code phpdocumentor-signature ">
  696. <span class="phpdocumentor-signature__visibility">public</span>
  697. <span class="phpdocumentor-signature__name">multiplyInt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$scalar</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  698. <div class="phpdocumentor-label-line">
  699. </div>
  700. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  701. <dl class="phpdocumentor-argument-list">
  702. <dt class="phpdocumentor-argument-list__entry">
  703. <span class="phpdocumentor-signature__argument__name">$scalar</span>
  704. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  705. </dt>
  706. <dd class="phpdocumentor-argument-list__definition">
  707. </dd>
  708. </dl>
  709. <section>
  710. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  711. <span class="phpdocumentor-signature__response_type">self</span>
  712. </section>
  713. </article>
  714. </section>
  715. <div class="phpdocumentor-modal" id="source-view">
  716. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  717. <div class="phpdocumentor-modal-container">
  718. <div class="phpdocumentor-modal-content">
  719. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Common/GenericGFPoly.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  720. </div>
  721. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  722. </div>
  723. </div>
  724. <script type="text/javascript">
  725. (function () {
  726. function loadExternalCodeSnippet(el, url, line) {
  727. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  728. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  729. const language = 'php';
  730. const code = document.createElement('code');
  731. code.className = 'language-' + language;
  732. pre.textContent = '';
  733. pre.setAttribute('data-line', line)
  734. code.textContent = 'Loading…';
  735. pre.appendChild(code);
  736. var xhr = new XMLHttpRequest();
  737. xhr.open('GET', src, true);
  738. xhr.onreadystatechange = function () {
  739. if (xhr.readyState !== 4) {
  740. return;
  741. }
  742. if (xhr.status < 400 && xhr.responseText) {
  743. code.textContent = xhr.responseText;
  744. Prism.highlightElement(code);
  745. return;
  746. }
  747. if (xhr.status === 404) {
  748. code.textContent = '✖ Error: File could not be found';
  749. return;
  750. }
  751. if (xhr.status >= 400) {
  752. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  753. return;
  754. }
  755. code.textContent = '✖ Error: An unknown error occurred';
  756. };
  757. xhr.send(null);
  758. });
  759. }
  760. const modalButtons = document.querySelectorAll("[data-modal]");
  761. const openedAsLocalFile = window.location.protocol === 'file:';
  762. if (modalButtons.length > 0 && openedAsLocalFile) {
  763. console.warn(
  764. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  765. 'browsers block XHR requests when a page is opened this way'
  766. );
  767. }
  768. modalButtons.forEach(function (trigger) {
  769. if (openedAsLocalFile) {
  770. trigger.setAttribute("hidden", "hidden");
  771. }
  772. trigger.addEventListener("click", function (event) {
  773. event.preventDefault();
  774. const modal = document.getElementById(trigger.dataset.modal);
  775. if (!modal) {
  776. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  777. return;
  778. }
  779. modal.classList.add("phpdocumentor-modal__open");
  780. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  781. const exits = modal.querySelectorAll("[data-exit-button]");
  782. exits.forEach(function (exit) {
  783. exit.addEventListener("click", function (event) {
  784. event.preventDefault();
  785. modal.classList.remove("phpdocumentor-modal__open");
  786. });
  787. });
  788. });
  789. });
  790. })();
  791. </script>
  792. </article>
  793. </section>
  794. <section class="phpdocumentor-on-this-page__sidebar">
  795. <section class="phpdocumentor-on-this-page__content">
  796. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  797. <ul class="phpdocumentor-list -clean">
  798. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  799. <li>
  800. <ul class="phpdocumentor-list -clean">
  801. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#toc-properties">Properties</a></li>
  802. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#toc-methods">Methods</a></li>
  803. </ul>
  804. </li>
  805. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  806. <li>
  807. <ul class="phpdocumentor-list -clean">
  808. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#property_coefficients">$coefficients<a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"></li>
  809. </ul>
  810. </li>
  811. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  812. <li>
  813. <ul class="phpdocumentor-list -clean">
  814. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method___construct">__construct()</a></li>
  815. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_addOrSubtract">addOrSubtract()</a></li>
  816. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_divide">divide()</a></li>
  817. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_evaluateAt">evaluateAt()</a></li>
  818. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficient">getCoefficient()</a></li>
  819. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficients">getCoefficients()</a></li>
  820. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getDegree">getDegree()</a></li>
  821. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_isZero">isZero()</a></li>
  822. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_mod">mod()</a></li>
  823. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiply">multiply()</a></li>
  824. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyByMonomial">multiplyByMonomial()</a></li>
  825. <li><a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyInt">multiplyInt()</a></li>
  826. </ul>
  827. </li>
  828. </ul>
  829. </section>
  830. </section>
  831. </div>
  832. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  833. <section class="phpdocumentor-search-results__dialog">
  834. <header class="phpdocumentor-search-results__header">
  835. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  836. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  837. </header>
  838. <section class="phpdocumentor-search-results__body">
  839. <ul class="phpdocumentor-search-results__entries"></ul>
  840. </section>
  841. </section>
  842. </section>
  843. </div>
  844. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  845. </main>
  846. <script>
  847. cssVars({});
  848. </script>
  849. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  850. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  851. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  852. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  853. </body>
  854. </html>