You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
248 B

9 months ago
<?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);