nmpp
Функции

Функции

double nmblas_dasum (const int N, const double *X, const int INCX)
 takes the sum of the absolute values <> Подробнее...
 
void nmblas_daxpy (const int N, const double A, const double *X, const int INCX, double *Y, const int INCY)
 constant times a vector plus a vector <> Подробнее...
 
void nmblas_dcopy (const int N, const double *X, const int INCX, double *Y, const int INCY)
 copies a vector, X, to a vector, Y Подробнее...
 
double nmblas_ddot (const int N, const double *X, const int INCX, const double *Y, const int INCY)
 forms the dot product of two vectors. Подробнее...
 
double nmblas_dnrm2 (const int N, const double *x, const int INCX)
 returns the euclidean norm of a vector via the function name, so that SCNRM2 := sqrt( x**H*x ) Подробнее...
 
void nmblas_drot (const int N, double *X, const int INCX, double *Y, const int INCY, const double C, const double S)
 applies a plane rotation <> Подробнее...
 
void nmblas_drotg (double *A, double *B, double *C, double *S)
 construct givens plane rotation <> Подробнее...
 
void nmblas_drotm (const int N, double *X, const int INCX, double *Y, const int INCY, double *param)
 Apply a Given's rotation constructed by DROTMG. <> Подробнее...
 
void nmblas_dscal (const int N, const double ALPHA, double *X, const int INCX)
 scales a vector by a constant <> Подробнее...
 
double nmblas_dsdot (const int N, const float *X, const int INCX, const float *Y, const int INCY)
 Compute the inner product of two vectors with double precision accumulation. <> Подробнее...
 
void nmblas_dswap (const int N, double *X, const int INCX, double *Y, const int INCY)
 interchanges two vectors <> Подробнее...
 
double nmblas_dznrm2 (const int N, const double *X, const int INCX)
 returns the euclidean norm of a vector via the function name, so that DZNRM2 := sqrt( x**H*x ) <> Подробнее...
 
int nmblas_idamax (const int N, const double *X, const int INCX)
 finds the index of the first element having maximum absolute value. Подробнее...
 
int nmblas_isamax (const int N, const float *X, const int INCX)
 finds the index of the first element having maximum absolute value. Подробнее...
 
float nmblas_sasum (const int N, const float *X, const int INCX)
 takes the sum of the absolute values Подробнее...
 
void nmblas_saxpy (int N, const float A, const float *X, const int INCX, float *Y, const int INCY)
 constant times a vector plus a vector Подробнее...
 
float nmblas_scnrm2 (const int N, const float *X, const int INCX)
 returns the euclidean norm of a vector via the function name, so that SCNRM2 := sqrt( x**H*x ) Подробнее...
 
void nmblas_scopy (const int N, const float *X, const int INCX, float *Y, const int INCY)
 copies a vector, X, to a vector, Y Подробнее...
 
float nmblas_sdot (const int N, const float *X, const int INCX, const float *Y, const int INCY)
 SDOT forms the dot product of two vectors. Подробнее...
 
float nmblas_sdsdot (const int N, const float B, const float *X, const int INCX, const float *Y, const int INCY)
 Compute the inner product of two vectors with double precision accumulation. <> Подробнее...
 
