Skip to content

Commit 2c2e5bb

Browse files
committed
DOC: merge Other Parameters with Parameters, document all return values
1 parent acb3e10 commit 2c2e5bb

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

sklearn/utils/lobpcg.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,6 @@ def lobpcg(A, X,
137137
n-by-sizeY matrix of constraints, sizeY < n
138138
The iterations will be performed in the B-orthogonal complement
139139
of the column-space of Y. Y must be full rank.
140-
141-
Returns
142-
-------
143-
w : array
144-
Array of k eigenvalues
145-
v : array
146-
An array of k eigenvectors. V has the same shape as X.
147-
148-
Other Parameters
149-
----------------
150140
tol : scalar, optional
151141
Solver tolerance (stopping criterion)
152142
by default: tol=n*sqrt(eps)
@@ -162,6 +152,17 @@ def lobpcg(A, X,
162152
retResidualNormsHistory : boolean, optional
163153
whether to return history of residual norms
164154
155+
Returns
156+
-------
157+
w : array
158+
Array of k eigenvalues
159+
v : array
160+
An array of k eigenvectors. V has the same shape as X.
161+
lambdas : list of arrays, optional
162+
The eigenvalue history, if `retLambdaHistory` is True.
163+
rnorms : list of arrays, optional
164+
The history of residual norms, if `retResidualNormsHistory` is True.
165+
165166
Examples
166167
--------
167168

0 commit comments

Comments
 (0)