From 47cdff0481626a4fa0696e5ecf47fe981628dddd Mon Sep 17 00:00:00 2001 From: Ante Lucic Date: Wed, 26 Jul 2017 02:36:34 -0400 Subject: [PATCH] fix invalid typehint for subs method (#110) --- src/Phpml/Helper/Optimizer/ConjugateGradient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Phpml/Helper/Optimizer/ConjugateGradient.php b/src/Phpml/Helper/Optimizer/ConjugateGradient.php index 44bcd14..67a65a4 100644 --- a/src/Phpml/Helper/Optimizer/ConjugateGradient.php +++ b/src/Phpml/Helper/Optimizer/ConjugateGradient.php @@ -352,11 +352,11 @@ class mp * Element-wise subtraction 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); }