public function testTrace(array $A, $tr) { $A = MatrixFactory::create($A); $this->assertEquals($tr, $A->trace()); }