float nmblas_snrm2 (const int N, const float *X, const int INCX)
 SNRM2 returns the euclidean norm of a vector via the function name, so that SNRM2 := sqrt( x'*x ). <> Подробнее...
 
void nmblas_srot (const int N, float *X, const int INCX, float *Y, const int INCY, const float C, const float S)
 applies a plane rotation <> Подробнее...
 
void nmblas_srotm (const int N, float *X, const int INCX, float *Y, const int INCY, float *param)
 Apply a Given's rotation constructed by SROTMG. <> Подробнее...
 
void nmblas_sscal (const int N, const float A, const float *X, const int INCX)
 scales a vector by a constant <> Подробнее...
 
void nmblas_sswap (const int N, const float *X, const int INCX, const float *Y, const int INCY)
 interchanges two vectors <> Подробнее...
 

Подробное описание

Функции

◆ nmblas_dasum()

double nmblas_dasum ( const int  N,
const double *  X,
const int  INCX 
)

takes the sum of the absolute values <>

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
Возвращает
the sum of the absolute values.

◆ nmblas_daxpy()

void nmblas_daxpy ( const int  N,
const double  A,
const double *  X,
const int  INCX,
double *  Y,
const int  INCY 
)

constant times a vector plus a vector <>

Аргументы
[in]Nnumber of elements in input vector
[in]Aspecifies the scalar alpha
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y

◆ nmblas_dcopy()

void nmblas_dcopy ( const int  N,
const double *  X,
const int  INCX,
double *  Y,
const int  INCY 
)

copies a vector, X, to a vector, Y

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
[out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y

◆ nmblas_ddot()

double nmblas_ddot ( const int  N,
const double *  X,
const int  INCX,
const double *  Y,
const int  INCY 
)

forms the dot product of two vectors.

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
[in]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
Возвращает
Return dot product of two vectors

◆ nmblas_dnrm2()

double nmblas_dnrm2 ( const int  N,
const double *  x,
const int  INCX 
)

returns the euclidean norm of a vector via the function name, so that SCNRM2 := sqrt( x**H*x )

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
Возвращает
euclidean norm

◆ nmblas_drot()

void nmblas_drot ( const int  N,
double *  X,
const int  INCX,
double *  Y,
const int  INCY,
const double  C,
const double  S 
)

applies a plane rotation <>

Аргументы
[in]Nnumber of elements in input vector
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
[in]C
[in]S

◆ nmblas_drotg()

void nmblas_drotg ( double *  A,
double *  B,
double *  C,
double *  S 
)

construct givens plane rotation <>

Аргументы
[in]A
[in]B
[in]C
[out]S

◆ nmblas_drotm()

void nmblas_drotm ( const int  N,
double *  X,
const int  INCX,
double *  Y,
const int  INCY,
double *  param 
)

Apply a Given's rotation constructed by DROTMG. <>

Аргументы
[in]Nnumber of elements in input vector
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
[in]paramarray, dimension (5). The rotation values constructed by SROTMG

◆ nmblas_dscal()

void nmblas_dscal ( const int  N,
const double  ALPHA,
double *  X,
const int  INCX 
)

scales a vector by a constant <>

Аргументы
[in]Nnumber of elements in input vector
[in]Aspecifies the scalar alpha.
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X

◆ nmblas_dsdot()

double nmblas_dsdot ( const int  N,
const float *  X,
const int  INCX,
const float *  Y,
const int  INCY 
)

Compute the inner product of two vectors with double precision accumulation. <>

Аргументы
[in]Nnumber of elements in input vector
[in]Bsingle precision scalar to be added to inner product
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) ) single precision vector with N elementsr
[in]INCXstorage spacing between elements of X
[in]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
Возвращает
Returns D.P. dot product accumulated in D.P., for S.P. SX and SY DSDOT = sum for I = 0 to N-1 of SX(LX+I*INCX) * SY(LY+I*INCY), where LX = 1 if INCX .GE. 0, else LX = 1+(1-N)*INCX, and LY is defined in a similar way using INCY.

◆ nmblas_dswap()

void nmblas_dswap ( const int  N,
double *  X,
const int  INCX,
double *  Y,
const int  INCY 
)

interchanges two vectors <>

Аргументы
[in]Nnumber of elements in input vector
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
Возвращает

◆ nmblas_dznrm2()

double nmblas_dznrm2 ( const int  N,
const double *  X,
const int  INCX 
)

returns the euclidean norm of a vector via the function name, so that DZNRM2 := sqrt( x**H*x ) <>

Аргументы
[in]Nnumber of elements in input vector
[in]XCOMPLEX*16 array of DIMENSION at least ( 1 + ( m - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
Возвращает
euclidean norm

◆ nmblas_idamax()

int nmblas_idamax ( const int  N,
const double *  X,
const int  INCX 
)

finds the index of the first element having maximum absolute value.

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ))
[in]INCXstorage spacing between elements of X
Возвращает
index of the first element having maximum absolute value.

