コード例 #1
0
    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());
    }
コード例 #2
0
ファイル: matrix.php プロジェクト: nosun/Matrix
 /**
  * Return  Euclidean norm
  *
  * @return number
  */
 public function EuclideanNorm()
 {
     return MatrixAlgorithms::pNorm($this, 2);
 }