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 Euclidean norm * * @return number */ public function EuclideanNorm() { return MatrixAlgorithms::pNorm($this, 2); }