chillerlan-QRCode-Common-GenericGFPoly.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  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=Source+Sans+Pro:wght@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/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-common.html">Common</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. GenericGFPoly
  89. <div class="phpdocumentor-element__package">
  90. in package
  91. <ul class="phpdocumentor-breadcrumbs">
  92. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  93. </ul>
  94. </div>
  95. </h2>
  96. <aside class="phpdocumentor-element-found-in">
  97. <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>
  98. :
  99. <span class="phpdocumentor-element-found-in__line">27</span>
  100. </aside>
  101. <p class="phpdocumentor-summary">Represents a polynomial whose coefficients are elements of a GF.</p>
  102. <section class="phpdocumentor-description"><p>Instances of this class are immutable.</p>
  103. <p>Much credit is due to William Rucklidge since portions of this code are an indirect
  104. port of his C++ Reed-Solomon implementation.</p>
  105. </section>
  106. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  107. Tags
  108. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  109. </h5>
  110. <dl class="phpdocumentor-tag-list">
  111. <dt class="phpdocumentor-tag-list__entry">
  112. <span class="phpdocumentor-tag__name">author</span>
  113. </dt>
  114. <dd class="phpdocumentor-tag-list__definition">
  115. <section class="phpdocumentor-description"><p>Sean Owen</p>
  116. </section>
  117. </dd>
  118. </dl>
  119. <h3 id="toc">
  120. Table of Contents
  121. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  122. </h3>
  123. <dl class="phpdocumentor-table-of-contents">
  124. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  125. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#property_coefficients">$coefficients</a>
  126. <span>
  127. &nbsp;: array&lt;string|int, mixed&gt; </span>
  128. </dt>
  129. <dd></dd>
  130. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  131. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method___construct">__construct()</a>
  132. <span>
  133. &nbsp;: mixed </span>
  134. </dt>
  135. <dd></dd>
  136. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  137. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_addOrSubtract">addOrSubtract()</a>
  138. <span>
  139. &nbsp;: self </span>
  140. </dt>
  141. <dd></dd>
  142. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  143. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_divide">divide()</a>
  144. <span>
  145. &nbsp;: array&lt;string|int, <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html"><abbr title="\chillerlan\QRCode\Common\GenericGFPoly">GenericGFPoly</abbr></a>&gt; </span>
  146. </dt>
  147. <dd></dd>
  148. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  149. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_evaluateAt">evaluateAt()</a>
  150. <span>
  151. &nbsp;: int </span>
  152. </dt>
  153. <dd></dd>
  154. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  155. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficient">getCoefficient()</a>
  156. <span>
  157. &nbsp;: int </span>
  158. </dt>
  159. <dd></dd>
  160. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  161. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficients">getCoefficients()</a>
  162. <span>
  163. &nbsp;: array&lt;string|int, int&gt; </span>
  164. </dt>
  165. <dd></dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  167. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getDegree">getDegree()</a>
  168. <span>
  169. &nbsp;: int </span>
  170. </dt>
  171. <dd></dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  173. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_isZero">isZero()</a>
  174. <span>
  175. &nbsp;: bool </span>
  176. </dt>
  177. <dd></dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  179. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_mod">mod()</a>
  180. <span>
  181. &nbsp;: self </span>
  182. </dt>
  183. <dd></dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  185. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiply">multiply()</a>
  186. <span>
  187. &nbsp;: self </span>
  188. </dt>
  189. <dd></dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  191. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyByMonomial">multiplyByMonomial()</a>
  192. <span>
  193. &nbsp;: self </span>
  194. </dt>
  195. <dd></dd>
  196. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  197. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyInt">multiplyInt()</a>
  198. <span>
  199. &nbsp;: self </span>
  200. </dt>
  201. <dd></dd>
  202. </dl>
  203. <section class="phpdocumentor-properties">
  204. <h3 class="phpdocumentor-elements__header" id="properties">
  205. Properties
  206. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  207. </h3>
  208. <article
  209. class="
  210. phpdocumentor-element
  211. -property
  212. -private
  213. "
  214. >
  215. <h4 class="phpdocumentor-element__name" id="property_coefficients">
  216. $coefficients
  217. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#property_coefficients" class="headerlink"><i class="fas fa-link"></i></a>
  218. <span class="phpdocumentor-element__modifiers">
  219. </span>
  220. </h4>
  221. <aside class="phpdocumentor-element-found-in">
  222. <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>
  223. :
  224. <span class="phpdocumentor-element-found-in__line">29</span>
  225. </aside>
  226. <code class="phpdocumentor-code phpdocumentor-signature ">
  227. <span class="phpdocumentor-signature__visibility">private</span>
  228. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  229. <span class="phpdocumentor-signature__name">$coefficients</span>
  230. </code>
  231. <section class="phpdocumentor-description"></section>
  232. <section class="phpdocumentor-description"></section>
  233. </article>
  234. </section>
  235. <section class="phpdocumentor-methods">
  236. <h3 class="phpdocumentor-elements__header" id="methods">
  237. Methods
  238. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  239. </h3>
  240. <article
  241. class="phpdocumentor-element
  242. -method
  243. -public
  244. "
  245. >
  246. <h4 class="phpdocumentor-element__name" id="method___construct">
  247. __construct()
  248. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  249. </h4>
  250. <aside class="phpdocumentor-element-found-in">
  251. <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>
  252. :
  253. <span class="phpdocumentor-element-found-in__line">39</span>
  254. </aside>
  255. <code class="phpdocumentor-code phpdocumentor-signature ">
  256. <span class="phpdocumentor-signature__visibility">public</span>
  257. <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>
  258. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  259. <dl class="phpdocumentor-argument-list">
  260. <dt class="phpdocumentor-argument-list__entry">
  261. <span class="phpdocumentor-signature__argument__name">$coefficients</span>
  262. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  263. </dt>
  264. <dd class="phpdocumentor-argument-list__definition">
  265. <section class="phpdocumentor-description"><p>array coefficients as ints representing elements of GF(size), arranged
  266. from most significant (highest-power term) coefficient to least significant</p>
  267. </section>
  268. </dd>
  269. <dt class="phpdocumentor-argument-list__entry">
  270. <span class="phpdocumentor-signature__argument__name">$degree</span>
  271. : <span class="phpdocumentor-signature__argument__return-type">int|null</span>
  272. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  273. <dd class="phpdocumentor-argument-list__definition">
  274. </dd>
  275. </dl>
  276. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  277. Tags
  278. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  279. </h5>
  280. <dl class="phpdocumentor-tag-list">
  281. <dt class="phpdocumentor-tag-list__entry">
  282. <span class="phpdocumentor-tag__name">throws</span>
  283. </dt>
  284. <dd class="phpdocumentor-tag-list__definition">
  285. <span class="phpdocumentor-tag-link"><abbr title="\InvalidArgumentException">InvalidArgumentException</abbr></span>
  286. <section class="phpdocumentor-description"><p>if argument is null or empty, or if leading coefficient is 0 and this is not a
  287. constant polynomial (that is, it is not the monomial &quot;0&quot;)</p>
  288. </section>
  289. </dd>
  290. </dl>
  291. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  292. <span class="phpdocumentor-signature__response_type">mixed</span>
  293. &mdash;
  294. </article>
  295. <article
  296. class="phpdocumentor-element
  297. -method
  298. -public
  299. "
  300. >
  301. <h4 class="phpdocumentor-element__name" id="method_addOrSubtract">
  302. addOrSubtract()
  303. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_addOrSubtract" class="headerlink"><i class="fas fa-link"></i></a>
  304. </h4>
  305. <aside class="phpdocumentor-element-found-in">
  306. <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>
  307. :
  308. <span class="phpdocumentor-element-found-in__line">230</span>
  309. </aside>
  310. <code class="phpdocumentor-code phpdocumentor-signature ">
  311. <span class="phpdocumentor-signature__visibility">public</span>
  312. <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>
  313. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  314. <dl class="phpdocumentor-argument-list">
  315. <dt class="phpdocumentor-argument-list__entry">
  316. <span class="phpdocumentor-signature__argument__name">$other</span>
  317. : <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>
  318. </dt>
  319. <dd class="phpdocumentor-argument-list__definition">
  320. <section class="phpdocumentor-description"></section>
  321. </dd>
  322. </dl>
  323. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  324. <span class="phpdocumentor-signature__response_type">self</span>
  325. &mdash;
  326. </article>
  327. <article
  328. class="phpdocumentor-element
  329. -method
  330. -public
  331. "
  332. >
  333. <h4 class="phpdocumentor-element__name" id="method_divide">
  334. divide()
  335. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_divide" class="headerlink"><i class="fas fa-link"></i></a>
  336. </h4>
  337. <aside class="phpdocumentor-element-found-in">
  338. <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>
  339. :
  340. <span class="phpdocumentor-element-found-in__line">142</span>
  341. </aside>
  342. <code class="phpdocumentor-code phpdocumentor-signature ">
  343. <span class="phpdocumentor-signature__visibility">public</span>
  344. <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>
  345. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  346. <dl class="phpdocumentor-argument-list">
  347. <dt class="phpdocumentor-argument-list__entry">
  348. <span class="phpdocumentor-signature__argument__name">$other</span>
  349. : <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>
  350. </dt>
  351. <dd class="phpdocumentor-argument-list__definition">
  352. <section class="phpdocumentor-description"></section>
  353. </dd>
  354. </dl>
  355. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  356. <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>
  357. &mdash;
  358. <section class="phpdocumentor-description"><p>[quotient, remainder]</p>
  359. </section>
  360. </article>
  361. <article
  362. class="phpdocumentor-element
  363. -method
  364. -public
  365. "
  366. >
  367. <h4 class="phpdocumentor-element__name" id="method_evaluateAt">
  368. evaluateAt()
  369. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_evaluateAt" class="headerlink"><i class="fas fa-link"></i></a>
  370. </h4>
  371. <aside class="phpdocumentor-element-found-in">
  372. <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>
  373. :
  374. <span class="phpdocumentor-element-found-in__line">102</span>
  375. </aside>
  376. <code class="phpdocumentor-code phpdocumentor-signature ">
  377. <span class="phpdocumentor-signature__visibility">public</span>
  378. <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>
  379. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  380. <dl class="phpdocumentor-argument-list">
  381. <dt class="phpdocumentor-argument-list__entry">
  382. <span class="phpdocumentor-signature__argument__name">$a</span>
  383. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  384. </dt>
  385. <dd class="phpdocumentor-argument-list__definition">
  386. <section class="phpdocumentor-description"></section>
  387. </dd>
  388. </dl>
  389. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  390. <span class="phpdocumentor-signature__response_type">int</span>
  391. &mdash;
  392. <section class="phpdocumentor-description"><p>evaluation of this polynomial at a given point</p>
  393. </section>
  394. </article>
  395. <article
  396. class="phpdocumentor-element
  397. -method
  398. -public
  399. "
  400. >
  401. <h4 class="phpdocumentor-element__name" id="method_getCoefficient">
  402. getCoefficient()
  403. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficient" class="headerlink"><i class="fas fa-link"></i></a>
  404. </h4>
  405. <aside class="phpdocumentor-element-found-in">
  406. <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>
  407. :
  408. <span class="phpdocumentor-element-found-in__line">74</span>
  409. </aside>
  410. <code class="phpdocumentor-code phpdocumentor-signature ">
  411. <span class="phpdocumentor-signature__visibility">public</span>
  412. <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>
  413. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  414. <dl class="phpdocumentor-argument-list">
  415. <dt class="phpdocumentor-argument-list__entry">
  416. <span class="phpdocumentor-signature__argument__name">$degree</span>
  417. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  418. </dt>
  419. <dd class="phpdocumentor-argument-list__definition">
  420. <section class="phpdocumentor-description"></section>
  421. </dd>
  422. </dl>
  423. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  424. <span class="phpdocumentor-signature__response_type">int</span>
  425. &mdash;
  426. <section class="phpdocumentor-description"><p>$coefficient of x^degree term in this polynomial</p>
  427. </section>
  428. </article>
  429. <article
  430. class="phpdocumentor-element
  431. -method
  432. -public
  433. "
  434. >
  435. <h4 class="phpdocumentor-element__name" id="method_getCoefficients">
  436. getCoefficients()
  437. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getCoefficients" class="headerlink"><i class="fas fa-link"></i></a>
  438. </h4>
  439. <aside class="phpdocumentor-element-found-in">
  440. <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>
  441. :
  442. <span class="phpdocumentor-element-found-in__line">81</span>
  443. </aside>
  444. <code class="phpdocumentor-code phpdocumentor-signature ">
  445. <span class="phpdocumentor-signature__visibility">public</span>
  446. <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>
  447. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  448. <span class="phpdocumentor-signature__response_type">array&lt;string|int, int&gt;</span>
  449. &mdash;
  450. </article>
  451. <article
  452. class="phpdocumentor-element
  453. -method
  454. -public
  455. "
  456. >
  457. <h4 class="phpdocumentor-element__name" id="method_getDegree">
  458. getDegree()
  459. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_getDegree" class="headerlink"><i class="fas fa-link"></i></a>
  460. </h4>
  461. <aside class="phpdocumentor-element-found-in">
  462. <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>
  463. :
  464. <span class="phpdocumentor-element-found-in__line">88</span>
  465. </aside>
  466. <code class="phpdocumentor-code phpdocumentor-signature ">
  467. <span class="phpdocumentor-signature__visibility">public</span>
  468. <span class="phpdocumentor-signature__name">getDegree</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  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>$degree of this polynomial</p>
  473. </section>
  474. </article>
  475. <article
  476. class="phpdocumentor-element
  477. -method
  478. -public
  479. "
  480. >
  481. <h4 class="phpdocumentor-element__name" id="method_isZero">
  482. isZero()
  483. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_isZero" class="headerlink"><i class="fas fa-link"></i></a>
  484. </h4>
  485. <aside class="phpdocumentor-element-found-in">
  486. <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>
  487. :
  488. <span class="phpdocumentor-element-found-in__line">95</span>
  489. </aside>
  490. <code class="phpdocumentor-code phpdocumentor-signature ">
  491. <span class="phpdocumentor-signature__visibility">public</span>
  492. <span class="phpdocumentor-signature__name">isZero</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  493. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  494. <span class="phpdocumentor-signature__response_type">bool</span>
  495. &mdash;
  496. <section class="phpdocumentor-description"><p>true if this polynomial is the monomial &quot;0&quot;</p>
  497. </section>
  498. </article>
  499. <article
  500. class="phpdocumentor-element
  501. -method
  502. -public
  503. "
  504. >
  505. <h4 class="phpdocumentor-element__name" id="method_mod">
  506. mod()
  507. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_mod" class="headerlink"><i class="fas fa-link"></i></a>
  508. </h4>
  509. <aside class="phpdocumentor-element-found-in">
  510. <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>
  511. :
  512. <span class="phpdocumentor-element-found-in__line">212</span>
  513. </aside>
  514. <code class="phpdocumentor-code phpdocumentor-signature ">
  515. <span class="phpdocumentor-signature__visibility">public</span>
  516. <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>
  517. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  518. <dl class="phpdocumentor-argument-list">
  519. <dt class="phpdocumentor-argument-list__entry">
  520. <span class="phpdocumentor-signature__argument__name">$other</span>
  521. : <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>
  522. </dt>
  523. <dd class="phpdocumentor-argument-list__definition">
  524. <section class="phpdocumentor-description"></section>
  525. </dd>
  526. </dl>
  527. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  528. <span class="phpdocumentor-signature__response_type">self</span>
  529. &mdash;
  530. </article>
  531. <article
  532. class="phpdocumentor-element
  533. -method
  534. -public
  535. "
  536. >
  537. <h4 class="phpdocumentor-element__name" id="method_multiply">
  538. multiply()
  539. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiply" class="headerlink"><i class="fas fa-link"></i></a>
  540. </h4>
  541. <aside class="phpdocumentor-element-found-in">
  542. <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>
  543. :
  544. <span class="phpdocumentor-element-found-in__line">122</span>
  545. </aside>
  546. <code class="phpdocumentor-code phpdocumentor-signature ">
  547. <span class="phpdocumentor-signature__visibility">public</span>
  548. <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>
  549. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  550. <dl class="phpdocumentor-argument-list">
  551. <dt class="phpdocumentor-argument-list__entry">
  552. <span class="phpdocumentor-signature__argument__name">$other</span>
  553. : <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>
  554. </dt>
  555. <dd class="phpdocumentor-argument-list__definition">
  556. <section class="phpdocumentor-description"></section>
  557. </dd>
  558. </dl>
  559. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  560. <span class="phpdocumentor-signature__response_type">self</span>
  561. &mdash;
  562. </article>
  563. <article
  564. class="phpdocumentor-element
  565. -method
  566. -public
  567. "
  568. >
  569. <h4 class="phpdocumentor-element__name" id="method_multiplyByMonomial">
  570. multiplyByMonomial()
  571. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyByMonomial" class="headerlink"><i class="fas fa-link"></i></a>
  572. </h4>
  573. <aside class="phpdocumentor-element-found-in">
  574. <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>
  575. :
  576. <span class="phpdocumentor-element-found-in__line">190</span>
  577. </aside>
  578. <code class="phpdocumentor-code phpdocumentor-signature ">
  579. <span class="phpdocumentor-signature__visibility">public</span>
  580. <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>
  581. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  582. <dl class="phpdocumentor-argument-list">
  583. <dt class="phpdocumentor-argument-list__entry">
  584. <span class="phpdocumentor-signature__argument__name">$degree</span>
  585. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  586. </dt>
  587. <dd class="phpdocumentor-argument-list__definition">
  588. <section class="phpdocumentor-description"></section>
  589. </dd>
  590. <dt class="phpdocumentor-argument-list__entry">
  591. <span class="phpdocumentor-signature__argument__name">$coefficient</span>
  592. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  593. </dt>
  594. <dd class="phpdocumentor-argument-list__definition">
  595. <section class="phpdocumentor-description"></section>
  596. </dd>
  597. </dl>
  598. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  599. <span class="phpdocumentor-signature__response_type">self</span>
  600. &mdash;
  601. </article>
  602. <article
  603. class="phpdocumentor-element
  604. -method
  605. -public
  606. "
  607. >
  608. <h4 class="phpdocumentor-element__name" id="method_multiplyInt">
  609. multiplyInt()
  610. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#method_multiplyInt" class="headerlink"><i class="fas fa-link"></i></a>
  611. </h4>
  612. <aside class="phpdocumentor-element-found-in">
  613. <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>
  614. :
  615. <span class="phpdocumentor-element-found-in__line">168</span>
  616. </aside>
  617. <code class="phpdocumentor-code phpdocumentor-signature ">
  618. <span class="phpdocumentor-signature__visibility">public</span>
  619. <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>
  620. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  621. <dl class="phpdocumentor-argument-list">
  622. <dt class="phpdocumentor-argument-list__entry">
  623. <span class="phpdocumentor-signature__argument__name">$scalar</span>
  624. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  625. </dt>
  626. <dd class="phpdocumentor-argument-list__definition">
  627. <section class="phpdocumentor-description"></section>
  628. </dd>
  629. </dl>
  630. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  631. <span class="phpdocumentor-signature__response_type">self</span>
  632. &mdash;
  633. </article>
  634. </section>
  635. <script type="text/javascript">
  636. function loadExternalCodeSnippets(line) {
  637. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  638. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  639. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  640. var language = 'php';
  641. var code = document.createElement('code');
  642. code.className = 'language-' + language;
  643. pre.textContent = '';
  644. pre.setAttribute('data-line', line)
  645. code.textContent = 'Loading…';
  646. pre.appendChild(code);
  647. var xhr = new XMLHttpRequest();
  648. xhr.open('GET', src, true);
  649. xhr.onreadystatechange = function () {
  650. if (xhr.readyState == 4) {
  651. if (xhr.status < 400 && xhr.responseText) {
  652. code.textContent = xhr.responseText;
  653. Prism.highlightElement(code);
  654. }
  655. else if (xhr.status >= 400) {
  656. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  657. }
  658. else {
  659. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  660. }
  661. }
  662. };
  663. xhr.send(null);
  664. });
  665. }
  666. var modals = document.querySelectorAll("[data-modal]");
  667. modals.forEach(function (trigger) {
  668. trigger.addEventListener("click", function (event) {
  669. //event.preventDefault();
  670. const modal = document.getElementById(trigger.dataset.modal);
  671. modal.classList.add("phpdocumentor-modal__open");
  672. loadExternalCodeSnippets(trigger.dataset.line)
  673. const exits = modal.querySelectorAll("[data-exit-button]");
  674. exits.forEach(function (exit) {
  675. exit.addEventListener("click", function (event) {
  676. event.preventDefault();
  677. modal.classList.remove("phpdocumentor-modal__open");
  678. });
  679. });
  680. });
  681. });
  682. </script>
  683. </article>
  684. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  685. <section class="phpdocumentor-search-results__dialog">
  686. <header class="phpdocumentor-search-results__header">
  687. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  688. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  689. </header>
  690. <section class="phpdocumentor-search-results__body">
  691. <ul class="phpdocumentor-search-results__entries"></ul>
  692. </section>
  693. </section>
  694. </section>
  695. </div>
  696. </div>
  697. <a href="classes/chillerlan-QRCode-Common-GenericGFPoly.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  698. </main>
  699. <script>
  700. cssVars({});
  701. </script>
  702. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  703. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  704. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  705. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  706. </body>
  707. </html>