Files
apps.supersam24.ru/vendor/markbaker/matrix/examples/test.php
T

19 lines
248 B
PHP
Raw Normal View History

2026-10-22 00:04:27 +03:00
<?php
include __DIR__ . '/../classes/Bootstrap.php';
$grid1 = [
[1, 3, 2],
[2, 3, 1],
];
$grid2 = [
[1, 6],
[0, 1],
];
$matrix = new Matrix\Matrix($grid1);
$new = $matrix->directsum(new Matrix\Matrix($grid2));
var_dump($new);