Add Moore-Penrose inverse #178
Annotations
10 errors
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L163
Method MathPHP\LinearAlgebra\Decomposition\SVD::diagonalize() should return array{sort: string, P: MathPHP\LinearAlgebra\NumericMatrix} but returns MathPHP\LinearAlgebra\NumericSquareMatrix.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L203
Parameter #2 $callback of function uksort expects callable(TKey, TKey): int, Closure(mixed, mixed): bool given.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L216
PHPDoc tag @var above foreach loop does not specify variable name.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L221
Cannot call method l2Norm() on float|int.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L224
Parameter #1 $v of static method MathPHP\LinearAlgebra\Decomposition\SVD::getStandardBasisIndex() expects MathPHP\LinearAlgebra\Vector, float|int given.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L234
Cannot access offset mixed on float|int.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L280
Method MathPHP\LinearAlgebra\Decomposition\SVD::getStandardBasisIndex() should return int but returns false.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L315
Parameter #2 ...$args of function array_merge expects array, array<int, int>|false given.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L325
Parameter #2 $callback of function uksort expects callable(int|string, int|string): int, Closure(mixed, mixed): bool given.
|
Static analysis:
src/LinearAlgebra/MatrixCatalog.php#L111
Method MathPHP\LinearAlgebra\MatrixCatalog::addPseudoInverse() has parameter $A⁺ with generic class MathPHP\LinearAlgebra\Matrix but does not specify its types: T
|
The logs for this run have expired and are no longer available.
Loading