35#ifndef _BLAZE_MATH_BLAS_AXPY_H_
36#define _BLAZE_MATH_BLAS_AXPY_H_
65template<
typename VT1,
bool TF1,
typename VT2,
bool TF2,
typename ST >
66void axpy( DenseVector<VT1,TF1>& x,
const DenseVector<VT2,TF2>& y, ST alpha );
89template<
typename VT1,
bool TF1,
typename VT2,
bool TF2,
typename ST >
101 const blas_int_t n( numeric_cast<blas_int_t>( (*x).size() ) );
103 axpy( n, alpha, (*x).data(), 1, (*y).data(), 1 );
Header file for auxiliary alias declarations.
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition: Aliases.h:190
Constraint on the data type.
Constraint on the data type.
Deactivation of problematic macros.
Constraint on the data type.
Cast operators for numeric types.
Header file for the CBLAS axpy wrapper functions.
Base class for N-dimensional dense vectors.
Definition: DenseVector.h:77
Constraint on the data type.
Header file for the DenseVector base class.
void axpy(DenseVector< VT1, TF1 > &x, const DenseVector< VT2, TF2 > &y, ST alpha)
BLAS kernel for a dense vector axpy product ( ).
Definition: axpy.h:90
#define BLAZE_CONSTRAINT_MUST_BE_BLAS_COMPATIBLE_TYPE(T)
Constraint on the data type.
Definition: BLASCompatible.h:61
#define BLAZE_CONSTRAINT_MUST_NOT_BE_COMPUTATION_TYPE(T)
Constraint on the data type.
Definition: Computation.h:81
#define BLAZE_CONSTRAINT_MUST_HAVE_MUTABLE_DATA_ACCESS(T)
Constraint on the data type.
Definition: MutableDataAccess.h:61
#define BLAZE_CONSTRAINT_MUST_HAVE_CONST_DATA_ACCESS(T)
Constraint on the data type.
Definition: ConstDataAccess.h:61
int32_t blas_int_t
Signed integer type used in the BLAS/LAPACK wrapper functions.
Definition: Types.h:64