diff --git a/utils.py b/utils.py index 3c070293e..46e79079d 100644 --- a/utils.py +++ b/utils.py @@ -174,6 +174,7 @@ def scalar_vector_product(X, Y): def scalar_matrix_product(X, Y): + """Return matrix as a product of a scalar and a matrix""" return [scalar_vector_product(X, y) for y in Y]