scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
find_best_blas_type(arrays=(), dtype=None)

Arrays are used to determine the optimal prefix of BLAS routines.

Parameters

arrays : sequence of ndarrays, optional

Arrays can be given to determine optimal prefix of BLAS routines. If not given, double-precision routines will be used, otherwise the most generic type in arrays will be used.

dtype : str or dtype, optional

Data-type specifier. Not used if :None:None:`arrays` is non-empty.

Returns

prefix : str

BLAS/LAPACK prefix character.

dtype : dtype

Inferred Numpy data type.

prefer_fortran : bool

Whether to prefer Fortran order routines over C order.

Find best-matching BLAS/LAPACK type.

Examples

>>> import scipy.linalg.blas as bla
... rng = np.random.default_rng()
... a = rng.random((10,15))
... b = np.asfortranarray(a) # Change the memory layout order
... bla.find_best_blas_type((a,)) ('d', dtype('float64'), False)
>>> bla.find_best_blas_type((a*1j,))
('z', dtype('complex128'), False)
>>> bla.find_best_blas_type((b,))
('d', dtype('float64'), True)
See :

Back References

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

scipy.linalg.blas.find_best_blas_type

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