|
BLAS++ 2024.05.31
BLAS C++ API
|
\(\sum_i |Re(x_i)| + |Im(x_i)|\) More...
Functions | |
| template<typename T > | |
| real_type< T > | blas::asum (int64_t n, T const *x, int64_t incx) |
| float | blas::asum (int64_t n, float const *x, int64_t incx) |
| CPU, float version. | |
| double | blas::asum (int64_t n, double const *x, int64_t incx) |
| CPU, double version. | |
| float | blas::asum (int64_t n, std::complex< float > const *x, int64_t incx) |
| CPU, complex<float> version. | |
| double | blas::asum (int64_t n, std::complex< double > const *x, int64_t incx) |
| CPU, complex<double> version. | |
\(\sum_i |Re(x_i)| + |Im(x_i)|\)
| real_type< T > blas::asum | ( | int64_t | n, |
| T const * | x, | ||
| int64_t | incx | ||
| ) |
Generic implementation for arbitrary data types.
| [in] | n | Number of elements in x. n >= 0. |
| [in] | x | The n-element vector x, in an array of length (n-1)*incx + 1. |
| [in] | incx | Stride between elements of x. incx > 0. |