35 #ifndef _BLAZE_MATH_BLAS_DOTU_H_
36 #define _BLAZE_MATH_BLAS_DOTU_H_
43 #include <boost/cast.hpp>
68 BLAZE_ALWAYS_INLINE float dotu(
int n,
const float* x,
int incX,
const float* y,
int incY );
70 BLAZE_ALWAYS_INLINE double dotu(
int n,
const double* x,
int incX,
const double* y,
int incY );
73 const complex<float>* y,
int incY );
76 const complex<double>* y,
int incY );
78 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
79 BLAZE_ALWAYS_INLINE ElementType_<VT1> dotu(
const DenseVector<VT1,TF1>& x,
const DenseVector<VT2,TF2>& y );
102 BLAZE_ALWAYS_INLINE float dotu(
int n,
const float* x,
int incX,
const float* y,
int incY )
104 return cblas_sdot( n, x, incX, y, incY );
126 BLAZE_ALWAYS_INLINE double dotu(
int n,
const double* x,
int incX,
const double* y,
int incY )
128 return cblas_ddot( n, x, incX, y, incY );
151 const complex<float>* y,
int incY )
154 cblas_cdotu_sub( n, x, incX, y, incY, &tmp );
178 const complex<double>* y,
int incY )
181 cblas_zdotu_sub( n, x, incX, y, incY, &tmp );
202 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
203 ElementType_<VT1> dotu(
const DenseVector<VT1,TF1>& x,
const DenseVector<VT2,TF2>& y )
205 using boost::numeric_cast;
216 const int n( numeric_cast<int>( (~x).
size() ) );
218 return dotu( n, (~x).data(), 1, (~y).data(), 1 );
Constraint on the data type.
Header file for auxiliary alias declarations.
#define BLAZE_CONSTRAINT_MUST_HAVE_CONST_DATA_ACCESS(T)
Constraint on the data type.In case the given data type T does not provide low-level data access to c...
Definition: ConstDataAccess.h:61
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector) noexcept
Returns the current size/dimension of the vector.
Definition: Vector.h:258
#define BLAZE_CONSTRAINT_MUST_NOT_BE_COMPUTATION_TYPE(T)
Constraint on the data type.In case the given data type T is a computational expression (i...
Definition: Computation.h:81
Header file for the DenseVector base class.
Constraint on the data type.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
System settings for the BLAS mode.
Header file for run time assertion macros.
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_BE_BLAS_COMPATIBLE_TYPE(T)
Constraint on the data type.In case the given data type T is not a BLAS compatible data type (i...
Definition: BLASCompatible.h:61
Header file for the complex data type.
System settings for the inline keywords.