@@ -42,7 +42,7 @@ def jacobi_iteration_method(
42
42
>>> iterations = 3
43
43
>>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
44
44
Traceback (most recent call last):
45
- ...
45
+ ...
46
46
ValueError: Coefficient matrix dimensions must be nxn but received 2x3
47
47
48
48
>>> coefficient = np.array([[4, 1, 1], [1, 5, 2], [1, 2, 4]])
@@ -51,7 +51,7 @@ def jacobi_iteration_method(
51
51
>>> iterations = 3
52
52
>>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
53
53
Traceback (most recent call last):
54
- ...
54
+ ...
55
55
ValueError: Coefficient and constant matrices dimensions must be nxn and nx1 but
56
56
received 3x3 and 2x1
57
57
@@ -61,7 +61,7 @@ def jacobi_iteration_method(
61
61
>>> iterations = 3
62
62
>>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
63
63
Traceback (most recent call last):
64
- ...
64
+ ...
65
65
ValueError: Number of initial values must be equal to number of rows in coefficient
66
66
matrix but received 2 and 3
67
67
@@ -71,7 +71,7 @@ def jacobi_iteration_method(
71
71
>>> iterations = 0
72
72
>>> jacobi_iteration_method(coefficient, constant, init_val, iterations)
73
73
Traceback (most recent call last):
74
- ...
74
+ ...
75
75
ValueError: Iterations must be at least 1
76
76
"""
77
77
@@ -138,7 +138,7 @@ def strictly_diagonally_dominant(table: NDArray[float64]) -> bool:
138
138
>>> table = np.array([[4, 1, 1, 2], [1, 5, 2, -6], [1, 2, 3, -4]])
139
139
>>> strictly_diagonally_dominant(table)
140
140
Traceback (most recent call last):
141
- ...
141
+ ...
142
142
ValueError: Coefficient matrix is not strictly diagonally dominant
143
143
"""
144
144
0 commit comments