审查视图

vendor/markbaker/matrix/examples/test.php 248 字节
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?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);