chillerlan-QRCode-Common-GenericGFPoly.html 52 KB

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