mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-04 19:52:46 +02:00
Cleanup in src/, adding namespaces, removing php closing tag and general code cleanup
This commit is contained in:
9
src/Numerics/IdentityMatrix.php
Normal file
9
src/Numerics/IdentityMatrix.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
|
||||
class IdentityMatrix extends DiagonalMatrix
|
||||
{
|
||||
public function __construct($rows)
|
||||
{
|
||||
parent::__construct(array_fill(0, $rows, 1));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user