From 370d5fdcd3cc9693ef1740604b9dd27040cb2652 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 12 Oct 2024 21:23:23 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- matrix/kronecker_product.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix/kronecker_product.py b/matrix/kronecker_product.py index fe31026f1..81b234c6b 100644 --- a/matrix/kronecker_product.py +++ b/matrix/kronecker_product.py @@ -64,12 +64,12 @@ def kronecker_product( for c_index_b in range(cols_matrix_b): result[r_index_a * rows_matrix_b + r_index_b][ c_index_a * cols_matrix_b + c_index_b - ] = ( - matrix_a[r_index_a][c_index_a] * matrix_b[r_index_b][c_index_b] - ) + ] = matrix_a[r_index_a][c_index_a] * matrix_b[r_index_b][c_index_b] return result + if __name__ == "__main__": import doctest + doctest.testmod()