Skip to content

Commit

Permalink
Merge pull request #3 from sensasi-delight/master
Browse files Browse the repository at this point in the history
upgrade mathPHP from 0.38 to 2.6
  • Loading branch information
aboks authored Jun 27, 2022
2 parents 5a8d56e + f160bbb commit 8091767
Show file tree
Hide file tree
Showing 7 changed files with 186 additions and 251 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Basic usage
```php
<?php
use Aboks\PowerIteration\PowerIteration;
use MathPHP\LinearAlgebra\Matrix;
use MathPHP\LinearAlgebra\MatrixFactory;

$power_iteration = new PowerIteration();
$dominant_eigenpair = $power_iteration->getDominantEigenpair(new Matrix([
$dominant_eigenpair = $power_iteration->getDominantEigenpair(MatrixFactory::create([
[2, 1],
[0, 1]
]));
Expand All @@ -40,7 +40,7 @@ use Aboks\PowerIteration\PowerIteration;
use MathPHP\LinearAlgebra\Matrix;

$power_iteration = new PowerIteration();
$dominant_eigenpair = $power_iteration->getLeastDominantEigenpair(new Matrix([
$dominant_eigenpair = $power_iteration->getLeastDominantEigenpair(MatrixFactory::create([
[2, 1],
[0, 1]
]));
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require": {
"php": "^7.3 || ^8.0",
"markrogoyski/math-php": "^0.38.0"
"markrogoyski/math-php": "^2.6"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
Expand Down
Loading

0 comments on commit 8091767

Please sign in to comment.