PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.10
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/markbaker/matrix/classes/src/Matrix.php +4 -27 3.10.23.4.10 View file →
@@ -9,12 +9,8 @@
9 9 */
10 10
11 11 namespace Matrix;
12 12
13 -use Generator;
14 -use Matrix\Decomposition\LU;
15 -use Matrix\Decomposition\QR;
16 -
17 13 /**
18 14 * Matrix object.
19 15 *
20 16 * @package Matrix
@@ -36,9 +32,8 @@
36 32 * @method Matrix subtract(...$matrices)
37 33 * @method Matrix multiply(...$matrices)
38 34 * @method Matrix divideby(...$matrices)
39 35 * @method Matrix divideinto(...$matrices)
40 - * @method Matrix directsum(...$matrices)
41 36 */
42 37 class Matrix
43 38 {
44 39 protected $rows;
@@ -274,11 +269,11 @@
274 269 }
275 270
276 271 /**
277 272 * Returns a Generator that will yield each row of the matrix in turn as a vector matrix
278 - * or the value of each cell if the matrix is a column vector
273 + * or the value of each cell if the matrix is a vector
279 274 *
280 - * @return Generator|Matrix[]|mixed[]
275 + * @return \Generator|Matrix[]|mixed[]
281 276 */
282 277 public function rows()
283 278 {
284 279 foreach ($this->grid as $i => $row) {
@@ -289,11 +284,11 @@
289 284 }
290 285
291 286 /**
292 287 * Returns a Generator that will yield each column of the matrix in turn as a vector matrix
293 - * or the value of each cell if the matrix is a row vector
288 + * or the value of each cell if the matrix is a vector
294 289 *
295 - * @return Generator|Matrix[]|mixed[]
290 + * @return \Generator|Matrix[]|mixed[]
296 291 */
297 292 public function columns()
298 293 {
299 294 for ($i = 0; $i < $this->columns; ++$i) {
@@ -332,26 +327,8 @@
332 327 */
333 328 public function toArray()
334 329 {
335 330 return $this->grid;
336 - }
337 -
338 - /**
339 - * Solve A*X = B.
340 - *
341 - * @param Matrix $B Right hand side
342 - *
343 - * @throws Exception
344 - *
345 - * @return Matrix ... Solution if A is square, least squares solution otherwise
346 - */
347 - public function solve(Matrix $B)
348 - {
349 - if ($this->columns === $this->rows) {
350 - return (new LU($this))->solve($B);
351 - }
352 -
353 - return (new QR($this))->solve($B);
354 331 }
355 332
356 333 protected static $getters = [
357 334 'rows',