BLAS++ 2024.05.31
BLAS C++ API
|
\(x^H y\) More...
Functions | |
template<typename TX , typename TY > | |
scalar_type< TX, TY > | blas::dot (int64_t n, TX const *x, int64_t incx, TY const *y, int64_t incy) |
void | blas::dot (int64_t n, float const *x, int64_t incx, float const *y, int64_t incy, float *result, blas::Queue &queue) |
GPU device, float version. | |
void | blas::dot (int64_t n, double const *x, int64_t incx, double const *y, int64_t incy, double *result, blas::Queue &queue) |
GPU device, double version. | |
void | blas::dot (int64_t n, std::complex< float > const *x, int64_t incx, std::complex< float > const *y, int64_t incy, std::complex< float > *result, blas::Queue &queue) |
GPU device, complex<float> version. | |
void | blas::dot (int64_t n, std::complex< double > const *x, int64_t incx, std::complex< double > const *y, int64_t incy, std::complex< double > *result, blas::Queue &queue) |
GPU device, complex<double> version. | |
float | blas::dot (int64_t n, float const *x, int64_t incx, float const *y, int64_t incy) |
CPU, float version. | |
double | blas::dot (int64_t n, double const *x, int64_t incx, double const *y, int64_t incy) |
CPU, double version. | |
std::complex< float > | blas::dot (int64_t n, std::complex< float > const *x, int64_t incx, std::complex< float > const *y, int64_t incy) |
CPU, complex<float> version. | |
std::complex< double > | blas::dot (int64_t n, std::complex< double > const *x, int64_t incx, std::complex< double > const *y, int64_t incy) |
CPU, complex<double> version. | |
\(x^H y\)
void blas::dot | ( | int64_t | n, |
float const * | x, | ||
int64_t | incx, | ||
float const * | y, | ||
int64_t | incy, | ||
float * | result, | ||
blas::Queue & | queue | ||
) |
GPU device, float version.
Unlike CPU version, here result
is an output parameter, to store the result when the asynchronous execution completes.
scalar_type< TX, TY > blas::dot | ( | int64_t | n, |
TX const * | x, | ||
int64_t | incx, | ||
TY const * | y, | ||
int64_t | incy | ||
) |
Generic implementation for arbitrary data types.
[in] | n | Number of elements in x and y. n >= 0. |
[in] | x | The n-element vector x, in an array of length (n-1)*abs(incx) + 1. |
[in] | incx | Stride between elements of x. incx must not be zero. If incx < 0, uses elements of x in reverse order: x(n-1), ..., x(0). |
[in] | y | The n-element vector y, in an array of length (n-1)*abs(incy) + 1. |
[in] | incy | Stride between elements of y. incy must not be zero. If incy < 0, uses elements of y in reverse order: y(n-1), ..., y(0). |