mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 04:14:28 +00:00
Getting rid of more warnings.
This commit is contained in:
@ -4,6 +4,9 @@ namespace DNW\Skills\Numerics;
|
||||
|
||||
class DiagonalMatrix extends Matrix
|
||||
{
|
||||
/**
|
||||
* @param float[] $diagonalValues
|
||||
*/
|
||||
public function __construct(array $diagonalValues)
|
||||
{
|
||||
$diagonalCount = count($diagonalValues);
|
||||
|
@ -8,10 +8,16 @@ class Matrix
|
||||
{
|
||||
public const ERROR_TOLERANCE = 0.0000000001;
|
||||
|
||||
/**
|
||||
* @param array<int,array<int,float>> $matrixRowData
|
||||
*/
|
||||
public function __construct(private int $rowCount = 0, private int $columnCount = 0, private array $matrixRowData = array())
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<int,array<int,float>> $columnValues
|
||||
*/
|
||||
public static function fromColumnValues(int $rows, int $columns, array $columnValues): self
|
||||
{
|
||||
$data = [];
|
||||
|
Reference in New Issue
Block a user