コード例 #1
0
ファイル: Matrix.php プロジェクト: modulexcite/PHPSkills
 public function __construct($rows)
 {
     parent::__construct(\array_fill(0, $rows, 1));
 }
コード例 #2
0
 /**
  * @dataProvider dataProviderMulti
  */
 public function testIsSymmetric(array $A, array $R)
 {
     $D = new DiagonalMatrix($A);
     $this->assertTrue($D->isSymmetric());
 }