scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturns
estimate_rank(A, eps)

The matrix A can be given as either a numpy.ndarray or a scipy.sparse.linalg.LinearOperator , with different algorithms used for each case. If A is of type numpy.ndarray , then the output rank is typically about 8 higher than the actual numerical rank.

            <Comment: 
   |value: '..  This function automatically detects the form of the input parameters and\n    passes them to the appropriate backend. For details,\n    see :func:`_backend.idd_estrank`, :func:`_backend.idd_findrank`,\n    :func:`_backend.idz_estrank`, and :func:`_backend.idz_findrank`.'
   |>
           

Parameters

A : :class:`numpy.ndarray` or :class:`scipy.sparse.linalg.LinearOperator`

Matrix whose rank is to be estimated, given as either a numpy.ndarray or a scipy.sparse.linalg.LinearOperator with the :None:None:`rmatvec` method (to apply the matrix adjoint).

eps : float

Relative error for numerical rank definition.

Returns

int

Estimated matrix rank.

Estimate matrix rank to a specified relative precision using randomized methods.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/linalg/interpolative.py#954
type: <class 'function'>
Commit: