# 12 Quick Reference Guide to the BLAS

Level 1 BLAS

```                   dim scalar vector   vector   scalars              5-element array
SUBROUTINE _ROTG (                                      A, B, C, S )
SUBROUTINE _ROTMG(                              D1, D2, A, B,        PARAM )
SUBROUTINE _ROT  ( N,         X, INCX, Y, INCY,               C, S )
SUBROUTINE _ROTM ( N,         X, INCX, Y, INCY,                      PARAM )
SUBROUTINE _SWAP ( N,         X, INCX, Y, INCY )
SUBROUTINE _SCAL ( N,  ALPHA, X, INCX )
SUBROUTINE _COPY ( N,         X, INCX, Y, INCY )
SUBROUTINE _AXPY ( N,  ALPHA, X, INCX, Y, INCY )
FUNCTION   _DOT  ( N,         X, INCX, Y, INCY )
FUNCTION   _DOTU ( N,         X, INCX, Y, INCY )
FUNCTION   _DOTC ( N,         X, INCX, Y, INCY )
FUNCTION   __DOT ( N,         X, INCX, Y, INCY )
FUNCTION   _NRM2 ( N,         X, INCX )
FUNCTION   _ASUM ( N,         X, INCX )
FUNCTION   I_AMAX( N,         X, INCX )
```

Level 2 BLAS

```        options            dim   b-width scalar matrix  vector   scalar vector
_GEMV (        TRANS,      M, N,         ALPHA, A, LDA, X, INCX, BETA,  Y, INCY )
_GBMV (        TRANS,      M, N, KL, KU, ALPHA, A, LDA, X, INCX, BETA,  Y, INCY )
_HEMV ( UPLO,                 N,         ALPHA, A, LDA, X, INCX, BETA,  Y, INCY )
_HBMV ( UPLO,                 N, K,      ALPHA, A, LDA, X, INCX, BETA,  Y, INCY )
_HPMV ( UPLO,                 N,         ALPHA, AP,     X, INCX, BETA,  Y, INCY )
_SYMV ( UPLO,                 N,         ALPHA, A, LDA, X, INCX, BETA,  Y, INCY )
_SBMV ( UPLO,                 N, K,      ALPHA, A, LDA, X, INCX, BETA,  Y, INCY )
_SPMV ( UPLO,                 N,         ALPHA, AP,     X, INCX, BETA,  Y, INCY )
_TRMV ( UPLO, TRANS, DIAG,    N,                A, LDA, X, INCX )
_TBMV ( UPLO, TRANS, DIAG,    N, K,             A, LDA, X, INCX )
_TPMV ( UPLO, TRANS, DIAG,    N,                AP,     X, INCX )
_TRSV ( UPLO, TRANS, DIAG,    N,                A, LDA, X, INCX )
_TBSV ( UPLO, TRANS, DIAG,    N, K,             A, LDA, X, INCX )
_TPSV ( UPLO, TRANS, DIAG,    N,                AP,     X, INCX )

options            dim   scalar vector   vector   matrix
_GER  (                    M, N, ALPHA, X, INCX, Y, INCY, A, LDA )
_GERU (                    M, N, ALPHA, X, INCX, Y, INCY, A, LDA )
_GERC (                    M, N, ALPHA, X, INCX, Y, INCY, A, LDA )
_HER  ( UPLO,                 N, ALPHA, X, INCX,          A, LDA )
_HPR  ( UPLO,                 N, ALPHA, X, INCX,          AP )
_HER2 ( UPLO,                 N, ALPHA, X, INCX, Y, INCY, A, LDA )
_HPR2 ( UPLO,                 N, ALPHA, X, INCX, Y, INCY, AP )
_SYR  ( UPLO,                 N, ALPHA, X, INCX,          A, LDA )
_SPR  ( UPLO,                 N, ALPHA, X, INCX,          AP )
_SYR2 ( UPLO,                 N, ALPHA, X, INCX, Y, INCY, A, LDA )
_SPR2 ( UPLO,                 N, ALPHA, X, INCX, Y, INCY, AP )
```