MCordingley\LinearAlgebraTest\LUPTest::testLower PHP Méthode

testLower() public méthode

public testLower ( )
    public function testLower()
    {
        $lower = $this->getDecomposition()->lower();
        static::assertEquals(1, $lower->get(0, 0));
        static::assertEquals(0, $lower->get(0, 1));
        static::assertEquals(0, $lower->get(0, 2));
        static::assertEquals(0, $lower->get(0, 3));
        static::assertEquals(0.4, $lower->get(1, 0));
        static::assertEquals(1, $lower->get(1, 1));
        static::assertEquals(0, $lower->get(1, 2));
        static::assertEquals(0, $lower->get(1, 3));
        static::assertEquals(-0.2, $lower->get(2, 0));
        static::assertEquals(0.5, $lower->get(2, 1));
        static::assertEquals(1, $lower->get(2, 2));
        static::assertEquals(0, $lower->get(2, 3));
        static::assertEquals(0.6, $lower->get(3, 0));
        static::assertEquals(0, $lower->get(3, 1));
        static::assertEquals(0.4, $lower->get(3, 2));
        static::assertEquals(1, $lower->get(3, 3));
    }