More types.

This commit is contained in:
2023-08-03 10:09:24 +00:00
parent 75829ddd60
commit f0f4a0c2d6
7 changed files with 34 additions and 5 deletions

View File

@ -24,7 +24,7 @@ class BasicMath
/**
* Sums the items in $itemsToSum
*
* @param array $itemsToSum The items to sum,
* @param mixed[] $itemsToSum The items to sum,
* @param \Closure $callback The function to apply to each array element before summing.
* @return number The sum.
*/

View File

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