From cc545c5b493f94e89917cd5b758f77511f8b4458 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 13 Aug 2023 14:08:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- arithmetic_analysis/jacobi_iteration_method.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arithmetic_analysis/jacobi_iteration_method.py b/arithmetic_analysis/jacobi_iteration_method.py index cfbf88f1e..7bb285b68 100644 --- a/arithmetic_analysis/jacobi_iteration_method.py +++ b/arithmetic_analysis/jacobi_iteration_method.py @@ -124,8 +124,8 @@ def jacobi_iteration_method( """ val_last = table[:, -1] """ - masks - boolean mask of all strings without diagonal - elements array coefficient_matrix + masks - boolean mask of all strings without diagonal + elements array coefficient_matrix """ masks = ~np.eye(coefficient_matrix.shape[0], dtype=bool) """ @@ -133,13 +133,13 @@ def jacobi_iteration_method( """ no_diag = coefficient_matrix[masks].reshape(-1, rows - 1) """ - Here we get 'i_col' - these are the column numbers, for each row + Here we get 'i_col' - these are the column numbers, for each row without diagonal elements, except for the last column. """ i_row, i_col = np.where(masks) ind = i_col.reshape(-1, rows - 1) """ - 'i_col' is converted to a two-dimensional list 'ind', + 'i_col' is converted to a two-dimensional list 'ind', which will be used to make selections from 'init_val' ('arr' array see below). """