◆ nmblas_isamax()

int nmblas_isamax ( const int  N,
const float *  X,
const int  INCX 
)

finds the index of the first element having maximum absolute value.

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
Возвращает
index of the first element having maximum absolute value.

◆ nmblas_sasum()

float nmblas_sasum ( const int  N,
const float *  X,
const int  INCX 
)

takes the sum of the absolute values

Аргументы
[in]Nnumber of elements in input vector
[in]Aspecifies the scalar alpha
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
Возвращает
sum of the absolute values

◆ nmblas_saxpy()

void nmblas_saxpy ( int  N,
const float  A,
const float *  X,
const int  INCX,
float *  Y,
const int  INCY 
)

constant times a vector plus a vector

Аргументы
[in]Nnumber of elements in input vector
[in]Aspecifies the scalar alpha
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y

◆ nmblas_scnrm2()

float nmblas_scnrm2 ( const int  N,
const float *  X,
const int  INCX 
)

returns the euclidean norm of a vector via the function name, so that SCNRM2 := sqrt( x**H*x )

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
Возвращает
euclidean norm

◆ nmblas_scopy()

void nmblas_scopy ( const int  N,
const float *  X,
const int  INCX,
float *  Y,
const int  INCY 
)

copies a vector, X, to a vector, Y

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
[out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y

◆ nmblas_sdot()

float nmblas_sdot ( const int  N,
const float *  X,
const int  INCX,
const float *  Y,
const int  INCY 
)

SDOT forms the dot product of two vectors.

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX )
[in]INCXstorage spacing between elements of X
[in]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
Возвращает
Return dot product of two vectors

◆ nmblas_sdsdot()

float nmblas_sdsdot ( const int  N,
const float  B,
const float *  X,
const int  INCX,
const float *  Y,
const int  INCY 
)

Compute the inner product of two vectors with double precision accumulation. <>

Аргументы
[in]Nnumber of elements in input vector
[in]Bsingle precision scalar to be added to inner product
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) ) single precision vector with N elementsr
[in]INCXstorage spacing between elements of X
[in]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
Возвращает
Returns S.P. result with dot product accumulated in D.P. SDSDOT = SB + sum for I = 0 to N-1 of SX(LX+I*INCX)*SY(LY+I*INCY), where LX = 1 if INCX .GE. 0, else LX = 1+(1-N)*INCX, and LY is defined in a similar way using INCY.

◆ nmblas_snrm2()

float nmblas_snrm2 ( const int  N,
const float *  X,
const int  INCX 
)

SNRM2 returns the euclidean norm of a vector via the function name, so that SNRM2 := sqrt( x'*x ). <>

Аргументы
[in]Nnumber of elements in input vector
[in]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
Возвращает
euclidean norm

◆ nmblas_srot()

void nmblas_srot ( const int  N,
float *  X,
const int  INCX,
float *  Y,
const int  INCY,
const float  C,
const float  S 
)

applies a plane rotation <>

Аргументы
[in]Nnumber of elements in input vector
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
[in]C
[in]S

◆ nmblas_srotm()

void nmblas_srotm ( const int  N,
float *  X,
const int  INCX,
float *  Y,
const int  INCY,
float *  param 
)

Apply a Given's rotation constructed by SROTMG. <>

Аргументы
[in]Nnumber of elements in input vector
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y
[in]paramarray, dimension (5). The rotation values constructed by SROTMG

◆ nmblas_sscal()

void nmblas_sscal ( const int  N,
const float  A,
const float *  X,
const int  INCX 
)

scales a vector by a constant <>

Аргументы
[in]Nnumber of elements in input vector
[in]Aspecifies the scalar alpha.
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X

◆ nmblas_sswap()

void nmblas_sswap ( const int  N,
const float *  X,
const int  INCX,
const float *  Y,
const int  INCY 
)

interchanges two vectors <>

Аргументы
[in]Nnumber of elements in input vector
[in,out]Xarray, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCXstorage spacing between elements of X
[in,out]Yarray, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCYstorage spacing between elements of Y