PHP code example of lisachenko / native-php-matrix
1. Go to this page and download the library: Download lisachenko/native-php-matrix library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lisachenko / native-php-matrix example snippets
declare(strict_types=1);
use Lisachenko\NativePhpMatrix\Matrix;
$first = new Matrix([[10, 20, 30]]);
$second = new Matrix([[2, 4, 6]]);
$value = $first * 2 + $second; // Matrix([[22, 44, 66]])
bash
composer