first commit
This commit is contained in:
19
phpspreadsheet_1.8.1.0_php-7.0/vendor/markbaker/matrix/examples/test.php
vendored
Executable file
19
phpspreadsheet_1.8.1.0_php-7.0/vendor/markbaker/matrix/examples/test.php
vendored
Executable file
@ -0,0 +1,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);
|
Reference in New Issue
Block a user