mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-04 19:52:46 +02:00
12 lines
196 B
PHP
12 lines
196 B
PHP
<?php
|
|
|
|
namespace DNW\Skills\Numerics;
|
|
|
|
class IdentityMatrix extends DiagonalMatrix
|
|
{
|
|
public function __construct(int $rows)
|
|
{
|
|
parent::__construct(array_fill(0, $rows, 1));
|
|
}
|
|
}
|