mirror of
https://github.com/furyfire/trueskill.git
synced 2026-07-11 06:23:56 +02:00
Speed up build process
This commit is contained in:
@@ -8,6 +8,6 @@ final class IdentityMatrix extends DiagonalMatrix
|
||||
{
|
||||
public function __construct(int $rows)
|
||||
{
|
||||
parent::__construct(array_fill(0, $rows, 1));
|
||||
parent::__construct(array_fill(0, $rows, (float)1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ final class GaussianWeightedSumFactor extends GaussianFactor
|
||||
* This following is used for convenience, for example, the first entry is [0, 1, 2]
|
||||
* corresponding to v[0] = a1*v[1] + a2*v[2]
|
||||
*
|
||||
* @var array<float[]> $weights
|
||||
* @var array<float[]|int[]> $weights
|
||||
*/
|
||||
private array $weights = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user