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());
    }
Beispiel #2
0
 /**
  * Return transposed matrix
  *
  * @return Matrix
  */
 public function T()
 {
     return MatrixAlgorithms::transpose($this);
 }