Skip to content

Commit 7977b61

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d2afa4c commit 7977b61

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

linear_algebra/lanczos_algorithm.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44
def lanczos(a: np.ndarray) -> tuple[list[float], list[float]]:
55
"""
6-
Implements the Lanczos algorithm for a symmetric matrix.
6+
Implements the Lanczos algorithm for a symmetric matrix.
77
8-
Parameters:
9-
-----------
10-
matrix : numpy.ndarray
11-
Symmetric matrix of size (n, n).
8+
Parameters:
9+
-----------
10+
matrix : numpy.ndarray
11+
Symmetric matrix of size (n, n).
1212
13-
Returns:
14-
--------
15-
alpha : [float]
16-
List of diagonal elements of the resulting tridiagonal matrix.
17-
beta : [float]
18-
List of off-diagonal elements of the resulting tridiagonal matrix.
19-
"""
13+
Returns:
14+
--------
15+
alpha : [float]
16+
List of diagonal elements of the resulting tridiagonal matrix.
17+
beta : [float]
18+
List of off-diagonal elements of the resulting tridiagonal matrix.
19+
"""
2020
n = a.shape[0]
2121
v = np.zeros((n, n))
2222
rng = np.random.default_rng()

0 commit comments

Comments
 (0)