Files
trueskill/src/Numerics/IdentityMatrix.php

12 lines
196 B
PHP
Raw Normal View History

2022-07-05 15:55:47 +02:00
<?php
namespace DNW\Skills\Numerics;
class IdentityMatrix extends DiagonalMatrix
{
2023-08-02 10:10:57 +00:00
public function __construct(int $rows)
{
parent::__construct(array_fill(0, $rows, 1));
}
2022-07-05 15:55:47 +02:00
}