mirror of
https://github.com/furyfire/trueskill.git
synced 2026-06-22 13:53:57 +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