-
Notifications
You must be signed in to change notification settings - Fork 240
Migration Between Major Versions
Mark Rogoyski edited this page May 6, 2021
·
10 revisions
- PHP minimum version now 7.2 (was 7.0)
- Deprecated code removed (backwards-incompatible change)
-
MathPHP\Statistics\Distance::kullbackLeiblerDivergenceremoved (UseMathPHP\Statistics\Divergence::kullbackLeiblerinstead) -
MathPHP\Statistics\Distance::jensenShannonDivergenceremoved (UseMathPHP\Statistics\Divergence::jensenShannoninstead) - Matrix Decompositions no longer implement
\ArrayAccessinterface to access decomposition matrixes. Use properties instead.-
MathPHP\LinearAlgebra\Decomposition\Cholesky-
$cholesky['L'],$cholesky['Lᵀ'],$cholesky['LT']removed, use$cholesky->L,$cholesky->Lᵀ,$cholesky->LTinstead.
-
-
MathPHP\LinearAlgebra\Decomposition\Crout-
$crout['L'],$crout['U']removed, use$crout->L,$crout->Uinstead.
-
-
MathPHP\LinearAlgebra\Decomposition\LU-
$LU['L'],LU['U'],LU['P']removed, use$LU->L,$LU->U,$LU->Pinstead.
-
-
MathPHP\LinearAlgebra\Decomposition\QR-
$QR['Q'],$QR['R']removed, use$QR->Q,$QR->Rinstead.
-
-
-
- Methods renamed (backwards-incompatible change)
-
MathPHP\Statistics\Distance::bhattacharyyaDistancerenamed toMathPHP\Statistics\Distance::bhattacharyya -
MathPHP\Statistics\Distance::hellingerDistancerenamed toMathPHP\Statistics\Distance::hellinger
-
- Moved Functionality (backwards-incompatible change)
-
MathPHP\Functions\Polynomialmoved toMathPHP\Expression\Polynomial -
MathPHP\Functions\Piecewisemoved toMathPHP\Expression\Piecewise
-
- Matrix internal refactoring
- Note: These changes will not affect any client code as long as matrices were created using
MatrixFactory. -
Matrixis not a base abstract class for all matrix classes to extend -
MatrixrenamedNumericMatrix -
Matrixbase methodcreateZeroValue- Use case is various
ObjectMatrixclasses that implementObjectArithmetic
- Use case is various
-
RowVectorremoved. UseMatrixFactory::createFromRowVectorinstead -
ColumnVectorremoved. UseMatrixFactory::createFromColumnVectorinstead
- Note: These changes will not affect any client code as long as matrices were created using