-
Notifications
You must be signed in to change notification settings - Fork 241
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::kullbackLeiblerDivergence
removed (UseMathPHP\Statistics\Divergence::kullbackLeibler
instead) -
MathPHP\Statistics\Distance::jensenShannonDivergence
removed (UseMathPHP\Statistics\Divergence::jensenShannon
instead) - Matrix Decompositions no longer implement
\ArrayAccess
interface to access decomposition matrixes. Use properties instead.-
MathPHP\LinearAlgebra\Decomposition\Cholesky
-
$cholesky['L']
,$cholesky['Lᵀ']
,$cholesky['LT']
removed, use$cholesky->L
,$cholesky->Lᵀ
,$cholesky->LT
instead.
-
-
MathPHP\LinearAlgebra\Decomposition\Crout
-
$crout['L']
,$crout['U']
removed, use$crout->L
,$crout->U
instead.
-
-
MathPHP\LinearAlgebra\Decomposition\LU
-
$LU['L']
,LU['U']
,LU['P']
removed, use$LU->L
,$LU->U
,$LU->P
instead.
-
-
MathPHP\LinearAlgebra\Decomposition\QR
-
$QR['Q']
,$QR['R']
removed, use$QR->Q
,$QR->R
instead.
-
-
-
- Methods renamed (backwards-incompatible change)
-
MathPHP\Statistics\Distance::bhattacharyyaDistance
renamed toMathPHP\Statistics\Distance::bhattacharyya
-
MathPHP\Statistics\Distance::hellingerDistance
renamed toMathPHP\Statistics\Distance::hellinger
-
- Moved Functionality (backwards-incompatible change)
-
MathPHP\Functions\Polynomial
moved toMathPHP\Expression\Polynomial
-
MathPHP\Functions\Piecewise
moved toMathPHP\Expression\Piecewise
-
- Matrix internal refactoring
- Note: These changes will not affect any client code as long as matrices were created using
MatrixFactory
. -
Matrix
is not a base abstract class for all matrix classes to extend -
Matrix
renamedNumericMatrix
-
Matrix
base methodcreateZeroValue
- Use case is various
ObjectMatrix
classes that implementObjectArithmetic
- Use case is various
-
RowVector
removed. UseMatrixFactory::createFromRowVector
instead -
ColumnVector
removed. UseMatrixFactory::createFromColumnVector
instead
- Note: These changes will not affect any client code as long as matrices were created using