예제 #1
0
 public function testAdjugate()
 {
     $matrix = new Matrix([[3, 0, 2], [2, 0, -2], [0, 1, 1]]);
     $adjugated = $matrix->adjugate();
     $result = new Matrix([[2, 2, 0], [-2, 3, 10], [2, -3, 0]]);
     $this->assertTrue($adjugated->equals($result));
 }