This commit is contained in:
yyh931018@qq.com
2022-09-08 15:32:32 +08:00
commit 1b0c8f4196
4714 changed files with 974427 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
include __DIR__ . '/../vendor/autoload.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);