Speed up build process

This commit is contained in:
2026-07-08 09:46:12 +00:00
parent a83efbfa5c
commit eb3fbbcbcf
5 changed files with 22 additions and 39 deletions

View File

@@ -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));
}
}

View File

@@ -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 = [];