mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	Making sure matrices looks like matrices
This commit is contained in:
		@@ -35,6 +35,7 @@ class MatrixTest extends TestCase
 | 
			
		||||
        $a = new SquareMatrix(1, 2, 3,
 | 
			
		||||
                              4, 5, 6,
 | 
			
		||||
                              7, 8, 9);
 | 
			
		||||
 | 
			
		||||
        $this->assertEquals(0, $a->getDeterminant());
 | 
			
		||||
 | 
			
		||||
        $pi = new SquareMatrix(3, 1, 4,
 | 
			
		||||
@@ -47,7 +48,7 @@ class MatrixTest extends TestCase
 | 
			
		||||
 | 
			
		||||
    public function testFourByFourDeterminant()
 | 
			
		||||
    {
 | 
			
		||||
        $a = new SquareMatrix(1, 2, 3, 4,
 | 
			
		||||
        $a = new SquareMatrix( 1,  2,  3,  4,
 | 
			
		||||
                               5,  6,  7,  8,
 | 
			
		||||
                               9, 10, 11, 12,
 | 
			
		||||
                              13, 14, 15, 16);
 | 
			
		||||
@@ -65,7 +66,7 @@ class MatrixTest extends TestCase
 | 
			
		||||
 | 
			
		||||
    public function testEightByEightDeterminant()
 | 
			
		||||
    {
 | 
			
		||||
        $a = new SquareMatrix(1, 2, 3, 4, 5, 6, 7, 8,
 | 
			
		||||
        $a = new SquareMatrix( 1,  2,  3,  4,  5,  6,  7,  8,
 | 
			
		||||
                               9, 10, 11, 12, 13, 14, 15, 16,
 | 
			
		||||
                              17, 18, 19, 20, 21, 22, 23, 24,
 | 
			
		||||
                              25, 26, 27, 28, 29, 30, 31, 32,
 | 
			
		||||
@@ -133,7 +134,7 @@ class MatrixTest extends TestCase
 | 
			
		||||
        $a = new SquareMatrix(1, 2,
 | 
			
		||||
                              3, 4);
 | 
			
		||||
 | 
			
		||||
        $b = new SquareMatrix(4, -2,
 | 
			
		||||
        $b = new SquareMatrix( 4, -2,
 | 
			
		||||
                              -3,  1);
 | 
			
		||||
 | 
			
		||||
        $this->assertTrue($b->equals($a->getAdjugate()));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user