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 commonoverwrite_<> option in many routines, allows theinput arrays to be overwritten to avoid extra memory allocation.However this requires the array to satisfy two conditionswhich are memory order and the data type to match exactly theorder and the type expected by the routine.

As an example, if you pass a double precision float array to anyS.... routine which expects single precision arguments, f2pywill create an intermediate array to match the argument types andoverwriting will be performed on that intermediate array.

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

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 inscipy.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(x,[n,offx,incx])

Wrapper forsasum.

saxpy(x,y,[n,a,offx,incx,offy,incy])

Wrapper forsaxpy.

scasum(x,[n,offx,incx])

Wrapper forscasum.

scnrm2(x,[n,offx,incx])

Wrapper forscnrm2.

scopy(x,y,[n,offx,incx,offy,incy])

Wrapper forscopy.

sdot(x,y,[n,offx,incx,offy,incy])

Wrapper forsdot.

snrm2(x,[n,offx,incx])

Wrapper forsnrm2.

srot(...)

Wrapper forsrot.

srotg(a, b)

Wrapper forsrotg.

srotm(...)

Wrapper forsrotm.

srotmg(d1, d2, x1, y1)

Wrapper forsrotmg.

sscal(a,x,[n,offx,incx])

Wrapper forsscal.

sswap(x,y,[n,offx,incx,offy,incy])

Wrapper forsswap.

dasum(x,[n,offx,incx])

Wrapper fordasum.

daxpy(x,y,[n,a,offx,incx,offy,incy])

Wrapper fordaxpy.

dcopy(x,y,[n,offx,incx,offy,incy])

Wrapper fordcopy.

ddot(x,y,[n,offx,incx,offy,incy])

Wrapper forddot.

dnrm2(x,[n,offx,incx])

Wrapper fordnrm2.

drot(...)

Wrapper fordrot.

drotg(a, b)

Wrapper fordrotg.

drotm(...)

Wrapper fordrotm.

drotmg(d1, d2, x1, y1)

Wrapper fordrotmg.

dscal(a,x,[n,offx,incx])

Wrapper fordscal.

dswap(x,y,[n,offx,incx,offy,incy])

Wrapper fordswap.

dzasum(x,[n,offx,incx])

Wrapper fordzasum.

dznrm2(x,[n,offx,incx])

Wrapper fordznrm2.

icamax(x,[n,offx,incx])

Wrapper foricamax.

idamax(x,[n,offx,incx])

Wrapper foridamax.

isamax(x,[n,offx,incx])

Wrapper forisamax.

izamax(x,[n,offx,incx])

Wrapper forizamax.

caxpy(x,y,[n,a,offx,incx,offy,incy])

Wrapper forcaxpy.

ccopy(x,y,[n,offx,incx,offy,incy])

Wrapper forccopy.

cdotc(x,y,[n,offx,incx,offy,incy])

Wrapper forcdotc.

cdotu(x,y,[n,offx,incx,offy,incy])

Wrapper forcdotu.

crotg(a, b)

Wrapper forcrotg.

cscal(a,x,[n,offx,incx])

Wrapper forcscal.

csrot(...)

Wrapper forcsrot.

csscal(a,x,[n,offx,incx,overwrite_x])

Wrapper forcsscal.

cswap(x,y,[n,offx,incx,offy,incy])

Wrapper forcswap.

zaxpy(x,y,[n,a,offx,incx,offy,incy])

Wrapper forzaxpy.

zcopy(x,y,[n,offx,incx,offy,incy])

Wrapper forzcopy.

zdotc(x,y,[n,offx,incx,offy,incy])

Wrapper forzdotc.

zdotu(x,y,[n,offx,incx,offy,incy])

Wrapper forzdotu.

zdrot(...)

Wrapper forzdrot.

zdscal(a,x,[n,offx,incx,overwrite_x])

Wrapper forzdscal.

zrotg(a, b)

Wrapper forzrotg.

zscal(a,x,[n,offx,incx])

Wrapper forzscal.

zswap(x,y,[n,offx,incx,offy,incy])

Wrapper forzswap.

BLAS Level 2 functions#

sgbmv(...)

Wrapper forsgbmv.

sgemv(...)

Wrapper forsgemv.

sger(...)

Wrapper forsger.

ssbmv(...)

Wrapper forssbmv.

sspmv(...)

Wrapper forsspmv.

sspr(n,alpha,x,ap,[incx,offx,lower,overwrite_ap])

Wrapper forsspr.

sspr2(...)

Wrapper forsspr2.

ssymv(...)

Wrapper forssymv.

ssyr(alpha,x,[lower,incx,offx,n,a,overwrite_a])

Wrapper forssyr.

ssyr2(...)

Wrapper forssyr2.

stbmv(...)

Wrapper forstbmv.

stbsv(...)

Wrapper forstbsv.

stpmv(...)

Wrapper forstpmv.

stpsv(...)

Wrapper forstpsv.

strmv(...)

Wrapper forstrmv.

strsv(...)

Wrapper forstrsv.

dgbmv(...)

Wrapper fordgbmv.

dgemv(...)

Wrapper fordgemv.

dger(...)

Wrapper fordger.

dsbmv(...)

Wrapper fordsbmv.

dspmv(...)

Wrapper fordspmv.

dspr(n,alpha,x,ap,[incx,offx,lower,overwrite_ap])

Wrapper fordspr.

dspr2(...)

