scipy 1.8.0 Pypi GitHub Homepage
Other Docs
BackRef
_compute_lwork(routine, *args, **kwargs)

Several LAPACK routines compute optimal values for LWORK, which they return in a floating-point variable. However, for large values of LWORK, single-precision floating point is not sufficient to hold the exact value --- some LAPACK versions (<= 3.5.0 at least) truncate the returned integer to single precision and in some cases this can be smaller than the required value.

Round floating-point lwork returned by lapack to integer.

Examples

>>> from scipy.linalg import lapack
... n = 5000
... s_r, s_lw = lapack.get_lapack_funcs(('sysvx', 'sysvx_lwork'))
... lwork = lapack._compute_lwork(s_lw, n)
... lwork 32000
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.linalg.lapack._compute_lwork

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/lapack.py#994
type: <class 'function'>
Commit: