You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: base/docs/helpdb.jl
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -7359,11 +7359,12 @@ doc"""
7359
7359
Uses :func:`eigs` underneath.
7360
7360
7361
7361
Inputs are:
7362
-
* ``A``: Linear operator. It can either subtype of ``AbstractArray`` (e.g., sparse matrix) or duck typed. For duck typing ``A`` has to support ``size(A)``, ``eltype(A)``, ``A * vector`` and ``A' * vector``.
7363
-
* ``nsv``: Number of singular values.
7364
-
* ``ritzvec``: Whether to return the left and right singular vectors ``left_sv`` and ``right_sv``, default is ``true``. If ``false`` the singular vectors are omitted from the output.
7365
-
* ``tol``: tolerance, see :func:`eigs`.
7366
-
* ``maxiter``: Maximum number of iterations, see :func:`eigs`.
7362
+
7363
+
* ``A``: Linear operator. It can either subtype of ``AbstractArray`` (e.g., sparse matrix) or duck typed. For duck typing ``A`` has to support ``size(A)``, ``eltype(A)``, ``A * vector`` and ``A' * vector``.
7364
+
* ``nsv``: Number of singular values.
7365
+
* ``ritzvec``: Whether to return the left and right singular vectors ``left_sv`` and ``right_sv``, default is ``true``. If ``false`` the singular vectors are omitted from the output.
7366
+
* ``tol``: tolerance, see :func:`eigs`.
7367
+
* ``maxiter``: Maximum number of iterations, see :func:`eigs`.
7367
7368
7368
7369
**Example**::
7369
7370
@@ -7604,14 +7605,13 @@ straight line to the given points `(x, y)`, i.e., such that the squared error
Copy file name to clipboardExpand all lines: base/linalg/arnoldi.jl
+46-46Lines changed: 46 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -11,29 +11,29 @@ Computes eigenvalues ``d`` of ``A`` using Lanczos or Arnoldi iterations for
11
11
real symmetric or general nonsymmetric matrices respectively.
12
12
13
13
The following keyword arguments are supported:
14
-
* ``nev``: Number of eigenvalues
15
-
* ``ncv``: Number of Krylov vectors used in the computation; should satisfy ``nev+1 <= ncv <= n`` for real symmetric problems and ``nev+2 <= ncv <= n`` for other problems, where ``n`` is the size of the input matrix ``A``. The default is ``ncv = max(20,2*nev+1)``.
16
-
17
-
Note that these restrictions limit the input matrix ``A`` to be of dimension at least 2.
18
-
* ``which``: type of eigenvalues to compute. See the note below.
* ``tol``: tolerance (:math:`tol \le 0.0` defaults to ``DLAMCH('EPS')``)
33
-
* ``maxiter``: Maximum number of iterations (default = 300)
34
-
* ``sigma``: Specifies the level shift used in inverse iteration. If ``nothing`` (default), defaults to ordinary (forward) iterations. Otherwise, find eigenvalues close to ``sigma`` using shift and invert iterations.
35
-
* ``ritzvec``: Returns the Ritz vectors ``v`` (eigenvectors) if ``true``
36
-
* ``v0``: starting vector from which to start the iterations
14
+
15
+
* ``nev``: Number of eigenvalues
16
+
* ``ncv``: Number of Krylov vectors used in the computation; should satisfy ``nev+1 <= ncv <= n`` for real symmetric problems and ``nev+2 <= ncv <= n`` for other problems, where ``n`` is the size of the input matrix ``A``. The default is ``ncv = max(20,2*nev+1)``.
17
+
Note that these restrictions limit the input matrix ``A`` to be of dimension at least 2.
18
+
* ``which``: type of eigenvalues to compute. See the note below.
* ``tol``: tolerance (:math:`tol \le 0.0` defaults to ``DLAMCH('EPS')``)
33
+
* ``maxiter``: Maximum number of iterations (default = 300)
34
+
* ``sigma``: Specifies the level shift used in inverse iteration. If ``nothing`` (default), defaults to ordinary (forward) iterations. Otherwise, find eigenvalues close to ``sigma`` using shift and invert iterations.
35
+
* ``ritzvec``: Returns the Ritz vectors ``v`` (eigenvectors) if ``true``
36
+
* ``v0``: starting vector from which to start the iterations
37
37
38
38
``eigs`` returns the ``nev`` requested eigenvalues in ``d``, the corresponding Ritz vectors ``v`` (only if ``ritzvec=true``), the number of converged eigenvalues ``nconv``, the number of iterations ``niter`` and the number of matrix vector multiplications ``nmult``, as well as the final residual vector ``resid``.
39
39
@@ -58,29 +58,29 @@ Computes generalized eigenvalues ``d`` of ``A`` and ``B`` using Lanczos or Arnol
58
58
real symmetric or general nonsymmetric matrices respectively.
59
59
60
60
The following keyword arguments are supported:
61
-
* ``nev``: Number of eigenvalues
62
-
* ``ncv``: Number of Krylov vectors used in the computation; should satisfy ``nev+1 <= ncv <= n`` for real symmetric problems and ``nev+2 <= ncv <= n`` for other problems, where ``n`` is the size of the input matrices ``A`` and ``B``. The default is ``ncv = max(20,2*nev+1)``.
63
-
64
-
Note that these restrictions limit the input matrix ``A`` to be of dimension at least 2.
65
-
* ``which``: type of eigenvalues to compute. See the note below.
* ``tol``: tolerance (:math:`tol \le 0.0` defaults to ``DLAMCH('EPS')``)
80
-
* ``maxiter``: Maximum number of iterations (default = 300)
81
-
* ``sigma``: Specifies the level shift used in inverse iteration. If ``nothing`` (default), defaults to ordinary (forward) iterations. Otherwise, find eigenvalues close to ``sigma`` using shift and invert iterations.
82
-
* ``ritzvec``: Returns the Ritz vectors ``v`` (eigenvectors) if ``true``
83
-
* ``v0``: starting vector from which to start the iterations
61
+
62
+
* ``nev``: Number of eigenvalues
63
+
* ``ncv``: Number of Krylov vectors used in the computation; should satisfy ``nev+1 <= ncv <= n`` for real symmetric problems and ``nev+2 <= ncv <= n`` for other problems, where ``n`` is the size of the input matrices ``A`` and ``B``. The default is ``ncv = max(20,2*nev+1)``.
64
+
Note that these restrictions limit the input matrix ``A`` to be of dimension at least 2.
65
+
* ``which``: type of eigenvalues to compute. See the note below.
* ``tol``: tolerance (:math:`tol \le 0.0` defaults to ``DLAMCH('EPS')``)
80
+
* ``maxiter``: Maximum number of iterations (default = 300)
81
+
* ``sigma``: Specifies the level shift used in inverse iteration. If ``nothing`` (default), defaults to ordinary (forward) iterations. Otherwise, find eigenvalues close to ``sigma`` using shift and invert iterations.
82
+
* ``ritzvec``: Returns the Ritz vectors ``v`` (eigenvectors) if ``true``
83
+
* ``v0``: starting vector from which to start the iterations
84
84
85
85
``eigs`` returns the ``nev`` requested eigenvalues in ``d``, the corresponding Ritz vectors ``v`` (only if ``ritzvec=true``), the number of converged eigenvalues ``nconv``, the number of iterations ``niter`` and the number of matrix vector multiplications ``nmult``, as well as the final residual vector ``resid``.
0 commit comments