Add Moore-Penrose inverse #168
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#L273
Method MathPHP\LinearAlgebra\Decomposition\SVD::getStandardBasisIndex() should return int but returns false.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L308
Parameter #2 ...$args of function array_merge expects array, array<int, int>|false given.
|
Static analysis:
src/LinearAlgebra/Decomposition/SVD.php#L318
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
|
Static analysis:
src/LinearAlgebra/MatrixCatalog.php#L113
Property MathPHP\LinearAlgebra\MatrixCatalog<T>::$A⁺ (MathPHP\LinearAlgebra\NumericMatrix) does not accept MathPHP\LinearAlgebra\Matrix.
|
Static analysis:
src/LinearAlgebra/MatrixCatalog.php#L121
Property MathPHP\LinearAlgebra\MatrixCatalog<T>::$A⁺ (MathPHP\LinearAlgebra\NumericMatrix) in isset() is not nullable.
|
Static analysis:
src/LinearAlgebra/MatrixCatalog.php#L127
Method MathPHP\LinearAlgebra\MatrixCatalog::getPseudoInverse() return type with generic class MathPHP\LinearAlgebra\Matrix does not specify its types: T
|
Static analysis:
src/LinearAlgebra/NumericMatrix.php#L1615
Method MathPHP\LinearAlgebra\NumericMatrix::pseudoInverse() should return MathPHP\LinearAlgebra\NumericMatrix but returns MathPHP\LinearAlgebra\Matrix.
|
The logs for this run have expired and are no longer available.
Loading