# Level 1 CBLAS

This is an interface to “BLAS Level 1 Routines and Functions”, which perform basic vector-vector operations.

?asum

float cblas_sasum(const int N, const float *X, const int incX);

double cblas_dasum(const int N, const double *X, const int incX);

float cblas_scasum(const int N, const void *X, const int incX);

double cblas_dzasum(const int N, const void *X, const int incX);

?axpy

void cblas_saxpy(const int N, const float alpha, const float *X, const int incX, float *Y, const int incY);

void cblas_daxpy(const int N, const double alpha, const double *X, const int incX, double *Y, const int incY);

void cblas_caxpy(const int N, const void *alpha, const void *X, const int incX, void *Y, const int incY);

void cblas_zaxpy(const int N, const void *alpha, const void *X, const int incX, void *Y, const int incY);

?copy

void cblas_scopy(const int N, const float *X, const int incX, float *Y, const int incY);

void cblas_dcopy(const int N, const double *X, const int incX, double *Y, const int incY);

void cblas_ccopy(const int N, const void *X, const int incX, void *Y, const int incY);

void cblas_zcopy(const int N, const void *X, const int incX, void *Y, const int incY);

?dot

float cblas_sdot(const int N, const float *X, const int incX, const float *Y, const int incY);

double cblas_ddot(const int N, const double *X, const int incX, const double *Y, const int incY);

?sdot

float cblas_sdsdot(const int N, const float *SB, const float *SX, const int incX, const float *SY, const int incY);

double cblas_dsdot(const int N, const float *SX, const int incX, const float *SY, const int incY);

?dotc

void cblas_cdotc_sub(const int N, const void *X, const int incX, const void *Y, const int incY, void *dotc);

void cblas_zdotc_sub(const int N, const void *X, const int incX, const void *Y, const int incY, void *dotc);

?dotu

void cblas_cdotu_sub(const int N, const void *X, const int incX, const void *Y, const int incY, void *dotu);

void cblas_zdotu_sub(const int N, const void *X, const int incX, const void *Y, const int incY, void *dotu);

?nrm2

float cblas_snrm2(const int N, const float *X, const int incX);

double cblas_dnrm2(const int N, const double *X, const int incX);

float cblas_scnrm2(const int N, const void *X, const int incX);

double cblas_dznrm2(const int N, const void *X, const int incX);

?rot

void cblas_srot(const int N, float *X, const int incX, float *Y, const int incY, const float c, const float s);

void cblas_drot(const int N, double *X, const int incX, double *Y,const int incY, const double c, const double s);

?rotg

void cblas_srotg(float *a, float *b, float *c, float *s);

void cblas_drotg(double *a, double *b, double *c, double *s);

?rotm

void cblas_srotm(const int N, float *X, const int incX, float *Y, const int incY, const float *P);

void cblas_drotm(const int N, double *X, const int incX, double *Y, const int incY, const double *P);

?rotmg

void cblas_srotmg(float *d1, float *d2, float *b1, const float b2, float *P);

void cblas_drotmg(double *d1, double *d2, double *b1, const double b2, double *P);

?scal

void cblas_sscal(const int N, const float alpha, float *X, const int incX);

void cblas_dscal(const int N, const double alpha, double *X, const int incX);

void cblas_cscal(const int N, const void *alpha, void *X, const int incX);

void cblas_zscal(const int N, const void *alpha, void *X, const int incX);

void cblas_csscal(const int N, const float alpha, void *X, const int incX);

void cblas_zdscal(const int N, const double alpha, void *X, const int incX);

?swap

void cblas_sswap(const int N, float *X, const int incX, float *Y, const int incY);

void cblas_dswap(const int N, double *X, const int incX, double *Y, const int incY);

void cblas_cswap(const int N, void *X, const int incX, void *Y, const int incY);

void cblas_zswap(const int N, void *X, const int incX, void *Y, const int incY);

i?amax

CBLAS_INDEX cblas_isamax(const int N, const float *X, const int incX);

CBLAS_INDEX cblas_idamax(const int N, const double *X, const int incX);

CBLAS_INDEX cblas_icamax(const int N, const void *X, const int incX);

CBLAS_INDEX cblas_izamax(const int N, const void *X, const int incX);

i?amin

CBLAS_INDEX cblas_isamin(const int N, const float *X, const int incX);

CBLAS_INDEX cblas_idamin(const int N, const double *X, const int incX);

CBLAS_INDEX cblas_icamin(const int N, const void *X, const int incX);

CBLAS_INDEX cblas_izamin(const int N, const void *X, const int incX);

Parent topic: CBLAS Interface to the BLAS