Low-level BLAS functions (scipy.linalg.blas)#

This module contains low-level functions from the BLAS library.

Added in version 0.12.0.

Note

The common overwrite_<> option in many routines, allows the input arrays to be overwritten to avoid extra memory allocation. However this requires the array to satisfy two conditions which are memory order and the data type to match exactly the order and the type expected by the routine.

As an example, if you pass a double precision float array to any S.... routine which expects single precision arguments, f2py will create an intermediate array to match the argument types and overwriting will be performed on that intermediate array.

Similarly, if a C-contiguous array is passed, f2py will pass a FORTRAN-contiguous array internally. Please make sure that these details are satisfied. More information can be found in the f2py documentation.

Warning

These functions do little to no error checking. It is possible to cause crashes by mis-using them, so prefer using the higher-level routines in scipy.linalg.

Finding functions#

get_blas_funcs(names[, arrays, dtype, ilp64])

Return available BLAS function objects from names.

find_best_blas_type([arrays, dtype])

Find best-matching BLAS/LAPACK type.

BLAS Level 1 functions#

sasum

saxpy

scasum

scnrm2

scopy

sdot

snrm2

srot

srotg

srotm

srotmg

sscal

sswap

dasum

daxpy

dcopy

ddot

dnrm2

drot

drotg

drotm

drotmg

dscal

dswap

dzasum

dznrm2

icamax

idamax

isamax

izamax

caxpy

ccopy

cdotc

cdotu

crotg

cscal

csrot

csscal

cswap

zaxpy

zcopy

zdotc

zdotu

zdrot

zdscal

zrotg

zscal

zswap

BLAS Level 2 functions#

sgbmv

sgemv

sger

ssbmv

sspmv

sspr

sspr2

ssymv

ssyr

ssyr2

stbmv

stbsv

stpmv

stpsv

strmv

strsv

dgbmv

dgemv

dger

dsbmv

dspmv

dspr

dspr2

dsymv

dsyr

dsyr2

dtbmv

dtbsv

dtpmv

dtpsv

dtrmv

dtrsv

cgbmv

cgemv

cgerc

cgeru

chbmv

chemv

cher

cher2

chpmv

chpr

chpr2

cspmv

cspr

csyr

ctbmv

ctbsv

ctpmv

ctpsv

ctrmv

ctrsv

zgbmv

zgemv

zgerc

zgeru

zhbmv

zhemv

zher

zher2

zhpmv

zhpr

zhpr2

zspmv

zspr

zsyr

ztbmv

ztbsv

ztpmv

ztpsv

ztrmv

ztrsv

BLAS Level 3 functions#

sgemm

ssymm

ssyr2k

ssyrk

strmm

strsm

dgemm

dsymm

dsyr2k

dsyrk

dtrmm

dtrsm

cgemm

chemm

cher2k

cherk

csymm

csyr2k

csyrk

ctrmm

ctrsm

zgemm

zhemm

zher2k

zherk

zsymm

zsyr2k

zsyrk

ztrmm

ztrsm