Do more. Code less. Free software for GPU computing.
<scroll to top>

Inner product

Basic dense linear algebra

Dot product: Device pointer interface

Parameters:
[out]h_resThe output. (Host pointer);
[in]lenThe length of the vectors
[in]d_ADevice pointer to the first vector
[in]d_BDevice pointer to the second vector

afError af_inner_S (float *h_res, unsigned len, const float *d_A, const float *d_B)
afError af_inner_D (double *h_res, unsigned len, const double *d_A, const double *d_B)
afError af_inner_C (cuComplex *h_res, unsigned len, const cuComplex *d_A, const cuComplex *d_B)
afError af_inner_Z (cuDoubleComplex *h_res, unsigned len, const cuDoubleComplex *d_A, const cuDoubleComplex *d_B)

Function Documentation

afError af_inner_S ( float *  h_res,
unsigned  len,
const float *  d_A,
const float *  d_B 
)
afError af_inner_D ( double *  h_res,
unsigned  len,
const double *  d_A,
const double *  d_B 
)
afError af_inner_C ( cuComplex *  h_res,
unsigned  len,
const cuComplex *  d_A,
const cuComplex *  d_B 
)
afError af_inner_Z ( cuDoubleComplex *  h_res,
unsigned  len,
const cuDoubleComplex *  d_A,
const cuDoubleComplex *  d_B 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines