@@ -42,7 +42,7 @@ def jacobi_iteration_method(
4242 >>> iterations = 3
4343 >>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
4444 Traceback (most recent call last):
45- ...
45+ ...
4646 ValueError: Coefficient matrix dimensions must be nxn but received 2x3
4747
4848 >>> coefficient = np.array([[4, 1, 1], [1, 5, 2], [1, 2, 4]])
@@ -51,7 +51,7 @@ def jacobi_iteration_method(
5151 >>> iterations = 3
5252 >>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
5353 Traceback (most recent call last):
54- ...
54+ ...
5555 ValueError: Coefficient and constant matrices dimensions must be nxn and nx1 but
5656 received 3x3 and 2x1
5757
@@ -61,7 +61,7 @@ def jacobi_iteration_method(
6161 >>> iterations = 3
6262 >>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
6363 Traceback (most recent call last):
64- ...
64+ ...
6565 ValueError: Number of initial values must be equal to number of rows in coefficient
6666 matrix but received 2 and 3
6767
@@ -71,7 +71,7 @@ def jacobi_iteration_method(
7171 >>> iterations = 0
7272 >>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
7373 Traceback (most recent call last):
74- ...
74+ ...
7575 ValueError: Iterations must be at least 1
7676 """
7777
@@ -138,7 +138,7 @@ def strictly_diagonally_dominant(table: NDArray[float64]) -> bool:
138138 >>> table = np.array([[4, 1, 1, 2], [1, 5, 2, -6], [1, 2, 3, -4]])
139139 >>> strictly_diagonally_dominant(table)
140140 Traceback (most recent call last):
141- ...
141+ ...
142142 ValueError: Coefficient matrix is not strictly diagonally dominant
143143 """
144144
0 commit comments