mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-04 11:42:47 +02:00
14 lines
228 B
PHP
14 lines
228 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DNW\Skills\Numerics;
|
|
|
|
final class IdentityMatrix extends DiagonalMatrix
|
|
{
|
|
public function __construct(int $rows)
|
|
{
|
|
parent::__construct(array_fill(0, $rows, 1));
|
|
}
|
|
}
|