Getting rid of more warnings.

This commit is contained in:
2023-08-03 13:08:04 +00:00
parent f0f4a0c2d6
commit 22cc0da96d
10 changed files with 43 additions and 10 deletions

View File

@ -4,6 +4,9 @@ namespace DNW\Skills\Numerics;
class DiagonalMatrix extends Matrix
{
/**
* @param float[] $diagonalValues
*/
public function __construct(array $diagonalValues)
{
$diagonalCount = count($diagonalValues);

View File

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