public function testLUDecomposition(array $A, array $L, array $U, array $P)
{
$A = MatrixFactory::create($A);
$L = MatrixFactory::create($L);
$U = MatrixFactory::create($U);
$P = MatrixFactory::create($P);
$LU = $A->LUDecomposition();
$this->assertEquals($L, $LU['L'], '', 0.001);
$this->assertEquals($U, $LU['U'], '', 0.001);
$this->assertEquals($P, $LU['P'], '', 0.001);
}