Calculate the norm of a vector. More...

afError af_norm_vector_S (float *h_dst, unsigned numel, const float *d_src)
 
afError af_norm_vector_D (double *h_dst, unsigned numel, const double *d_src)
 norm The value of a double precision vector More...
 
afError af_norm_S (float *d_dst, unsigned ndims, const unsigned *dims, const float *d_src, int dim)
 norm the value along a dimension in single precision matrix More...
 
afError af_norm_D (double *d_dst, unsigned ndims, const unsigned *dims, const double *d_src, int dim)
 norm the value along a dimension in double precision matrix More...
 

Detailed Description

Calculate the norm of a vector.

Detailed description of norm TODO:

Function Documentation

afError af_norm_vector_S ( float *  h_dst,
unsigned  numel,
const float *  d_src 
)
Parameters
[out]h_dstNorm of the vector
[in]numelNumber of elements in vector
[in]d_srcInput vectornorm The value of a single precision vector
afError af_norm_vector_D ( double *  h_dst,
unsigned  numel,
const double *  d_src 
)

norm The value of a double precision vector

afError af_norm_S ( float *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const float *  d_src,
int  dim 
)

norm the value along a dimension in single precision matrix

afError af_norm_D ( double *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const double *  d_src,
int  dim 
)

norm the value along a dimension in double precision matrix