public function testTranspose() { $trans_A = MatrixFactory::fromString('1, 2, 5; 5, 2, 5; 4, 2, 1'); $this->assertEquals($trans_A->getArray(), MatrixAlgorithms::transpose($this->A)->getArray()); }
/** * Return transposed matrix * * @return Matrix */ public function T() { return MatrixAlgorithms::transpose($this); }