mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
pre-commit autoupdate 2025-09-11 (#12963)
* pre-commit autoupdate 2025-09-11 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ def retroactive_resolution(
|
||||
[ 0.5]])
|
||||
"""
|
||||
|
||||
rows, columns = np.shape(coefficients)
|
||||
rows, _columns = np.shape(coefficients)
|
||||
|
||||
x: NDArray[float64] = np.zeros((rows, 1), dtype=float)
|
||||
for row in reversed(range(rows)):
|
||||
|
||||
@@ -112,7 +112,7 @@ def jacobi_iteration_method(
|
||||
(coefficient_matrix, constant_matrix), axis=1
|
||||
)
|
||||
|
||||
rows, cols = table.shape
|
||||
rows, _cols = table.shape
|
||||
|
||||
strictly_diagonally_dominant(table)
|
||||
|
||||
@@ -149,7 +149,7 @@ def jacobi_iteration_method(
|
||||
|
||||
# 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)
|
||||
_i_row, i_col = np.where(masks)
|
||||
ind = i_col.reshape(-1, rows - 1)
|
||||
|
||||
#'i_col' is converted to a two-dimensional list 'ind', which will be
|
||||
|
||||
Reference in New Issue
Block a user