Wrapper fordspr2.

dsymv(...)

Wrapper fordsymv.

dsyr(alpha,x,[lower,incx,offx,n,a,overwrite_a])

Wrapper fordsyr.

dsyr2(...)

Wrapper fordsyr2.

dtbmv(...)

Wrapper fordtbmv.

dtbsv(...)

Wrapper fordtbsv.

dtpmv(...)

Wrapper fordtpmv.

dtpsv(...)

Wrapper fordtpsv.

dtrmv(...)

Wrapper fordtrmv.

dtrsv(...)

Wrapper fordtrsv.

cgbmv(...)

Wrapper forcgbmv.

cgemv(...)

Wrapper forcgemv.

cgerc(...)

Wrapper forcgerc.

cgeru(...)

Wrapper forcgeru.

chbmv(...)

Wrapper forchbmv.

chemv(...)

Wrapper forchemv.

cher(alpha,x,[lower,incx,offx,n,a,overwrite_a])

Wrapper forcher.

cher2(...)

Wrapper forcher2.

chpmv(...)

Wrapper forchpmv.

chpr(n,alpha,x,ap,[incx,offx,lower,overwrite_ap])

Wrapper forchpr.

chpr2(...)

Wrapper forchpr2.

cspmv(...)

Wrapper forcspmv.

cspr(n,alpha,x,ap,[incx,offx,lower,overwrite_ap])

Wrapper forcspr.

csyr(alpha,x,[lower,incx,offx,n,a,overwrite_a])

Wrapper forcsyr.

ctbmv(...)

Wrapper forctbmv.

ctbsv(...)

Wrapper forctbsv.

ctpmv(...)

Wrapper forctpmv.

ctpsv(...)

Wrapper forctpsv.

ctrmv(...)

Wrapper forctrmv.

ctrsv(...)

Wrapper forctrsv.

zgbmv(...)

Wrapper forzgbmv.

zgemv(...)

Wrapper forzgemv.

zgerc(...)

Wrapper forzgerc.

zgeru(...)

Wrapper forzgeru.

zhbmv(...)

Wrapper forzhbmv.

zhemv(...)

Wrapper forzhemv.

zher(alpha,x,[lower,incx,offx,n,a,overwrite_a])

Wrapper forzher.

zher2(...)

Wrapper forzher2.

zhpmv(...)

Wrapper forzhpmv.

zhpr(n,alpha,x,ap,[incx,offx,lower,overwrite_ap])

Wrapper forzhpr.

zhpr2(...)

Wrapper forzhpr2.

zspmv(...)

Wrapper forzspmv.

zspr(n,alpha,x,ap,[incx,offx,lower,overwrite_ap])

Wrapper forzspr.

zsyr(alpha,x,[lower,incx,offx,n,a,overwrite_a])

Wrapper forzsyr.

ztbmv(...)

Wrapper forztbmv.

ztbsv(...)

Wrapper forztbsv.

ztpmv(...)

Wrapper forztpmv.

ztpsv(...)

Wrapper forztpsv.

ztrmv(...)

Wrapper forztrmv.

ztrsv(...)

Wrapper forztrsv.

BLAS Level 3 functions#

sgemm(...)

Wrapper forsgemm.

ssymm(alpha,a,b,[beta,c,side,lower,overwrite_c])

Wrapper forssymm.

ssyr2k(...)

Wrapper forssyr2k.

ssyrk(alpha,a,[beta,c,trans,lower,overwrite_c])

Wrapper forssyrk.

strmm(...)

Wrapper forstrmm.

strsm(...)

Wrapper forstrsm.

dgemm(...)

Wrapper fordgemm.

dsymm(alpha,a,b,[beta,c,side,lower,overwrite_c])

Wrapper fordsymm.

dsyr2k(...)

Wrapper fordsyr2k.

dsyrk(alpha,a,[beta,c,trans,lower,overwrite_c])

Wrapper fordsyrk.

dtrmm(...)

Wrapper fordtrmm.

dtrsm(...)

Wrapper fordtrsm.

cgemm(...)

Wrapper forcgemm.

chemm(alpha,a,b,[beta,c,side,lower,overwrite_c])

Wrapper forchemm.

cher2k(...)

Wrapper forcher2k.

cherk(alpha,a,[beta,c,trans,lower,overwrite_c])

Wrapper forcherk.

csymm(alpha,a,b,[beta,c,side,lower,overwrite_c])

Wrapper forcsymm.

csyr2k(...)

Wrapper forcsyr2k.

csyrk(alpha,a,[beta,c,trans,lower,overwrite_c])

Wrapper forcsyrk.

ctrmm(...)

Wrapper forctrmm.

ctrsm(...)

Wrapper forctrsm.

zgemm(...)

Wrapper forzgemm.

zhemm(alpha,a,b,[beta,c,side,lower,overwrite_c])

Wrapper forzhemm.

zher2k(...)

Wrapper forzher2k.

zherk(alpha,a,[beta,c,trans,lower,overwrite_c])

Wrapper forzherk.

zsymm(alpha,a,b,[beta,c,side,lower,overwrite_c])

Wrapper forzsymm.

zsyr2k(...)

Wrapper forzsyr2k.

zsyrk(alpha,a,[beta,c,trans,lower,overwrite_c])

Wrapper forzsyrk.

ztrmm(...)

Wrapper forztrmm.

ztrsm(...)

Wrapper forztrsm.