Device pointer interface: Find the product of the input elements. |
- Parameters:
-
[out] | h_dst | Scalar and on host. |
[in] | numel | The number of elements in the vector. |
[in] | d_src | The input vector. |
|
afError | af_prod_vector_S (float *h_dst, unsigned numel, const float *d_src) |
| product of the values of a single precision vector
|
afError | af_prod_vector_I (int *h_dst, unsigned numel, const int *d_src) |
| product of the values of a 32-bit signed integer vector
|
afError | af_prod_vector_U (unsigned *h_dst, unsigned numel, const unsigned *d_src) |
| product of the values of a 32-bit unsigned integer vector
|
afError | af_prod_vector_B (float *h_dst, unsigned numel, const bool *d_src) |
| product of the values of a boolean vector
|
afError | af_prod_vector_C (cuComplex *h_dst, unsigned numel, const cuComplex *d_src) |
| product of the values of a single precision, complex vector
|
afError | af_prod_vector_D (double *h_dst, unsigned numel, const double *d_src) |
| product of the values of a double precision vector
|
afError | af_prod_vector_Z (cuDoubleComplex *h_dst, unsigned numel, const cuDoubleComplex *d_src) |
| product of the values of a double precision, complex vector
|
Device pointer interface: Find the product along a dimension. |
- Parameters:
-
[out] | d_dst | A vector pointer on the device. |
[in] | ndims | The number of dimensions in the input array. |
[in] | dims | The size of each dimension in input array. |
[in] | d_src | The input array. |
[in] | dim | The dimension along which to perform the operation. |
|
afError | af_prod_S (float *d_dst, unsigned ndims, const unsigned *dims, const float *d_src, int dim) |
| product of the values along a dimension in single precision matrix
|
afError | af_prod_I (int *d_dst, unsigned ndims, const unsigned *dims, const int *d_src, int dim) |
| product of the value alongs a dimension in 32-bit signed integer matrix
|
afError | af_prod_U (unsigned *d_dst, unsigned ndims, const unsigned *dims, const unsigned *d_src, int dim) |
| product of the value alongs a dimension in 32-bit unsigned integer matrix
|
afError | af_prod_B (float *d_dst, unsigned ndims, const unsigned *dims, const bool *d_src, int dim) |
| product of the value alongs a dimension in boolean matrix
|
afError | af_prod_C (cuComplex *d_dst, unsigned ndims, const unsigned *dims, const cuComplex *d_src, int dim) |
| product of the values along a dimension in single precision, complex matrix
|
afError | af_prod_D (double *d_dst, unsigned ndims, const unsigned *dims, const double *d_src, int dim) |
| product of the values along a dimension in double precision matrix
|
afError | af_prod_Z (cuDoubleComplex *d_dst, unsigned ndims, const unsigned *dims, const cuDoubleComplex *d_src, int dim) |
| product of the values along a dimension in double precision, complex matrix
|