Skip to content

Commit

Permalink
Add type annotations to is_posdef
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Mar 1, 2023
1 parent c56fc9c commit 4526472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qpsolvers_benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def time_solve_problem(
return solution, runtime


def is_posdef(M):
def is_posdef(M: np.ndarray) -> bool:
"""Test whether a matrix is positive-definite.
Args:
Expand Down

0 comments on commit 4526472

Please sign in to comment.