Skip to content

Commit

Permalink
fix invalid typehint for subs method (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
alucic authored and akondas committed Jul 26, 2017
1 parent 65b8a13 commit 47cdff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Phpml/Helper/Optimizer/ConjugateGradient.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ public static function adds(array $m1, float $m2, int $mag = 1)
* 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);
}
Expand Down

0 comments on commit 47cdff0

Please sign in to comment.