scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturns
_asarray_validated(a, check_finite=True, sparse_ok=False, objects_ok=False, mask_ok=False, as_inexact=False)

Many SciPy linear algebra functions do support arbitrary array-like input arguments. Examples of commonly unsupported inputs include matrices containing inf/nan, sparse matrix representations, and matrices with complicated elements.

Parameters

a : array_like

The array-like input.

check_finite : bool, optional

Whether to check that the input matrices contain only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs. Default: True

sparse_ok : bool, optional

True if scipy sparse matrices are allowed.

objects_ok : bool, optional

True if arrays with dype('O') are allowed.

mask_ok : bool, optional

True if masked arrays are allowed.

as_inexact : bool, optional

True to convert the input array to a np.inexact dtype.

Returns

ret : ndarray

The converted validated array.

Helper function for SciPy argument validation.

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/_lib/_util.py#241
type: <class 'function'>
Commit: