mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2025-01-24 23:58:24 +00:00
fix invalid typehint for subs method (#110)
This commit is contained in:
parent
65b8a13612
commit
47cdff0481
@ -352,11 +352,11 @@ class mp
|
||||
* Element-wise <b>subtraction</b> of a vector with a scalar
|
||||
*
|
||||
* @param array $m1
|
||||
* @param array $m2
|
||||
* @param float $m2
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function subs(array $m1, array $m2)
|
||||
public static function subs(array $m1, float $m2)
|
||||
{
|
||||
return self::adds($m1, $m2, -1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user